You are here

public function Container::__construct in Little helpers 7.2

Create a new loader instance.

Parameters

string $name: The service name of the container itself. (default: 'container').

File

src/Services/Container.php, line 60

Class

Container
Dependency injection container.

Namespace

Drupal\little_helpers\Services

Code

public function __construct(string $name = 'container') {
  $this->instances[$name] = $this;
}