[ 'factories' => [ Command::class => function (ContainerInterface $container) { $command = new Command(); $command->setConfig($container->get('config')[Command::class]); $command->setLogger($container->get(Logger::class)); $command->setModel($container->get(Model::class)); return $command; }, Model::class => function (ContainerInterface $container) { $model = new Model($container->get('db'), 'AnnualEventAbstract'); return $model; }, ], ], Command::class => [ 'baseUrl' => 'http://www.stahq.org', 'tempPath' => realpath(__DIR__ . '/../../tmp'), 'fileRoot' => realpath(__DIR__ . '/../../../www'), 'pages' => [ 'http://www.stahq.org/events/past-annual-meetings/2015-annual-meeting/?pageSize=1024', 'http://www.stahq.org/events/past-annual-meetings/2014-annual-meeting/?pageSize=1024', 'http://www.stahq.org/events/past-annual-meetings/2013-abstracts/?pageSize=1024', 'http://www.stahq.org/events/past-annual-meetings/2012-abstracts/?pageSize=1024', 'http://www.stahq.org/events/past-annual-meetings/2011-annual-meeting/?pageSize=1024', ], 'items' => '.documentLibraryList .document-library-item', 'entity' => [ 'title' => ['selector' => '.title a', 'source' => 'text'], 'file' => ['selector' => '.title a', 'source' => 'attribute', 'attributeName' => 'href'], 'authors' => ['selector' => 'td:last', 'source' => 'text'], ], ], ];