Skip to content
Snippets Groups Projects
Verified Commit d0b79059 authored by Dave Long's avatar Dave Long
Browse files

Issue #3394680 by tstoeckler: Deprecate ContextProvidersPass in favor of using service_id_collector

(cherry picked from commit 0a136236)
parent 5748d6a5
No related branches found
No related tags found
20 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument,!6119Issue #3405704 by Spokje, longwave: symfony/psr-http-message-bridge major version bump,!5950Issue #3403653 by alexpott, longwave: Incorporate improvements to how contrib runs PHPStan to core,!5858Issue #3401971 by fjgarlin: Test-only job shouldn't require constant rebases...,!5716Draft: Issue #3401102 by Spokje, longwave, smustgrave: Nightwatch artifacts on GitLab not retained,!5674Transaction autocommit during shutdown relies on unreliable object destruction order,!5644Issue #3395563 by nireneko, marvil07, lauriii, borisson_, smustgrave, Wim...
Pipeline #37441 passed
Pipeline: drupal

#37446

    Pipeline: drupal

    #37445

      Pipeline: drupal

      #37444

        +1
        ......@@ -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' ]
        ......
        ......@@ -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;
        ......@@ -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.
        ......
        ......@@ -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 {
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment