YamlFileLoader
class YamlFileLoader extends FileLoader
YamlFileLoader loads YAML files service definitions.
Properties
protected | $resolver | from Loader | |
static protected | $loading | from FileLoader | |
protected | $locator | from FileLoader | |
protected | $container | from FileLoader | |
protected | $isLoadingInstanceof | from FileLoader | |
protected | $instanceof | from FileLoader |
Methods
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
from FileLoader
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
from FileLoader
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
No description
from FileLoader
registerClasses(Definition $prototype, string $namespace, string $resource, string|string[]|null $exclude = null)
Registers a set of classes as services using PSR-4 for discovery.
from FileLoader
setDefinition(string $id, Definition $definition)
Registers a definition in the container with its instanceof-conditionals.
from FileLoader
load(mixed $resource, string|null $type = null)
Loads a resource.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
array
loadFile(string $file)
Loads a YAML file.
Details
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
protected
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
registerClasses(Definition $prototype, string $namespace, string $resource, string|string[]|null $exclude = null)
Registers a set of classes as services using PSR-4 for discovery.
protected
setDefinition(string $id, Definition $definition)
Registers a definition in the container with its instanceof-conditionals.