title: ZF2 how to get entity Manager from outside of controller
body: <p>we can access entity manager within controller using <code>$this-&gt;getServiceLocator()-&gt;get('doctrine.entitymanager.orm_default');</code></p>
  
  <p>but how can we access entity manager singleton instance in rest of the project in Zendframework 2. </p>