-
Notifications
You must be signed in to change notification settings - Fork 2
/
Module.php
58 lines (52 loc) · 1.26 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Uthando CMS (http://www.shaunfreeman.co.uk/)
*
* @package UthandoUser
* @author Shaun Freeman <shaun@shaunfreeman.co.uk>
* @link https://github.com/uthando-cms for the canonical source repository
* @copyright Copyright (c) 2014 Shaun Freeman. (http://www.shaunfreeman.co.uk)
* @license see LICENSE
*/
namespace UthandoUser;
use UthandoCommon\Config\ConfigInterface;
use UthandoCommon\Config\ConfigTrait;
use UthandoUser\Event\MvcListener;
use Zend\Mvc\MvcEvent;
/**
* Class Module
*
* @package UthandoUser
*/
class Module implements ConfigInterface
{
use ConfigTrait;
/**
* @param MvcEvent $event
*/
public function onBootstrap(MvcEvent $event)
{
$eventManager = $event->getApplication()->getEventManager();
$eventManager->attach(new MvcListener());
}
/**
* @return array
*/
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
/**
* @return array
*/
public function getAutoloaderConfig()
{
return [
'Zend\Loader\StandardAutoloader' => [
'namespaces' => [
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
],
],
];
}
}