Skip to content

Commit

Permalink
Fix private service configuration (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre authored Nov 24, 2024
1 parent 58a06fa commit 1237316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

->alias(MinifierInterface::class, 'sensiolabs_minify.minifier')

->set('.sensiolabs_minify.asset_mapper.compiler', MinifierCompiler::class)
->set('sensiolabs_minify.asset_mapper.compiler', MinifierCompiler::class)
->args([service('sensiolabs_minify.minifier')])
->tag('asset_mapper.compiler', ['priority' => -1024])

Expand Down
4 changes: 2 additions & 2 deletions src/SensiolabsMinifyBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public function loadExtension(array $config, ContainerConfigurator $container, C
->get('.sensiolabs_minify.minifier.minify_factory')
->arg(0, $config['minify']['local_binary'])

->get('.sensiolabs_minify.asset_mapper.compiler')
->get('sensiolabs_minify.asset_mapper.compiler')
->arg(1, array_keys(array_filter($config['asset_mapper']['types']), boolval(...)))
->arg(2, $config['asset_mapper']['ignore_paths'])
->arg(3, $config['asset_mapper']['ignore_vendor'])
;

if (!$config['asset_mapper']['enabled']) {
$container->services()
->remove('.sensiolabs_minify.asset_mapper.compiler')
->remove('sensiolabs_minify.asset_mapper.compiler')
;
}

Expand Down

0 comments on commit 1237316

Please sign in to comment.