class YamlFileLoader (View source)

YamlFileLoader loads YAML files service definitions.

Drupal does not use Symfony's Config component, and Symfony's dependency on it cannot be removed easily. Therefore, this is a partial but mostly literal copy of upstream, which does not depend on the Config component.

Properties

protected ContainerBuilder $container
protected FileCacheInterface $fileCache

File cache object.

Methods

__construct(ContainerBuilder $container)

No description

load(mixed $file)

Loads a Yaml file.

array
loadFile(string $file)

Loads a YAML file.

Details

__construct(ContainerBuilder $container)

No description

Parameters

ContainerBuilder $container

load(mixed $file)

Loads a Yaml file.

Parameters

mixed $file

The resource

protected array loadFile(string $file)

Loads a YAML file.

Parameters

string $file

Return Value

array

The file content

Exceptions

InvalidArgumentException