* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\Authentication; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\HttpFoundation\Request; /** * @author Fabien Potencier */ class CustomAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface { private $handler; /** * @param AuthenticationSuccessHandlerInterface $handler An AuthenticationSuccessHandlerInterface instance * @param array $options Options for processing a successful authentication attempt * @param string $providerKey The provider key */ public function __construct(AuthenticationSuccessHandlerInterface $handler, array $options, $providerKey) { $this->handler = $handler; if (method_exists($handler, 'setOptions')) { $this->handler->setOptions($options); } if (method_exists($handler, 'setProviderKey')) { $this->handler->setProviderKey($providerKey); } } /** * {@inheritdoc} */ public function onAuthenticationSuccess(Request $request, TokenInterface $token) { return $this->handler->onAuthenticationSuccess($request, $token); } } __halt_compiler();----SIGNATURE:----BVg2Huq8HBKwd54vMEof1yiSD4BsPoaXegel5T3Ow+6b7eiL5i8670riPXUHYGaqNRfgZYJq+9j+3MLhamoBCkWKVIArJDAcaxnwy7lIBH4bhn31KqKZtm71+W9WFLPO0aBEAfZ1RAdfMEfZt8rUhe5c829naZZ8OuL/6W90mbu3KHB3Q3EFhcWbB9C62IHlHa3JiFQUusUD1mQetcGj2S4v2Io2iIsyWKvfsqh/sUBaTR7nJPLYyhUbSsyLRyqvaRJkVNP8mr6HG+bwOnaiRk7NvnmkFyv38vaqEWz5tiB41VjUnkXZqkevfeqNyEBuaoSoX9wIiBNzOnU1Fng+8Zto03vNyOF5AZriM6oBiG74mJxI/fpTh+Zr2iORoOxndjbOG/GNk719U/Q55Ii+b7eaLoYIzFhNb6XhweibMY6eFGDJEHDr3oSILpPg8WMvOoIrHHJb/pBr1cppdo/1gH83H+rUDJq9SNf9jiEMiM6/yr01B8VFv8e/iZP6BGruEuJILIlSzETi187EUZGWHhS3+N0/bMP2kHRtv+LlvOR90LVpKU9/HIhlVPe1ckI0ADzqCiFK9NFJBDbQ5pUTUs4sAB1/L4NWDSNsPVQc5iFt/0IE49g3FKbwNNYdBmbPKJDDwEHfYbfiX73xY2qjl76sjN0cFWIU2BnRoFcsG6I=----ATTACHMENT:----NDQ1NDAyMDk0NTYwMjkyMiAxNzM1MjM0NzUzMzg1MjczIDQzNjA0MzU5NzE5NzUyNTY=