* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http; use Symfony\Component\HttpFoundation\RequestMatcherInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Firewall\ExceptionListener; use Symfony\Component\Security\Http\Firewall\LogoutListener; /** * FirewallMap allows configuration of different firewalls for specific parts * of the website. * * @author Fabien Potencier */ class FirewallMap implements FirewallMapInterface { private $map = array(); public function add(RequestMatcherInterface $requestMatcher = null, array $listeners = array(), ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null) { $this->map[] = array($requestMatcher, $listeners, $exceptionListener, $logoutListener); } /** * {@inheritdoc} */ public function getListeners(Request $request) { foreach ($this->map as $elements) { if (null === $elements[0] || $elements[0]->matches($request)) { return array($elements[1], $elements[2], $elements[3]); } } return array(array(), null, null); } } __halt_compiler();----SIGNATURE:----UBI0NH2L3fAS7sUebd91tjM3aCX+KQxcZOr+9yfR8JLWY2VCpTxU0dTc/Nylz1uwKgLswhbv/25zerX9qul3/fq+zgzbEPXNhmA/CJD88+CNscFsmfvSJdWTiG9PXbZwamkiVEB51EAFYzjQUAxcNyNuADQSIK38QPtjcZeDptQUmRcndmVyPX/Iyp2q1yu0ATB+QCPHHPTDLuI1+jR/LdW7C8+ebAjLZJUEHWj0Tx4+njEbonO4rPFbyou4+1eANasCpAnRt9qhuId80OAEKX1y8S8pixaPKO7dF7Y09n6tEmE+1YaoIj1Zkd+SuNSuM5yPJJwW44wyHE0MTT0Ypr08xJEktCQPy5BVCTM4STDjV5kY7uaYyl+A9oVReaHoYIsg9xH8Dmr5npjoKs5RSgv5AGYdB25/TycJ+aKm7XN2h0UDDT5e/11AKil73nS+mVBS503ux+Brq1yqbWyXMChi4ScDsrnZLgA4z4OTJ0VQPpwIHrjHwCFnR9YYv+ciB2sM9Sk82RZ3D6KNqGT30ZoclorWmF99s2ercRUaLAO+XEQhh2uvVbMaRxCP9rMzkXUTOtI0077sugb7j4bigVM+pwPSzzWjTtFGtCT03LHiE29Htym2JNBNqo7tEbAHYV7mQDEXkBwTnTy3Bv3n3fLQWVfEKgIJiHTyw2Jp4BU=----ATTACHMENT:----MjQzODcwMjYwOTkzODYwIDQ4NzIzNzA3NDUyNTUxODMgNjQzOTU1ODIzNDgyNDM3MQ==