|
@@ -34,7 +34,7 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
|
|
public function process(ContainerBuilder $container)
|
|
public function process(ContainerBuilder $container)
|
|
{
|
|
{
|
|
// check if translator service exist
|
|
// check if translator service exist
|
|
- if (!$container->hasAlias('translator')) {
|
|
|
|
|
|
+ if (!$container->has('translator')) {
|
|
throw new \RuntimeException('The "translator" service is not yet enabled.
|
|
throw new \RuntimeException('The "translator" service is not yet enabled.
|
|
It\'s required by SonataAdmin to display all labels properly.
|
|
It\'s required by SonataAdmin to display all labels properly.
|
|
|
|
|