This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Security/Authentication/EntryPoint/AuthenticationEntryPointInterface.php

32 lines
1007 B
PHP
Raw Normal View History

<?php
namespace Symfony\Component\Security\Authentication\EntryPoint;
use Symfony\Component\Security\Exception\AuthenticationException;
use Symfony\Component\HttpFoundation\Request;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* AuthenticationEntryPointInterface is the interface used to start the authentication scheme.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
interface AuthenticationEntryPointInterface
{
/**
* Starts the authentication scheme.
*
* @param object $request The request that resulted in an AuthenticationException
* @param AuthenticationException $authException The exception that started the authentication process
*/
function start(Request $request, AuthenticationException $authException = null);
}