public function loadYamlFromDirectory($directory, $namespace = 'global.', $environment = null)
    {
        if ($environment === null) {
            $environment = $this->environment;
        }

        foreach (glob($directory . '/*.yml') as $filename) {
            $this->load($filename, $namespace . basename($filename, '.yml'), new Yaml(), $environment);
        }

        return $this;
    }
public function loadYamlFromDirectory($directory, $namespace = 'global.', $environment = null)
    {
        if ($environment === null) {
            $environment = $this->environment;
        }

        foreach (glob($directory . '/*.yml') as $filename) {
            $this->load($filename, $namespace . basename($filename, '.yml'), new Yaml(), $environment);
        }

        return $this;
    }
public function loadYamlFromDirectory ( $ directory , $ namespace = 'global.' , $ environment = null ) { if ( $ environment === null ) { $ environment = $ this -> environment ; } foreach ( glob ( $ directory . '/*.yml' ) as $ filename ) { $ this -> load ( $ filename , $ namespace . basename ( $ filename , '.yml' ) , new Yaml ( ) , $ environment ) ; } return $ this ; }
Load yaml files froem given directory.

@param  string $directory
@param  string $namespace
@param  null|string $environment
@return $this
Load yaml files froem given directory .