1
1
<?php
2
2
3
- namespace YetAnotherWebStack \PhpMemcachedSession ;
3
+ namespace Org \ YetAnotherWebStack \PhpMemcachedSession ;
4
4
5
5
class Initializer {
6
6
@@ -11,18 +11,18 @@ class Initializer {
11
11
* @param boolean $isReadOnly
12
12
*/
13
13
public static function run (callable $ callable ,
14
- $ configuration = 'YetAnotherWebStack\PhpMemcachedSession\Service\Configuration ' ,
14
+ $ configuration = 'Org\ YetAnotherWebStack\PhpMemcachedSession\Service\Configuration ' ,
15
15
$ isReadOnly = false
16
16
) {
17
17
self ::setClasses ($ configuration ,
18
- 'YetAnotherWebStack\PhpMemcachedSession\Repository\MemCacheRead ' . (
18
+ 'Org\ YetAnotherWebStack\PhpMemcachedSession\Repository\MemCacheRead ' . (
19
19
$ isReadOnly ? '' : 'Write '
20
20
));
21
21
self ::setSettings ();
22
22
call_user_func ($ callable );
23
23
session_set_save_handler (
24
24
Service \DependencyInjector::get (
25
- 'YetAnotherWebStack\PhpMemcachedSession\Interfaces\Controller '
25
+ 'Org\ YetAnotherWebStack\PhpMemcachedSession\Interfaces\Controller '
26
26
)
27
27
);
28
28
}
@@ -36,17 +36,17 @@ protected static function setClasses($configuration, $repository) {
36
36
$ mappings = [
37
37
'Singleton ' => [
38
38
'Configuration ' => $ configuration ,
39
- 'Model ' => 'YetAnotherWebStack\PhpMemcachedSession\Model\Session ' ,
39
+ 'Model ' => 'Org\ YetAnotherWebStack\PhpMemcachedSession\Model\Session ' ,
40
40
],
41
41
'Regular ' => [
42
42
'Repository ' => $ repository ,
43
- 'Controller ' => 'YetAnotherWebStack\PhpMemcachedSession\Controller\Session ' ,
43
+ 'Controller ' => 'Org\ YetAnotherWebStack\PhpMemcachedSession\Controller\Session ' ,
44
44
]
45
45
];
46
46
foreach ($ mappings as $ type => $ list ) {
47
47
foreach ($ list as $ interface => $ implementation ) {
48
48
Service \DependencyInjector::{'set ' . $ type }(
49
- 'YetAnotherWebStack\PhpMemcachedSession\Interfaces \\' . $ interface ,
49
+ 'Org\ YetAnotherWebStack\PhpMemcachedSession\Interfaces \\' . $ interface ,
50
50
$ implementation );
51
51
}
52
52
}
@@ -57,7 +57,7 @@ protected static function setClasses($configuration, $repository) {
57
57
*/
58
58
protected static function setSettings () {
59
59
$ configuration = Service \DependencyInjector::get (
60
- 'YetAnotherWebStack\PhpMemcachedSession\Interfaces\Configuration '
60
+ 'Org\ YetAnotherWebStack\PhpMemcachedSession\Interfaces\Configuration '
61
61
);
62
62
$ configuration ->setGeneral ('serialize_handler ' , 'php_serialize ' );
63
63
$ configuration ->setGeneral ('name ' , 'name ' );
0 commit comments