Skip to content

Commit

Permalink
Using hasAlias() instead of getAlias()
Browse files Browse the repository at this point in the history
  • Loading branch information
MolloKhan committed Sep 27, 2017
1 parent bc3bd7c commit 658d622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/KnpUOAuth2ClientExtension.php
Expand Up @@ -221,7 +221,7 @@ private function configureProviderAndClient(ContainerBuilder $container, $provid
// add an alias, but only if a provider type is used only 1 time
if (!in_array($providerType, $this->duplicateProviderTypes)) {
// alias already exists? This is a duplicate type, record it
if ($container->getAlias($clientClass)) {
if ($container->hasAlias($clientClass)) {
$this->duplicateProviderTypes[] = $providerType;
} else {
// all good, add the alias
Expand Down

0 comments on commit 658d622

Please sign in to comment.