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;
    }