tor-spider/bin/tor

18 lines
481 B
PHP
Executable File

#!/usr/bin/env php
<?php
use Sikofitt\Tor\Console\Command\TorDownloadCommand;
use Sikofitt\Tor\Console\Command\TorSpiderCommand;
use Symfony\Component\Console\Application;
require __DIR__ . '/../vendor/autoload.php';
$application = new Application('Tor Spider', '0.0.1');
$torDownloadCommand = new TorDownloadCommand();
$torDownloadCommand->setBaseDir(dirname(__DIR__));
$application->addCommands(array(
new TorSpiderCommand(),
$torDownloadCommand,
));
$application->run();