This repository has been archived by the owner on Aug 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Module.php
65 lines (55 loc) · 1.68 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
59
60
61
62
63
64
65
<?php
// +----------------------------------------------------------------------
// | [phalcon]
// +----------------------------------------------------------------------
// | Author: Mr.5 <[email protected]>
// +----------------------------------------------------------------------
// + Datetime: 14-7-3 下午1:46
// +----------------------------------------------------------------------
// + Module.php
// +----------------------------------------------------------------------
namespace Eva\EvaSundries;
use Eva\EvaEngine\Module\StandardInterface;
use Phalcon\Loader,
Phalcon\Mvc\Dispatcher,
Phalcon\Mvc\View,
Phalcon\Mvc\ModuleDefinitionInterface;
class Module implements ModuleDefinitionInterface, StandardInterface
{
/**
* Register a specific autoloader for the module
*/
public function registerAutoloaders()
{
}
static public function registerGlobalEventListeners()
{
return array(
'audit' => 'Eva\EvaSundries\Events\AuditListener',
);
}
public static function registerGlobalAutoloaders()
{
return array(
'Eva\EvaSundries' => __DIR__ . '/src/EvaSundries'
);
}
public static function registerGlobalViewHelpers()
{
return array(
'pageBlock' => 'Eva\EvaSundries\ViewHelpers\PageBlock'
);
}
public static function registerGlobalRelations()
{
}
/**
* Register specific services for the module
*/
public function registerServices($di)
{
/** @var $dispatcher Dispatcher */
$dispatcher = $di->getDispatcher();
$dispatcher->setDefaultNamespace('Eva\EvaSundries\Controllers');
}
}