From aa993b0cf99c5d7a984aff16fe33496b8fdf4bf1 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 3 Feb 2014 15:31:34 +0100 Subject: [PATCH] Using protected $container instead of (missing) getContainer() method --- core/lib/Thelia/Action/Module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Thelia/Action/Module.php b/core/lib/Thelia/Action/Module.php index 01a54b1ab..f882c6daa 100644 --- a/core/lib/Thelia/Action/Module.php +++ b/core/lib/Thelia/Action/Module.php @@ -49,7 +49,7 @@ use Thelia\Module\BaseModule; class Module extends BaseAction implements EventSubscriberInterface { /** - * @var \Propel\Runtime\ServiceContainer\ServiceContainerInterface + * @var ContainerInterface */ protected $container; @@ -66,7 +66,7 @@ class Module extends BaseAction implements EventSubscriberInterface $moduleInstance = $moduleClass->newInstance(); if ( method_exists($moduleInstance, 'setContainer')) { - $moduleInstance->setContainer($this->getContainer()); + $moduleInstance->setContainer($this->container); if ($module->getActivate() == BaseModule::IS_ACTIVATED) { $moduleInstance->deActivate($module); } else { @@ -99,7 +99,7 @@ class Module extends BaseAction implements EventSubscriberInterface $reflected = new \ReflectionClass($module->getFullNamespace()); $instance = $reflected->newInstance(); - $instance->setContainer($this->getContainer()); + $instance->setContainer($this->container); $path = dirname($reflected->getFileName()); @@ -193,7 +193,7 @@ class Module extends BaseAction implements EventSubscriberInterface { $cacheEvent = new CacheEvent( $dispatcher, - $this->getContainer()->getParameter('kernel.cache_dir') + $this->container->getParameter('kernel.cache_dir') ); $dispatcher->dispatch(TheliaEvents::CACHE_CLEAR, $cacheEvent);