forked from nitecon/DBSessionStorage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.php
More file actions
36 lines (30 loc) · 916 Bytes
/
Copy pathModule.php
File metadata and controls
36 lines (30 loc) · 916 Bytes
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
<?php
/**
* This file is part of the DBSessionStorage Module (https://github.com/Nitecon/DBSessionStorage.git)
*
* Copyright (c) 2013 Will Hattingh (https://github.com/Nitecon/DBSessionStorage.git)
*
* For the full copyright and license information, please view
* the file LICENSE.txt that was distributed with this source code.
*/
namespace DBSessionStorage;
class Module
{
public function onBootstrap(\Zend\Mvc\MvcEvent $e)
{
$storage = $e->getApplication()->getServiceManager()->get('DBSessionStorage\Storage\DBStorage');
$storage->setSessionStorage();
}
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/autoload_classmap.php',
),
);
}
}