|
17 | 17 | use Symfony\Component\AssetMapper\AssetMapperInterface;
|
18 | 18 | use Symfony\Component\AssetMapper\AssetMapperRepository;
|
19 | 19 | use Symfony\Component\AssetMapper\Command\AssetMapperCompileCommand;
|
| 20 | +use Symfony\Component\AssetMapper\Command\ImportMapAuditCommand; |
20 | 21 | use Symfony\Component\AssetMapper\Command\DebugAssetMapperCommand;
|
21 | 22 | use Symfony\Component\AssetMapper\Command\ImportMapInstallCommand;
|
22 | 23 | use Symfony\Component\AssetMapper\Command\ImportMapRemoveCommand;
|
|
27 | 28 | use Symfony\Component\AssetMapper\Compiler\SourceMappingUrlsCompiler;
|
28 | 29 | use Symfony\Component\AssetMapper\Factory\CachedMappedAssetFactory;
|
29 | 30 | use Symfony\Component\AssetMapper\Factory\MappedAssetFactory;
|
| 31 | +use Symfony\Component\AssetMapper\ImportMap\ImportMapAuditor; |
30 | 32 | use Symfony\Component\AssetMapper\ImportMap\ImportMapConfigReader;
|
31 | 33 | use Symfony\Component\AssetMapper\ImportMap\ImportMapManager;
|
32 | 34 | use Symfony\Component\AssetMapper\ImportMap\ImportMapRenderer;
|
|
193 | 195 | abstract_arg('script HTML attributes'),
|
194 | 196 | ])
|
195 | 197 |
|
| 198 | + ->set('asset_mapper.importmap.auditor', ImportMapAuditor::class) |
| 199 | + ->args([ |
| 200 | + service('asset_mapper.importmap.config_reader'), |
| 201 | + service('asset_mapper.importmap.resolver'), |
| 202 | + service('http_client'), |
| 203 | + ]) |
| 204 | + |
196 | 205 | ->set('asset_mapper.importmap.command.require', ImportMapRequireCommand::class)
|
197 | 206 | ->args([
|
198 | 207 | service('asset_mapper.importmap.manager'),
|
|
212 | 221 | ->set('asset_mapper.importmap.command.install', ImportMapInstallCommand::class)
|
213 | 222 | ->args([service('asset_mapper.importmap.manager')])
|
214 | 223 | ->tag('console.command')
|
| 224 | + |
| 225 | + ->set('asset_mapper.importmap.command.audit', ImportMapAuditCommand::class) |
| 226 | + ->args([service('asset_mapper.importmap.auditor')]) |
| 227 | + ->tag('console.command') |
215 | 228 | ;
|
216 | 229 | };
|
0 commit comments