src/mako/gatekeeper/Gatekeeper.php
protected function registerAdapter($adapter): string
	{
		if($adapter instanceof AdapterInterface)
		{
			return $this->registerAdapterInstance($adapter);
		}

		[$name, $factory] = $adapter;

		return $this->registerAdapterFactory($name, $factory);
	}
protected function registerAdapter($adapter): string
	{
		if($adapter instanceof AdapterInterface)
		{
			return $this->registerAdapterInstance($adapter);
		}

		[$name, $factory] = $adapter;

		return $this->registerAdapterFactory($name, $factory);
	}
protected function registerAdapter ( $ adapter ) : string { if ( $ adapter instanceof AdapterInterface ) { return $ this -> registerAdapterInstance ( $ adapter ) ; } [ $ name , $ factory ] = $ adapter ; return $ this -> registerAdapterFactory ( $ name , $ factory ) ; }
Registers an adapter.

@param  array|\mako\gatekeeper\adapters\AdapterInterface $adapter Array containing the adapter name and closure factory or an adapter instance
@return string
Registers an adapter .