src/Settings/YamlSettings.php
public function read($file)
    {
        $file = '/settings/' . $file;

        /**
         * @todo validate that $file is a string
         */

        $result = [];

        if ($this->source_filesystem->has($file . '.yml')) {

            $result = $this->yaml->parse($this->source_filesystem->read($file . '.yml'));
        }

        return $result;
    }
public function read($file)
    {
        $file = '/settings/' . $file;

        /**
         * @todo validate that $file is a string
         */

        $result = [];

        if ($this->source_filesystem->has($file . '.yml')) {

            $result = $this->yaml->parse($this->source_filesystem->read($file . '.yml'));
        }

        return $result;
    }
public function read ( $ file ) { $ file = '/settings/' . $ file ; /**
         * @todo validate that $file is a string
         */ $ result = [ ] ; if ( $ this -> source_filesystem -> has ( $ file . '.yml' ) ) { $ result = $ this -> yaml -> parse ( $ this -> source_filesystem -> read ( $ file . '.yml' ) ) ; } return $ result ; }
Reads a settings file.

@param  string $file A file to read.
@return array  The settings read.
Reads a settings file .