Initial commit with basic structure
This commit is contained in:
16
bin/console
Executable file
16
bin/console
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
|
||||
$input = new ArgvInput();
|
||||
$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev');
|
||||
|
||||
$app = require __DIR__.'/../src/app.php';
|
||||
require __DIR__.'/../config/'.$env.'.php';
|
||||
$console = require __DIR__.'/../src/console.php';
|
||||
$console->run();
|
||||
Reference in New Issue
Block a user