src/CacheInstaller.php
public static function install(MoufManager $moufManager) {
		// Let's create the instances.
		$cacheInstance = InstallUtils::getOrCreateInstance('defaultDoctrineCache', null, $moufManager);
		$cacheInstance->setCode('// If DEBUG mode is on, let\'s just use an ArrayCache.
if (DEBUG) {
	$driver = new \\Doctrine\\Common\\Cache\\ArrayCache();
} else {
	// If APC is available, let\'s use APC
	if (extension_loaded("apcu")) {
		$driver = new \\Doctrine\\Common\\Cache\\ApcuCache();
	} else if (extension_loaded("apc")) {
		$driver = new \\Doctrine\\Common\\Cache\\ApcCache();
	} else {
		$driver = new \\Doctrine\\Common\\Cache\\PhpFileCache(sys_get_temp_dir().\'/doctrinecache\');
	}
}
$driver->setNamespace(SECRET);
return $driver;
');
		
		$cacheWrapperInstance = InstallUtils::getOrCreateInstance('doctrineMoufCache', 'Mouf\\Utils\\Common\\Doctrine\\Cache\\DoctrineCacheAdapter', $moufManager);
		$cacheWrapperInstance->getConstructorArgumentProperty('doctrineCache')->setValue($cacheInstance);

		// Let's rewrite the MoufComponents.php file to save the component
		$moufManager->rewriteMouf();
	}
public static function install(MoufManager $moufManager) {
		// Let's create the instances.
		$cacheInstance = InstallUtils::getOrCreateInstance('defaultDoctrineCache', null, $moufManager);
		$cacheInstance->setCode('// If DEBUG mode is on, let\'s just use an ArrayCache.
if (DEBUG) {
	$driver = new \\Doctrine\\Common\\Cache\\ArrayCache();
} else {
	// If APC is available, let\'s use APC
	if (extension_loaded("apcu")) {
		$driver = new \\Doctrine\\Common\\Cache\\ApcuCache();
	} else if (extension_loaded("apc")) {
		$driver = new \\Doctrine\\Common\\Cache\\ApcCache();
	} else {
		$driver = new \\Doctrine\\Common\\Cache\\PhpFileCache(sys_get_temp_dir().\'/doctrinecache\');
	}
}
$driver->setNamespace(SECRET);
return $driver;
');
		
		$cacheWrapperInstance = InstallUtils::getOrCreateInstance('doctrineMoufCache', 'Mouf\\Utils\\Common\\Doctrine\\Cache\\DoctrineCacheAdapter', $moufManager);
		$cacheWrapperInstance->getConstructorArgumentProperty('doctrineCache')->setValue($cacheInstance);

		// Let's rewrite the MoufComponents.php file to save the component
		$moufManager->rewriteMouf();
	}
(non-PHPdoc)
@see \Mouf\Installer\PackageInstallerInterface::install()