DI\Definition\Source\DefinitionArray::__construct PHP Method

__construct() public method

public __construct ( array $definitions = [] )
$definitions array
    public function __construct(array $definitions = [])
    {
        $this->definitions = $definitions;
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $file File in which the definitions are returned as an array.
  */
 public function __construct($file)
 {
     // Lazy-loading to improve performances
     $this->file = $file;
     parent::__construct([]);
 }