Guest User

Untitled

a guest
Dec 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ...
  2. /** @var ZendExpressiveSessionLazySession $session */
  3. $session = $request->getAttribute(SessionMiddleware::SESSION_ATTRIBUTE);
  4. ...
  5.  
  6. class AuthServiceFactory
  7. {
  8. public function __invoke(ContainerInterface $container): HttpAuthService
  9. {
  10. // get instance $userRepository
  11. // get instance $session
  12.  
  13. return new HttpAuthService(
  14. $userRepository,
  15. $session
  16. );
  17. }
  18. }
  19.  
  20. public function __invoke(ContainerInterface $container): HttpAuthService
  21. {
  22. dd($container->get(PsrHttpMessageServerRequestInterface::class));
  23. }
Add Comment
Please, Sign In to add comment