for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ConferenceTools\Tickets\Report;
use Zend\Mvc\Service\AbstractPluginManagerFactory;
use Zend\ServiceManager\Config as ServiceManagerConfig;
use Zend\ServiceManager\ServiceLocatorInterface;
class ReportManagerFactory extends AbstractPluginManagerFactory
{
const PLUGIN_MANAGER_CLASS = ReportManager::class;
public function createService(ServiceLocatorInterface $serviceLocator, $canonicalName = null, $requestedName = null)
$service = parent::createService($serviceLocator);
$config = $serviceLocator->get('Config');
$pluginManagerConfig = $config['reports'];
$config = new ServiceManagerConfig($pluginManagerConfig);
$config->configureServiceManager($service);
return $service;
}