Skip to content

Commit

Permalink
ZF3 compat #3
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSpy committed Dec 4, 2019
1 parent 4313438 commit a14aca2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
*/
namespace MattermostMessenger\Controller\Factory;

use Interop\Container\ContainerInterface;
use MattermostMessenger\Controller\MattermostChatController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\ServiceManager\Factory\FactoryInterface;

class MattermostChatControllerFactory implements FactoryInterface {

public function createService(ServiceLocatorInterface $serviceLocator)
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
$service = $serviceLocator->getServiceLocator();
return new MattermostChatController(
$service->get('mattermostservice'),
$service->get('MaglMarkdown\MarkdownService')
$container->get('mattermostservice'),
$container->get('MaglMarkdown\MarkdownService')
);
}

Expand Down

0 comments on commit a14aca2

Please sign in to comment.