vendor/symfony/src/Symfony/Component/Security/Http/FirewallMapInterface.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony framework.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * This source file is subject to the MIT license that is bundled
       
     9  * with this source code in the file LICENSE.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Security\Http;
       
    13 
       
    14 use Symfony\Component\HttpFoundation\Request;
       
    15 
       
    16 /**
       
    17  * This interface must be implemented by firewall maps.
       
    18  *
       
    19  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
       
    20  */
       
    21 interface FirewallMapInterface
       
    22 {
       
    23     /**
       
    24      * Returns the authentication listeners, and the exception listener to use
       
    25      * for the given request.
       
    26      *
       
    27      * If there are no authentication listeners, the first inner are must be
       
    28      * empty.
       
    29      *
       
    30      * If there is no exception listener, the second element of the outer array
       
    31      * must be null.
       
    32      *
       
    33      * @param Request $request
       
    34      * @return array of the format array(array(AuthenticationListener), ExceptionListener)
       
    35      */
       
    36     function getListeners(Request $request);
       
    37 }