bootystrappy
This commit is contained in:
parent
96b246462a
commit
321173dfe6
23 changed files with 9410 additions and 1027 deletions
|
@ -1,16 +1,13 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Symfony\Config\Framework\RouterConfig;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->extension('framework', [
|
||||
'router' => null,
|
||||
]);
|
||||
return static function (
|
||||
RouterConfig $routerConfig,
|
||||
ContainerConfigurator $containerConfigurator
|
||||
): void {
|
||||
if ($containerConfigurator->env() === 'prod') {
|
||||
$containerConfigurator->extension('framework', [
|
||||
'router' => [
|
||||
'strict_requirements' => null,
|
||||
],
|
||||
]);
|
||||
$routerConfig->strictRequirements(false);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue