-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModule.php
41 lines (34 loc) · 1.18 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
<?php
/**
* Kapitchi Zend Framework 2 Modules (http://kapitchi.com/)
*
* @copyright Copyright (c) 2012-2013 Kapitchi Open Source Team (http://kapitchi.com/open-source-team)
* @license http://opensource.org/licenses/LGPL-3.0 LGPL 3.0
*/
namespace KapitchiEntity;
use Zend\ModuleManager\Feature\ServiceProviderInterface,
KapitchiBase\ModuleManager\AbstractModule;
class Module extends AbstractModule implements ServiceProviderInterface
{
public function getServiceConfig()
{
return array(
'invokables' => array(
'KapitchiEntity\Entity\Revision' => 'KapitchiEntity\Entity\Revision',
'KapitchiEntity\Entity\RevisionInputFilter' => 'KapitchiEntity\Entity\RevisionInputFilter',
'KapitchiEntity\Form\Revision' => 'KapitchiEntity\Form\Revision',
),
'factories' => array(
'KapitchiEntity\Entity\RevisionHydrator' => function($sm) {
return new Entity\RevisionHydrator(false);
}
)
);
}
public function getDir() {
return __DIR__;
}
public function getNamespace() {
return __NAMESPACE__;
}
}