} $excludedPathPatterns =
[];
foreach ($config['excluded_patterns'
] as $path) { $excludedPathPatterns[] = Glob::
toRegex($path, true, false
);
} $container->
getDefinition('asset_mapper.repository'
) ->
setArgument(0,
$paths) ->
setArgument(2,
$excludedPathPatterns);
$publicDirName =
$this->
getPublicDirectoryName($container);
$container->
getDefinition('asset_mapper.public_assets_path_resolver'
) ->
setArgument(1,
$config['public_prefix'
]) ->
setArgument(2,
$publicDirName);
$container->
getDefinition('asset_mapper.command.compile'
) ->
setArgument(5,
$publicDirName);
if (!
$config['server'
]) { $container->
removeDefinition('asset_mapper.dev_server_subscriber'
);
} else { $container->
getDefinition('asset_mapper.dev_server_subscriber'
)