Advertisement
Guest User

Untitled

a guest
May 5th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Application\Controller\Factory;
  4.  
  5. use Application\Controller\MyController;
  6.  
  7. class MyControllerFactory
  8. {
  9. /**
  10. * @param ControllerManager $controllerManager
  11. *
  12. * @return MyController
  13. */
  14. public function __invoke(ControllerManager $controllerManager)
  15. {
  16. $tableGateway = $controllerManager->getServiceLocator()->get('my_table');
  17.  
  18. return new MyController($tableGateway);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement