From d682cde5cb7bfd4eaf8de669ea1d85ccf7d541e8 Mon Sep 17 00:00:00 2001 From: Ellyx Christian Date: Mon, 14 Jan 2019 23:16:32 +0800 Subject: [PATCH] support zend 3 --- src/ZeTheme/Service/ManagerFactory.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ZeTheme/Service/ManagerFactory.php b/src/ZeTheme/Service/ManagerFactory.php index 23bf7fe..d9a5e13 100644 --- a/src/ZeTheme/Service/ManagerFactory.php +++ b/src/ZeTheme/Service/ManagerFactory.php @@ -8,6 +8,7 @@ * file that was distributed with this source code. */ namespace ZeTheme\Service; +use Interop\Container\ContainerInterface; use Zend\ServiceManager\FactoryInterface, Zend\ServiceManager\ServiceLocatorInterface, ZeTheme\Manager; @@ -31,4 +32,9 @@ public function createService(ServiceLocatorInterface $serviceLocator) $manager = new Manager($serviceLocator, $config['ze_theme']); return $manager; } + + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) + { + return $this->createService($container); + } } \ No newline at end of file