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

Breadcrumb

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

class LazyDeprecatedScopeResolverProvider

Hierarchy

  • class \PHPStan\DependencyInjection\LazyDeprecatedScopeResolverProvider

Expanded class hierarchy of LazyDeprecatedScopeResolverProvider

File

vendor/phpstan/phpstan-deprecation-rules/src/DependencyInjection/LazyDeprecatedScopeResolverProvider.php, line 7

Namespace

PHPStan\DependencyInjection
View source
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;
    }

}

Members

Title Sort descending Modifiers Object type Summary
LazyDeprecatedScopeResolverProvider::$container private property @var Container
LazyDeprecatedScopeResolverProvider::$scopeHelper private property @var DeprecatedScopeHelper
LazyDeprecatedScopeResolverProvider::EXTENSION_TAG public constant
LazyDeprecatedScopeResolverProvider::get public function
LazyDeprecatedScopeResolverProvider::__construct public function

API Navigation

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