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

Breadcrumb

  1. Drupal Core 11.1.x

LazyDeprecatedScopeResolverProvider.php

Namespace

PHPStan\DependencyInjection

File

vendor/phpstan/phpstan-deprecation-rules/src/DependencyInjection/LazyDeprecatedScopeResolverProvider.php

View source
<?php

declare (strict_types=1);
namespace PHPStan\DependencyInjection;

use PHPStan\Rules\Deprecations\DeprecatedScopeHelper;
final class LazyDeprecatedScopeResolverProvider {
    public const EXTENSION_TAG = 'phpstan.deprecations.deprecatedScopeResolver';
    
    /** @var Container */
    private $container;
    
    /** @var DeprecatedScopeHelper */
    private $scopeHelper;
    public function __construct(Container $container) {
        $this->container = $container;
    }
    public function get() : DeprecatedScopeHelper {
        if ($this->scopeHelper === null) {
            $this->scopeHelper = new DeprecatedScopeHelper($this->container
                ->getServicesByTag(self::EXTENSION_TAG));
        }
        return $this->scopeHelper;
    }

}

Classes

Title Deprecated Summary
LazyDeprecatedScopeResolverProvider

API Navigation

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