I have created custom aplication resource:
class Custom_Entitymanager extends Zend_Application_Resource_ResourceAbstract{
//...
public function init (){
//...
$em = \Doctrine\ORM\EntityManager::create($options['connection'], $config);
return $em;
}
}
and I put it in MyProject\library\Custom\Entitymanager.php file.
When I want to retrieve Entitymanager using:
$em = $this->getInvokeArg('bootstrap')->getResource('entityManager');
I get null object.
How can I register my custom application resource in application.ini file?