-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathModule.php
executable file
·38 lines (29 loc) · 976 Bytes
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* This file is part of the ZfcUserLdap Module (https://github.com/Nitecon/zfcuser-ldap.git)
*
* Copyright (c) 2013 Will Hattingh (https://github.com/Nitecon/zfcuser-ldap)
*
* For the full copyright and license information, please view
* the file LICENSE.txt that was distributed with this source code.
*/
namespace ZfcUserLdap;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
class Module {
public function onBootstrap(MvcEvent $e) {
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
}
public function getAutoloaderConfig() {
return array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/autoload_classmap.php',
),
);
}
public function getConfig() {
return include __DIR__ . '/config/module.config.php';
}
}