app/console
author cavaliet
Thu, 17 Nov 2011 12:07:53 +0100
changeset 35 382573c64e16
parent 0 7f95f8617b0b
permissions -rwxr-xr-x
Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.

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

require_once __DIR__.'/bootstrap.php.cache';
require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;

$input = new ArgvInput();
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
$debug = !$input->hasParameterOption(array('--no-debug', ''));

$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run();