2016-04-19 13:02:50 -04:00
|
|
|
#!/usr/bin/env php
|
2016-12-20 12:58:37 -05:00
|
|
|
<?php declare(strict_types=1);
|
2016-04-19 13:02:50 -04:00
|
|
|
|
2017-03-27 10:09:45 -04:00
|
|
|
// Set up autoloader for third-party dependencies
|
2018-01-18 16:21:45 -05:00
|
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
2017-03-27 10:09:45 -04:00
|
|
|
|
|
|
|
use Aviat\AnimeClient\Command;
|
2016-04-19 13:02:50 -04:00
|
|
|
|
|
|
|
$_SERVER['HTTP_HOST'] = 'localhost';
|
|
|
|
|
2017-04-17 16:13:36 -04:00
|
|
|
// -----------------------------------------------------------------------------
|
2016-04-19 13:02:50 -04:00
|
|
|
// Start console script
|
2017-04-17 16:13:36 -04:00
|
|
|
// -----------------------------------------------------------------------------
|
2018-01-18 16:21:45 -05:00
|
|
|
try
|
|
|
|
{
|
|
|
|
(new \ConsoleKit\Console([
|
|
|
|
'cache:clear' => Command\CacheClear::class,
|
|
|
|
'cache:prime' => Command\CachePrime::class,
|
|
|
|
'lists:sync' => Command\SyncKitsuWithMal::class,
|
|
|
|
'cache-prime' => Command\CachePrime::class,
|
|
|
|
'cache-clear' => Command\CacheClear::class,
|
|
|
|
'clear-cache' => Command\CacheClear::class,
|
|
|
|
'sync-lists' => Command\SyncKitsuWithMal::class,
|
|
|
|
]))->run();
|
|
|
|
}
|
|
|
|
catch (\Exception $e)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2016-04-19 13:02:50 -04:00
|
|
|
|