Skip to content

Commit 245aad4

Browse files
committed
Fixing install
1 parent 020b69a commit 245aad4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
],
1919
"require" : {
2020
"php" : ">=5.3.0",
21-
"doctrine/cache": "~1.4",
22-
"mouf/utils.constants.debug": "~1.0",
23-
"mouf/utils.constants.secret": "~1.0",
24-
"mouf/utils.cache.cache-interface": "~2.0"
21+
"doctrine/cache" : "~1.4",
22+
"mouf/utils.constants.debug" : "~1.0",
23+
"mouf/utils.constants.secret" : "~1.0",
24+
"mouf/utils.cache.cache-interface" : "~2.0"
2525
},
2626
"autoload" : {
2727
"psr-4" : {
@@ -32,10 +32,10 @@
3232
"mouf" : {
3333
"install" : [{
3434
"type" : "class",
35-
"class": "Mouf\\Utils\\Common\\Doctrine\\Cache\\CacheInstaller"
35+
"class" : "Mouf\\Utils\\Common\\Doctrine\\Cache\\CacheInstaller"
3636
}
3737
],
3838
"logo" : "logo.png"
3939
}
4040
}
41-
}
41+
}

src/CacheInstaller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function install(MoufManager $moufManager) {
2525
$cacheInstance = InstallUtils::getOrCreateInstance('defaultDoctrineCache', null, $moufManager);
2626
$cacheInstance->setCode('// If DEBUG mode is on, let\'s just use an ArrayCache.
2727
if (DEBUG) {
28-
$driver = new Doctrine\\Common\\Cache\\ArrayCache());
28+
$driver = new Doctrine\\Common\\Cache\\ArrayCache();
2929
} else {
3030
// If APC is available, let\'s use APC
3131
if (extension_loaded("apc")) {
@@ -38,7 +38,7 @@ public static function install(MoufManager $moufManager) {
3838
return $driver;
3939
');
4040

41-
$cacheWrapperInstance = InstallUtils::getOrCreateInstance('doctrineMoufCache', null, $moufManager);
41+
$cacheWrapperInstance = InstallUtils::getOrCreateInstance('doctrineMoufCache', 'Mouf\\Utils\\Common\\Doctrine\\Cache\\DoctrineCacheAdapter', $moufManager);
4242
$cacheWrapperInstance->getConstructorArgumentProperty('doctrineCache')->setValue($cacheInstance);
4343

4444
// Let's rewrite the MoufComponents.php file to save the component

0 commit comments

Comments
 (0)