Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. namespace BQSAccess;
  3.  
  4. use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
  5. use Zend\Mvc\ModuleRouteListener;
  6. use Zend\Mvc\MvcEvent;
  7.  
  8. class Module implements AutoloaderProviderInterface
  9. {
  10. public function onBootstrap(MvcEvent $e)
  11. {
  12. $eventManager = $e->getApplication()->getEventManager();
  13. $moduleRouteListener = new ModuleRouteListener();
  14. $moduleRouteListener->attach($eventManager);
  15. }
  16.  
  17. public function getConfig()
  18. {
  19. return include __DIR__ . '/config/module.config.php';
  20. }
  21.  
  22. public function getAutoloaderConfig()
  23. {
  24. return array(
  25. 'Zend\Loader\StandardAutoloader' => array(
  26. 'namespaces' => array(
  27. __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
  28. ),
  29. ),
  30. );
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement