|
@@ 34-42 (lines=9) @@
|
| 31 |
|
->end(); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
protected function createAuthenticationProvider(ContainerBuilder $container, $id, $userProvider) |
| 35 |
|
{ |
| 36 |
|
$providerId = 'security.authentication.provider.' . $this->key . '.' . $id; |
| 37 |
|
$container |
| 38 |
|
->setDefinition($providerId, new DefinitionDecorator($this->key . '.security.authentication.provider')) |
| 39 |
|
->replaceArgument(0, new Reference($userProvider)) |
| 40 |
|
->replaceArgument(2, $this->key); |
| 41 |
|
return $providerId; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
protected function createEntryPoint(ContainerBuilder $container, $id, $defaultEntryPoint) |
| 45 |
|
{ |
|
@@ 54-63 (lines=10) @@
|
| 51 |
|
return $entryPointId; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
protected function createListener(ContainerBuilder $container, $id, $defaultRoles) |
| 55 |
|
{ |
| 56 |
|
$listenerId = 'security.authentication.listener.' . $this->key . '.' . $id; |
| 57 |
|
$container |
| 58 |
|
->setDefinition($listenerId, new DefinitionDecorator($this->key . '.security.authentication.listener')) |
| 59 |
|
->replaceArgument(5, $defaultRoles) |
| 60 |
|
->replaceArgument(6, $this->key); |
| 61 |
|
|
| 62 |
|
return $listenerId; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) |
| 66 |
|
{ |