Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
2cbb64dede |
1 changed files with 12 additions and 14 deletions
|
@ -1,21 +1,19 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||||
|
use Symfony\Config\FrameworkConfig;
|
||||||
|
|
||||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
return static function (
|
||||||
$containerConfigurator->extension('framework', [
|
ContainerConfigurator $containerConfigurator,
|
||||||
'asset_mapper' => [
|
FrameworkConfig $frameworkConfig,
|
||||||
'paths' => [
|
): void {
|
||||||
'assets/',
|
$frameworkConfig->assetMapper()
|
||||||
],
|
->path('assets/', true)
|
||||||
'missing_import_mode' => 'strict',
|
->missingImportMode('strict')
|
||||||
],
|
->importmapPolyfill(false)
|
||||||
]);
|
;
|
||||||
if ($containerConfigurator->env() === 'prod') {
|
if ($containerConfigurator->env() === 'prod') {
|
||||||
$containerConfigurator->extension('framework', [
|
$frameworkConfig->assetMapper()
|
||||||
'asset_mapper' => [
|
->missingImportMode('warn');
|
||||||
'missing_import_mode' => 'warn',
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue