src/Factory.php
public function register(string $name, string $path): bool
    {
        return $this->finder()->registerExtension($name, $path);
    }
public function register(string $name, string $path): bool
    {
        return $this->finder()->registerExtension($name, $path);
    }
Register an extension.

@param  string  $name
@param  string  $path

@return bool