for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Zend Framework Application (http://mateuszsitek.com/projects/zendframework-application).
*
* @link http://github.com/ma-si/zendframework-application for the canonical source repository
* @copyright Copyright (c) 2006-2016 Aist Internet Technologies (http://aist.pl) All rights reserved.
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
namespace Application;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
* Class Module.
class Module
{
* @param MvcEvent $e
public function onBootstrap(MvcEvent $e)
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
}
* @return array
public function getConfig()
return include __DIR__ . '/config/module.config.php';
public function getAutoloaderConfig()
return [
'Zend\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
],
];