lib/ServiceDescriptionLoader.php
protected function loadModular($path)
    {
        $config = array();

        // Loop over files in $path (recursing into sub-directories)
        foreach ($this->filesIn($path) as $file) {
            // Determine the relative path of the current file by
            // stripping $path from the beginning of the absolute path
            $nestPath = $this->getNestPath($file->getPathname(), $path);

            $content = $this->configLoader->load($file->getPathname());
            $config = $this->merge($config, $this->nest($content, $nestPath));
        }

        return $config;
    }
protected function loadModular($path)
    {
        $config = array();

        // Loop over files in $path (recursing into sub-directories)
        foreach ($this->filesIn($path) as $file) {
            // Determine the relative path of the current file by
            // stripping $path from the beginning of the absolute path
            $nestPath = $this->getNestPath($file->getPathname(), $path);

            $content = $this->configLoader->load($file->getPathname());
            $config = $this->merge($config, $this->nest($content, $nestPath));
        }

        return $config;
    }
protected function loadModular ( $ path ) { $ config = array ( ) ; // Loop over files in $path (recursing into sub-directories) foreach ( $ this -> filesIn ( $ path ) as $ file ) { // Determine the relative path of the current file by // stripping $path from the beginning of the absolute path $ nestPath = $ this -> getNestPath ( $ file -> getPathname ( ) , $ path ) ; $ content = $ this -> configLoader -> load ( $ file -> getPathname ( ) ) ; $ config = $ this -> merge ( $ config , $ this -> nest ( $ content , $ nestPath ) ) ; } return $ config ; }
Loads a modular service description

@param string $path Path to the service description to load

@return array
Loads a modular service description