Guest User

Untitled

a guest
Dec 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Sonis\DiffusionBundle\Malibrairie;
  4.  
  5. use Doctrine\ORM\EntityManager;
  6.  
  7. class ProfileManager
  8. {
  9.  
  10. protected $em;
  11. protected $session;
  12.  
  13. public function __construct(EntityManager $em, Session $session)
  14. {
  15. $this->em = $em ;
  16. $this->session = $session;
  17. }
  18.  
  19. public function session ()
  20. {
  21. return $this->session->get('UtilisateurNom');
  22. }
  23.  
  24. }
Add Comment
Please, Sign In to add comment