Loading core/core.services.yml +2 −0 Original line number Diff line number Diff line Loading @@ -398,6 +398,8 @@ services: context.repository: class: Drupal\Core\Plugin\Context\LazyContextRepository arguments: ['@service_container'] tags: - { name: service_id_collector, tag: context_provider } Drupal\Core\Plugin\Context\ContextRepositoryInterface: '@context.repository' Drupal\Component\DependencyInjection\ReverseContainer: arguments: [ '@service_container' ] Loading core/lib/Drupal/Core/CoreServiceProvider.php +0 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ use Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass; use Drupal\Core\DependencyInjection\Compiler\CorsCompilerPass; use Drupal\Core\DependencyInjection\Compiler\DeprecatedServicePass; use Drupal\Core\DependencyInjection\Compiler\ContextProvidersPass; use Drupal\Core\DependencyInjection\Compiler\DevelopmentSettingsPass; use Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass; use Drupal\Core\DependencyInjection\Compiler\StackedKernelPass; Loading Loading @@ -91,7 +90,6 @@ public function register(ContainerBuilder $container) { // Add the compiler pass that will process the tagged services. $container->addCompilerPass(new ListCacheBinsPass()); $container->addCompilerPass(new CacheContextsPass()); $container->addCompilerPass(new ContextProvidersPass()); $container->addCompilerPass(new AuthenticationProviderPass()); // Register plugin managers. Loading core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php +6 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,12 @@ /** * Adds the context provider service IDs to the context manager. * * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. The * context.repository service uses the service_id_collector pattern instead * so this is no longer needed. * * @see https://www.drupal.org/node/3395641 */ class ContextProvidersPass implements CompilerPassInterface { Loading Loading
core/core.services.yml +2 −0 Original line number Diff line number Diff line Loading @@ -398,6 +398,8 @@ services: context.repository: class: Drupal\Core\Plugin\Context\LazyContextRepository arguments: ['@service_container'] tags: - { name: service_id_collector, tag: context_provider } Drupal\Core\Plugin\Context\ContextRepositoryInterface: '@context.repository' Drupal\Component\DependencyInjection\ReverseContainer: arguments: [ '@service_container' ] Loading
core/lib/Drupal/Core/CoreServiceProvider.php +0 −2 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ use Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass; use Drupal\Core\DependencyInjection\Compiler\CorsCompilerPass; use Drupal\Core\DependencyInjection\Compiler\DeprecatedServicePass; use Drupal\Core\DependencyInjection\Compiler\ContextProvidersPass; use Drupal\Core\DependencyInjection\Compiler\DevelopmentSettingsPass; use Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass; use Drupal\Core\DependencyInjection\Compiler\StackedKernelPass; Loading Loading @@ -91,7 +90,6 @@ public function register(ContainerBuilder $container) { // Add the compiler pass that will process the tagged services. $container->addCompilerPass(new ListCacheBinsPass()); $container->addCompilerPass(new CacheContextsPass()); $container->addCompilerPass(new ContextProvidersPass()); $container->addCompilerPass(new AuthenticationProviderPass()); // Register plugin managers. Loading
core/lib/Drupal/Core/DependencyInjection/Compiler/ContextProvidersPass.php +6 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,12 @@ /** * Adds the context provider service IDs to the context manager. * * @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. The * context.repository service uses the service_id_collector pattern instead * so this is no longer needed. * * @see https://www.drupal.org/node/3395641 */ class ContextProvidersPass implements CompilerPassInterface { Loading