LoginManagerInterface.php 672 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of the FOSUserBundle package.
  4. *
  5. * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace FOS\UserBundle\Security;
  11. use FOS\UserBundle\Model\UserInterface;
  12. use Symfony\Component\HttpFoundation\Response;
  13. interface LoginManagerInterface
  14. {
  15. /**
  16. * @param string $firewallName
  17. * @param UserInterface $user
  18. * @param Response|null $response
  19. *
  20. * @return void
  21. */
  22. public function loginUser($firewallName, UserInterface $user, Response $response = null);
  23. }