From eb03888a61e23085113267b57f4372db491e3218 Mon Sep 17 00:00:00 2001 From: Dominik Eberlein Date: Fri, 27 Jan 2017 10:46:50 +0100 Subject: [PATCH] namespace bug fix --- LegacyMapper/AdditionalConfig.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/LegacyMapper/AdditionalConfig.php b/LegacyMapper/AdditionalConfig.php index 0fab45b..83d666b 100644 --- a/LegacyMapper/AdditionalConfig.php +++ b/LegacyMapper/AdditionalConfig.php @@ -6,7 +6,6 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\DependencyInjection\ContainerAwareTrait; - /** * Maps configuration parameters to the legacy parameters * Similar to https://github.com/ezsystems/LegacyBridge/blob/master/bundle/LegacyMapper/Configuration.php @@ -17,9 +16,9 @@ class AdditionalConfig implements EventSubscriberInterface public static function getSubscribedEvents() { - if ( class_exists("eZ\Publish\Core\MVC\Legacy\LegacyEvents") ){ + if ( class_exists("\eZ\Publish\Core\MVC\Legacy\LegacyEvents") ){ return array( - eZ\Publish\Core\MVC\Legacy\LegacyEvents::PRE_BUILD_LEGACY_KERNEL => array( "onBuildKernel", 129 ) + \eZ\Publish\Core\MVC\Legacy\LegacyEvents::PRE_BUILD_LEGACY_KERNEL => array( "onBuildKernel", 129 ) ); } return array(); @@ -40,7 +39,6 @@ public function onBuildKernel( PreBuildKernelEvent $event ) $event->getParameters()->set( "injected-settings", $settings + (array)$event->getParameters()->get( "injected-settings" ) - ); - + ); } } \ No newline at end of file