20 lines
481 B
PHP
20 lines
481 B
PHP
<?php
|
|
|
|
include_once 'vendor/autoload.php';
|
|
|
|
use Krzysiej\RyobiCrawler\Command\Migrate;
|
|
use Krzysiej\RyobiCrawler\Command\ScrapeWebsite;
|
|
|
|
use Symfony\Component\Console\Application;
|
|
|
|
if (php_sapi_name() !== 'cli') {
|
|
header('Location: browser.php');
|
|
echo 'Execute this script in cli only';
|
|
exit;
|
|
}
|
|
|
|
$application = new Application('Ryobi website scraper application', '1.1.0');
|
|
$application->add(new ScrapeWebsite());
|
|
$application->add(new Migrate());
|
|
$application->run();
|