Skip to content

Instantly share code, notes, and snippets.

@gjuric
Created February 2, 2016 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjuric/7e10e4874521da19dc60 to your computer and use it in GitHub Desktop.
Save gjuric/7e10e4874521da19dc60 to your computer and use it in GitHub Desktop.
Doctrine ORM Metadata Cache service
<?php
protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService()
{
$this->services['doctrine_cache.providers.doctrine.orm.default_metadata_cache'] = $instance = new \Doctrine\Common\Cache\ApcCache();
$instance->setNamespace('sf2orm_default_32698a00875dac44b2e177de4a61e9b868a21112a04f360ad75713c94e99d59c');
return $instance;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment