public function getRelativeFiles(Finder $finder)
    {
        $files = [];
        foreach ($this->getFiles($finder) as $file) {
            $files[] = str_replace($this->directory.'/', '', $file);
        }

        return $files;
    }
public function getRelativeFiles(Finder $finder)
    {
        $files = [];
        foreach ($this->getFiles($finder) as $file) {
            $files[] = str_replace($this->directory.'/', '', $file);
        }

        return $files;
    }
public function getRelativeFiles ( Finder $ finder ) { $ files = [ ] ; foreach ( $ this -> getFiles ( $ finder ) as $ file ) { $ files [ ] = str_replace ( $ this -> directory . '/' , '' , $ file ) ; } return $ files ; }
Get a list of plugin files, with paths relative to the plugin itself.

@param Finder $finder The finder to use, can be pre-configured

@return array Of files
Get a list of plugin files with paths relative to the plugin itself .