src/di/Di.php
protected function loadCustomServices($configDir) {
        if (!is_string($configDir)) throw new IllegalTypeException('Illegal type of parameter $configDir: '.gettype($configDir));
        if (!is_file($file = $configDir.'/services.php'))
            return false;

        foreach (include($file) as $name => $definition) {
            $this->set($name, $definition);
        }
        return true;
    }
protected function loadCustomServices($configDir) {
        if (!is_string($configDir)) throw new IllegalTypeException('Illegal type of parameter $configDir: '.gettype($configDir));
        if (!is_file($file = $configDir.'/services.php'))
            return false;

        foreach (include($file) as $name => $definition) {
            $this->set($name, $definition);
        }
        return true;
    }
protected function loadCustomServices ( $ configDir ) { if ( ! is_string ( $ configDir ) ) throw new IllegalTypeException ( 'Illegal type of parameter $configDir: ' . gettype ( $ configDir ) ) ; if ( ! is_file ( $ file = $ configDir . '/services.php' ) ) return false ; foreach ( include ( $ file ) as $ name => $ definition ) { $ this -> set ( $ name , $ definition ) ; } return true ; }
Load custom service definitions.

@param  string $configDir - directory to load service definitions from

@return bool - whether a custom service definitions has been found and successfully loaded
Load custom service definitions .