Getting the document manager from a service layer class is $this->getServiceLocator()->getDoctrineContainer()->getDocumentManager();
Why not put it in the Bisna\Service\Service class ?
How do I use this in the controller? I have tried use Bisna\Service\ServiceLocator; $service = new ServiceLocator();
var_dump($service->getService('test')); but no luck
Getting the document manager from a service layer class is $this->getServiceLocator()->getDoctrineContainer()->getDocumentManager(); Why not put it in the Bisna\Service\Service class ?