]> Raphaƫl G. Git Repositories - airlibre/blob - bin/console
Comment out doctrine orm mappings and controller resolver auto mapping
[airlibre] / bin / console
1 #! /usr/bin/php
2 <?php
3
4 use App\Kernel;
5 use Symfony\Bundle\FrameworkBundle\Console\Application;
6
7 if (!is_dir(dirname(__DIR__).'/vendor')) {
8 throw new LogicException('Dependencies are missing. Try running "composer install".');
9 }
10
11 if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
12 throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
13 }
14
15 //Remove time limit
16 set_time_limit(0);
17
18 require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
19
20 return function (array $context) {
21 $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
22
23 return new Application($kernel);
24 };