Author: Fabien Potencier (fabien.potencier@symfony-project.com)
Author: Johannes M. Schmitt (schmittjoh@gmail.com)
Inheritance: extends AbstractFactory
 public function __construct()
 {
     parent::__construct();
     unset($this->options['check_path']);
     $this->defaultSuccessHandlerOptions = array();
     $this->defaultFailureHandlerOptions = array();
 }
 protected function createListener($container, $id, $config, $userProvider)
 {
     $listenerId = parent::createListener($container, $id, $config, $userProvider);
     $simpleAuthHandlerId = 'security.authentication.simple_success_failure_handler.' . $id;
     $simpleAuthHandler = $container->setDefinition($simpleAuthHandlerId, new DefinitionDecorator('security.authentication.simple_success_failure_handler'));
     $simpleAuthHandler->replaceArgument(0, new Reference($config['authenticator']));
     $simpleAuthHandler->replaceArgument(1, new Reference($this->getSuccessHandlerId($id)));
     $simpleAuthHandler->replaceArgument(2, new Reference($this->getFailureHandlerId($id)));
     $listener = $container->getDefinition($listenerId);
     $listener->replaceArgument(5, new Reference($simpleAuthHandlerId));
     $listener->replaceArgument(6, new Reference($simpleAuthHandlerId));
     $listener->addArgument(new Reference($config['authenticator']));
     return $listenerId;
 }
Exemplo n.º 3
0
 public function addConfiguration(NodeDefinition $node)
 {
     parent::addConfiguration($node);
     $node->children()->scalarNode('service')->defaultValue('ldap')->end()->scalarNode('dn_string')->defaultValue('{username}')->end()->end();
 }
 public function __construct()
 {
     parent::__construct();
     $this->addOption('account_suffix', 'domain.local');
 }
 public function __construct()
 {
     parent::__construct();
     $this->addOption('domain_parameter', '_ldap_domain');
 }
 public function __construct()
 {
     $this->addOption('organization_parameter', '_organization');
     parent::__construct();
 }
 /**
  * AdminFactory constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->addOption('user_parameter', '_user');
 }