예제 #1
0
 public function getServiceConfig()
 {
     return array('factories' => array('Cache' => function ($sm) {
         $cache = \Zend\Cache\StorageFactory::Factory(['adapter' => ['name' => 'Apc', 'options' => ['ttl' => 10]], 'plugins' => ['Serializer', 'exception_handler' => ['throw_exceptions' => true]]]);
         return $cache;
     }, 'TemTudoAqui\\Service\\URL' => function ($sm) {
         return new Service\URL($sm->get('Doctrine\\ORM\\EntityManager'));
     }));
 }