public function load()
    {
        $items = [];
        $directory = new DirectoryIterator(realpath($this->directory));

        foreach ($directory as $file) {
            if ($file->isFile() && $file->getExtension() == $this->extension) {
                $filename = $file->getFilename();
                $config = substr($filename, 0, strrpos($filename, '.'));

                $items[$config] = $this->translateFile($file->getPathname());
            }
        }

        return $items;
    }
public function load()
    {
        $items = [];
        $directory = new DirectoryIterator(realpath($this->directory));

        foreach ($directory as $file) {
            if ($file->isFile() && $file->getExtension() == $this->extension) {
                $filename = $file->getFilename();
                $config = substr($filename, 0, strrpos($filename, '.'));

                $items[$config] = $this->translateFile($file->getPathname());
            }
        }

        return $items;
    }
public function load ( ) { $ items = [ ] ; $ directory = new DirectoryIterator ( realpath ( $ this -> directory ) ) ; foreach ( $ directory as $ file ) { if ( $ file -> isFile ( ) && $ file -> getExtension ( ) == $ this -> extension ) { $ filename = $ file -> getFilename ( ) ; $ config = substr ( $ filename , 0 , strrpos ( $ filename , '.' ) ) ; $ items [ $ config ] = $ this -> translateFile ( $ file -> getPathname ( ) ) ; } } return $ items ; }
Load the configuration items and return them as an array.

@return array
Load the configuration items and return them as an array .