Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AuthenticationProviderPass.php

class AuthenticationProviderPass

Registers the authentication_providers container parameter.

Hierarchy

  • class \Drupal\Core\DependencyInjection\Compiler\AuthenticationProviderPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of AuthenticationProviderPass

1 file declares its use of AuthenticationProviderPass
CoreServiceProvider.php in core/lib/Drupal/Core/CoreServiceProvider.php

File

core/lib/Drupal/Core/DependencyInjection/Compiler/AuthenticationProviderPass.php, line 11

Namespace

Drupal\Core\DependencyInjection\Compiler
View source
class AuthenticationProviderPass implements CompilerPassInterface {
    
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container) : void {
        $authentication_providers = [];
        foreach ($container->findTaggedServiceIds('authentication_provider') as $service_id => $attributes) {
            $authentication_provider = $attributes[0]['provider_id'];
            if ($provider_tag = $container->getDefinition($service_id)
                ->getTag('_provider')) {
                $authentication_providers[$authentication_provider] = $provider_tag[0]['provider'];
            }
        }
        $container->setParameter('authentication_providers', $authentication_providers);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
AuthenticationProviderPass::process public function You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface::process

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal