Skip to content

Commit 5739e74

Browse files
committed
[AssetMapper] Adding autoconfiguration tag for asset compilers
1 parent c82adf2 commit 5739e74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
use Symfony\Bundle\MercureBundle\MercureBundle;
3333
use Symfony\Component\Asset\PackageInterface;
3434
use Symfony\Component\AssetMapper\AssetMapper;
35+
use Symfony\Component\AssetMapper\Compiler\AssetCompilerInterface;
3536
use Symfony\Component\AssetMapper\ImportMap\ImportMapManager;
3637
use Symfony\Component\BrowserKit\AbstractBrowser;
3738
use Symfony\Component\Cache\Adapter\AdapterInterface;
@@ -559,6 +560,8 @@ public function load(array $configs, ContainerBuilder $container)
559560

560561
$container->registerForAutoconfiguration(PackageInterface::class)
561562
->addTag('assets.package');
563+
$container->registerForAutoconfiguration(AssetCompilerInterface::class)
564+
->addTag('asset_mapper.compiler');
562565
$container->registerForAutoconfiguration(Command::class)
563566
->addTag('console.command');
564567
$container->registerForAutoconfiguration(ResourceCheckerInterface::class)

0 commit comments

Comments
 (0)