src/Finder.php
public function registerExtension(string $name, string $path): bool
    {
        $this->paths[$name] = \rtrim($path, '/');

        return true;
    }
public function registerExtension(string $name, string $path): bool
    {
        $this->paths[$name] = \rtrim($path, '/');

        return true;
    }
Register the extension.

@param  string  $name
@param  string  $path

@return bool