Skip to content

Commit

Permalink
Fix/ci deprecation msg hidden (#1130)
Browse files Browse the repository at this point in the history
* Make service definition only is defined

* Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
lenybernard authored May 30, 2019
1 parent 5440345 commit b4fc68b
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,23 @@ class OverrideServiceCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$container->getDefinition('assetic.filter.cssrewrite')->setPublic(true);
$container->getDefinition('assetic.filter.less')->setPublic(true);
$container->getDefinition('assetic.filter.scss')->setPublic(true);
$container->getDefinition('assetic.filter_manager')->setPublic(true);
$container->getDefinition('assetic.asset_manager')->setPublic(true);
$container->getDefinition('victoire_core.entity_proxy.cache_driver')->setPublic(true);
if ($container->hasDefinition('assetic.filter.cssrewrite')) {
$container->getDefinition('assetic.filter.cssrewrite')->setPublic(true);
}
if ($container->hasDefinition('assetic.filter.less')) {
$container->getDefinition('assetic.filter.less')->setPublic(true);
}
if ($container->hasDefinition('assetic.filter.scss')) {
$container->getDefinition('assetic.filter.scss')->setPublic(true);
}
if ($container->hasDefinition('assetic.filter_manager')) {
$container->getDefinition('assetic.filter_manager')->setPublic(true);
}
if ($container->hasDefinition('assetic.asset_manager')) {
$container->getDefinition('assetic.asset_manager')->setPublic(true);
}
if ($container->hasDefinition('victoire_core.entity_proxy.cache_driver')) {
$container->getDefinition('victoire_core.entity_proxy.cache_driver')->setPublic(true);
}
}
}

0 comments on commit b4fc68b

Please sign in to comment.