diff options
Diffstat (limited to 'Core/Authentication/EntryPoint/AuthenticationEntryPointInterface.php')
-rw-r--r-- | Core/Authentication/EntryPoint/AuthenticationEntryPointInterface.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Core/Authentication/EntryPoint/AuthenticationEntryPointInterface.php b/Core/Authentication/EntryPoint/AuthenticationEntryPointInterface.php new file mode 100644 index 0000000..7fd64bf --- /dev/null +++ b/Core/Authentication/EntryPoint/AuthenticationEntryPointInterface.php @@ -0,0 +1,32 @@ +<?php + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien.potencier@symfony-project.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Security\Core\Authentication\EntryPoint; + +use Symfony\Component\Security\Core\Exception\AuthenticationException; +use Symfony\Component\HttpFoundation\Request; + +/** + * 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); +} |