Skip to content

Commit

Permalink
ZF3 compat #2
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSpy committed Dec 4, 2019
1 parent f005ff0 commit 4313438
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
*
Expand All @@ -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'));
}
}

0 comments on commit 4313438

Please sign in to comment.