From 431343809f7600310dab6a089a12b418868982f8 Mon Sep 17 00:00:00 2001 From: "bruno.spyckerelle" Date: Wed, 4 Dec 2019 11:50:36 +0100 Subject: [PATCH] ZF3 compat #2 --- .../Factories/MattermostServiceFactory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MattermostMessenger/Factories/MattermostServiceFactory.php b/src/MattermostMessenger/Factories/MattermostServiceFactory.php index 705a934..29d3877 100644 --- a/src/MattermostMessenger/Factories/MattermostServiceFactory.php +++ b/src/MattermostMessenger/Factories/MattermostServiceFactory.php @@ -17,9 +17,9 @@ */ namespace MattermostMessenger\Factories; +use Interop\Container\ContainerInterface; use MattermostMessenger\Service\MattermostService; -use Zend\ServiceManager\FactoryInterface; -use Zend\ServiceManager\ServiceLocatorInterface; +use Zend\ServiceManager\Factory\FactoryInterface; /** * @@ -29,9 +29,9 @@ class MattermostServiceFactory implements FactoryInterface { - public function createService(ServiceLocatorInterface $serviceLocator) + public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { - return new MattermostService($serviceLocator->get('config')); + return new MattermostService($container->get('config')); } }