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

Breadcrumb

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

function ServiceLocatorTrait::__construct

Parameters

array<string, callable> $factories:

2 calls to ServiceLocatorTrait::__construct()
ServiceLocator::__construct in vendor/symfony/dependency-injection/Argument/ServiceLocator.php
ServiceLocator::__construct in vendor/symfony/dependency-injection/Argument/ServiceLocator.php
1 method overrides ServiceLocatorTrait::__construct()
ServiceLocator::__construct in vendor/symfony/dependency-injection/Argument/ServiceLocator.php

File

vendor/symfony/service-contracts/ServiceLocatorTrait.php, line 36

Class

ServiceLocatorTrait
A trait to help implement ServiceProviderInterface.

Namespace

Symfony\Contracts\Service

Code

public function __construct(array $factories) {
    $this->factories = $factories;
}
RSS feed
Powered by Drupal