-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModule.php
44 lines (38 loc) · 915 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
39
40
41
42
43
44
<?php
/**
* This file is part of the PPI Framework.
*
* @category PPI
* @package DistributionModule
* @copyright Copyright (c) 2011-2013 Paul Dragoonis <paul@ppi.io>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppi.io
*/
namespace PPI\FrameworkModule;
use PPI\Autoload;
use PPI\Module\AbstractModule;
/**
* PPI MVC Module.
*
* @author Vítor Brandão <vitor@ppi.io> <vitor@noiselabs.org>
*/
class Module extends AbstractModule
{
const VERSION = '0.0.1-DEV';
/**
* {@inheritDoc}
*/
public function init($e)
{
Autoload::add(__NAMESPACE__, dirname(__DIR__));
}
/**
* Get the routes for this module
*
* @return \Symfony\Component\Routing\RouteCollection
*/
public function getRoutes()
{
return $this->loadYamlRoutes(__DIR__ . '/resources/config/routes.yml');
}
}