-
Notifications
You must be signed in to change notification settings - Fork 2
/
Module.php
63 lines (55 loc) · 1.14 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
<?php
/**
* This file is part of the PPI Framework.
*
* @category PPI
* @package MonologModule
* @copyright Copyright (c) 2011-2014 Paul Dragoonis <[email protected]>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppi.io
*/
namespace PPI\MonologModule;
use PPI\Autoload;
use PPI\Module\AbstractModule;
use PPI\MonologModule\ServiceManager\MonologConfig;
/**
* PPI Monolog Module.
*
* @author Vítor Brandão <[email protected]>
*/
class Module extends AbstractModule
{
const VERSION = '0.0.1-DEV';
/**
* {@inheritdoc}
*/
public function init($e)
{
Autoload::add(__NAMESPACE__, dirname(__DIR__));
}
/**
* {@inheritdoc}
*/
public function getName()
{
return 'MonologModule';
}
/**
* {@inheritdoc}
*/
public function getConfig()
{
return include __DIR__ . '/resources/config/monolog.php';
}
/**
* {@inheritdoc}
*/
public function getServiceConfig()
{
return new MonologConfig();
}
public function getRouteConfig()
{
return array('routez' => 1);
}
}