for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RabbitMqModule\Controller\Factory;
use Interop\Container\ContainerInterface;
use Interop\Container\Exception\ContainerException;
use RabbitMqModule\Controller\ConsumerController as Controller;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
use Zend\ServiceManager\Factory\FactoryInterface;
/**
* Class ConsumerControllerFactory
*
* @package RabbitMqModule\Controller\Factory
*/
class ConsumerControllerFactory implements FactoryInterface
{
* Create an object
* @param ContainerInterface $container
* @param string $requestedName
* @param null|array $options
* @return \RabbitMqModule\Controller\ConsumerController
* @throws ServiceNotFoundException if unable to resolve the service.
* @throws ServiceNotCreatedException if an exception is raised when
* creating a service.
* @throws ContainerException if any other error occurs
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
return new Controller($container);
}