<?php

putenv('CACHE_STORE=file');
putenv('SESSION_DRIVER=file');
putenv('QUEUE_CONNECTION=sync');

define('LARAVEL_START', microtime(true));

require __DIR__.'/vendor/autoload.php';

// Fix the cache binding
$app = require __DIR__.'/bootstrap/app.php';
$app->singleton('cache', function ($app) {
    return new \Illuminate\Cache\CacheManager($app);
});

$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);

$status = $kernel->handle(
    $input = new Symfony\Component\Console\Input\ArgvInput(),
    new Symfony\Component\Console\Output\ConsoleOutput()
);

$kernel->terminate($input, $status);
exit($status);