Skip to content

Commit a2767aa

Browse files
smnandrenicolas-grekas
authored andcommitted
[AssetMapper] Disable profiler when the "dev server" respond
1 parent 5fe8d55 commit a2767aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/config/asset_mapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
use Symfony\Component\AssetMapper\ImportMap\Resolver\JsDelivrEsmResolver;
3939
use Symfony\Component\AssetMapper\MapperAwareAssetPackage;
4040
use Symfony\Component\AssetMapper\Path\PublicAssetsPathResolver;
41-
use Symfony\Component\HttpKernel\Event\RequestEvent;
4241

4342
return static function (ContainerConfigurator $container) {
4443
$container->services()
@@ -92,8 +91,9 @@
9291
abstract_arg('asset public prefix'),
9392
abstract_arg('extensions map'),
9493
service('cache.asset_mapper'),
94+
service('profiler')->nullOnInvalid(),
9595
])
96-
->tag('kernel.event_subscriber', ['event' => RequestEvent::class])
96+
->tag('kernel.event_subscriber')
9797

9898
->set('asset_mapper.command.compile', AssetMapperCompileCommand::class)
9999
->args([

0 commit comments

Comments
 (0)