#!/usr/bin/env php
<?php

set_time_limit(0);

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

use Gnugat\MicroFrameworkBundle\Service\KernelApplication as Application; 
use Symfony\Component\Console\Input\ArgvInput;
use tests\Gnugat\MicroFrameworkBundle\App\AppKernel;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), 'dev');
$debug = !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod';
  
$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run($input);
