piwik/vendor/mnapoli/php-di/src/DI/Definition/Source/PHPFileDefinitionSource.php
/**
     * Lazy-loading of the definitions.
     * @throws DefinitionException
     */
Lazy-loading of the definitions.
Lazy - loading of the definitions .
private function initialize()
    {
        if ($this->initialized === true) {
            return;
        }
        if (! is_readable($this->file)) {
            throw new DefinitionException("File {$this->file} doesn't exist or is not readable");
        }
        $definitions = require $this->file;
        if (! is_array($definitions)) {
            throw new DefinitionException("File {$this->file} should return an array of definitions");
        }
        $this->addDefinitions($definitions);
        $this->initialized = true;
    }
private function initialize ( ) { if ( $ this -> initialized === true ) { return ; } if ( ! is_readable ( $ this -> file ) ) { throw new DefinitionException ( " File  { $ this -> file }  doesn't exist or is not readable " ) ; } $ definitions = require $ this -> file ; if ( ! is_array ( $ definitions ) ) { throw new DefinitionException ( " File  { $ this -> file }  should return an array of definitions " ) ; } $ this -> addDefinitions ( $ definitions ) ; $ this -> initialized = true ; }
Lazy-loading of the definitions.
Lazy - loading of the definitions .