-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mapbender/fix/container-usage-Symfony3.4
Fix container usage for Symfony 3.4
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
DependencyInjection/Compiler/OverwriteIdentitiesProviderPass.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<?php | ||
|
||
namespace Mapbender\LDAPBundle\DependencyInjection\Compiler; | ||
namespace Mapbender\LDAPBundle\DependencyInjection\Compiler; | ||
|
||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
|
||
class OverwriteIdentitiesProviderPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container) | ||
{ | ||
$container->setParameter("fom.identities.provider.class", "Mapbender\LDAPBundle\Security\Provider\LDAPIdentitiesProvider"); | ||
|
||
$container->register('fom.identities.provider', "Mapbender\LDAPBundle\Security\Provider\LDAPIdentitiesProvider") | ||
->addArgument(new Reference('doctrine')) | ||
->addArgument(new Reference('fom.ldap_user_identities_provider')) | ||
->addArgument('%fom.user_entity%') | ||
->addArgument(new Reference('service_container')) | ||
; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters