src/mako/gatekeeper/Gatekeeper.php
protected function registerAdapterFactory(string $name, Closure $factory): string
	{
		$this->adapterFactories[$name] = $factory;

		return $name;
	}
protected function registerAdapterFactory(string $name, Closure $factory): string
	{
		$this->adapterFactories[$name] = $factory;

		return $name;
	}
protected function registerAdapterFactory ( string $ name , Closure $ factory ) : string { $ this -> adapterFactories [ $ name ] = $ factory ; return $ name ; }
Registers an adapter factory.

@param  string   $name    Adapter name
@param  \Closure $factory Adapter factory
@return string
Registers an adapter factory .