Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,19 @@

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

// if you don't want to setup permissions the proper way, just uncomment the following PHP line
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information
//umask(0000);
if (!is_dir(dirname(__DIR__).'/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}

set_time_limit(0);
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

/** @var Composer\Autoload\ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';

$input = new ArgvInput();
$env = $input->getParameterOption(['--env', '-e'], getenv('APP_ENV') ?: 'dev');
$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(['--no-debug', '']) && $env !== 'prod';
return function (array $context) {
$kernel = new AppKernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);

$kernel = new AppKernel($env, $debug);
$application = new Application($kernel);
$application->run($input);
return new Application($kernel);
};
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"symfony/lock": "7.3.*",
"symfony/mime": "7.3.*",
"symfony/monolog-bundle": "^3.1",
"symfony/runtime": "7.4.*",
"symfony/security-bundle": "7.3.*",
"symfony/string": "7.3.*",
"symfony/translation": "7.3.*",
Expand Down Expand Up @@ -85,7 +86,8 @@
"allow-plugins": {
"cweagans/composer-patches": true,
"php-http/discovery": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"symfony/runtime": true
}
},
"extra": {
Expand Down
88 changes: 86 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading