Sleimanx2\Plastic\Mappings\Mapper::getMappingFiles PHP Method

getMappingFiles() public method

Get all of the migration files in a given path.
public getMappingFiles ( $path ) : array
$path
return array
    public function getMappingFiles($path)
    {
        $files = $this->files->glob($path . '/*_*.php');
        if ($files === false) {
            return [];
        }
        $files = array_map(function ($file) {
            return str_replace('.php', '', basename($file));
        }, $files);
        return $files;
    }