Documentation

SourceChain
in package
implements DefinitionSource, MutableDefinitionSource

Manages a chain of other definition sources.

Tags
author

Matthieu Napoli matthieu@mnapoli.fr

Table of Contents

Interfaces

DefinitionSource
Source of definitions for entries of the container.
MutableDefinitionSource
Describes a definition source to which we can add new definitions.

Properties

$mutableSource  : MutableDefinitionSource|null
$sources  : array<string|int, mixed>

Methods

__construct()  : mixed
addDefinition()  : void
getDefinition()  : Definition|null
Returns the DI definition for the entry name.
getDefinitions()  : array<string, Definition>
setMutableDefinitionSource()  : void
resolveExtendedDefinition()  : mixed

Properties

Methods

addDefinition()

public addDefinition(Definition $definition) : void
Parameters
$definition : Definition

getDefinition()

Returns the DI definition for the entry name.

public getDefinition(string $name[, int $startIndex = 0 ]) : Definition|null
Parameters
$name : string
$startIndex : int = 0

Use this parameter to start looking from a specific point in the source chain.

Return values
Definition|null

getDefinitions()

public getDefinitions() : array<string, Definition>
Return values
array<string, Definition>

Definitions indexed by their name.


        
On this page

Search results