Change url naming convention. Update README.md

This commit is contained in:
Krzysztof Płaczek
2024-10-14 14:04:15 +02:00
parent 2b595c1403
commit d043e8efb1
7 changed files with 73 additions and 69 deletions

19
console.php Normal file
View File

@@ -0,0 +1,19 @@
<?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.1');
$application->add(new ScrapeWebsite());
$application->add(new Migrate());
$application->run();