[Security] added some finals, some visibility changes

This commit is contained in:
Johannes M. Schmitt 2011-03-13 19:40:12 +01:00
parent 843c449c73
commit 76573f1ab2
3 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
* *
* @param Event $event An Event instance * @param Event $event An Event instance
*/ */
public function handle(EventInterface $event) public final function handle(EventInterface $event)
{ {
$request = $event->get('request'); $request = $event->get('request');

View File

@ -50,7 +50,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface
* *
* @param EventInterface $event An EventInterface instance * @param EventInterface $event An EventInterface instance
*/ */
public function handle(EventInterface $event) public final function handle(EventInterface $event)
{ {
$request = $event->get('request'); $request = $event->get('request');

View File

@ -25,8 +25,8 @@ use Symfony\Component\Security\Core\Exception\BadCredentialsException;
*/ */
class X509AuthenticationListener extends AbstractPreAuthenticatedListener class X509AuthenticationListener extends AbstractPreAuthenticatedListener
{ {
protected $userKey; private $userKey;
protected $credentialKey; private $credentialKey;
public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, $userKey = 'SSL_CLIENT_S_DN_Email', $credentialKey = 'SSL_CLIENT_S_DN', LoggerInterface $logger = null, EventDispatcherInterface $eventDispatcher = null) public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, $userKey = 'SSL_CLIENT_S_DN_Email', $credentialKey = 'SSL_CLIENT_S_DN', LoggerInterface $logger = null, EventDispatcherInterface $eventDispatcher = null)
{ {