EntryPointStub.php 879 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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 Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FirewallEntryPointBundle\Security;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\HttpFoundation\Response;
  13. use Symfony\Component\Security\Core\Exception\AuthenticationException;
  14. use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
  15. class EntryPointStub implements AuthenticationEntryPointInterface
  16. {
  17. const RESPONSE_TEXT = '2be8e651259189d841a19eecdf37e771e2431741';
  18. public function start(Request $request, AuthenticationException $authException = null)
  19. {
  20. return new Response(self::RESPONSE_TEXT);
  21. }
  22. }