forked from roach-php/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroach
executable file
·34 lines (26 loc) · 798 Bytes
/
roach
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env php
<?php
declare(strict_types=1);
/**
* Copyright (c) 2021 Kai Sassnowski
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/ksassnowski/roach
*/
foreach ([__DIR__ . '/../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}
use RoachPHP\Core\Version;
use RoachPHP\Shell\Commands\RunSpiderCommand;
use RoachPHP\Shell\Repl;
use Symfony\Component\Console\Application;
$application = new Application();
$application->setName(Version::getVersionString());
$application->add(new Repl());
$application->add(new RunSpiderCommand());
$application->run();