src/ConfigRepository.php
public function build()
    {
        $files = $this->filesystem->listFiles($this->directory);

        $this->cache->clear();

        foreach ($files as $file) {
            if ($file['extension'] == 'yml' || $file['extension'] == 'yaml') {
                $this->cache->put($file['filename'], $this->yaml->parse($this->filesystem->read($file['path'])));
            }
        }

        $this->cache->persist();
        $this->updateValues();
    }
public function build()
    {
        $files = $this->filesystem->listFiles($this->directory);

        $this->cache->clear();

        foreach ($files as $file) {
            if ($file['extension'] == 'yml' || $file['extension'] == 'yaml') {
                $this->cache->put($file['filename'], $this->yaml->parse($this->filesystem->read($file['path'])));
            }
        }

        $this->cache->persist();
        $this->updateValues();
    }
public function build ( ) { $ files = $ this -> filesystem -> listFiles ( $ this -> directory ) ; $ this -> cache -> clear ( ) ; foreach ( $ files as $ file ) { if ( $ file [ 'extension' ] == 'yml' || $ file [ 'extension' ] == 'yaml' ) { $ this -> cache -> put ( $ file [ 'filename' ] , $ this -> yaml -> parse ( $ this -> filesystem -> read ( $ file [ 'path' ] ) ) ) ; } } $ this -> cache -> persist ( ) ; $ this -> updateValues ( ) ; }
Parse the config files and save the values in the cache and in memory

@return void
Parse the config files and save the values in the cache and in memory