protected function getAuthenticator(IContainer $container) : IAuthenticator
    {
        $authenticatorRegistry = new AuthenticatorRegistry();
        $authenticator = new Authenticator($authenticatorRegistry);
        $container->bindInstance(IAuthenticatorRegistry::class, $authenticatorRegistry);

        return $authenticator;
    }
protected function getAuthenticator(IContainer $container) : IAuthenticator
    {
        $authenticatorRegistry = new AuthenticatorRegistry();
        $authenticator = new Authenticator($authenticatorRegistry);
        $container->bindInstance(IAuthenticatorRegistry::class, $authenticatorRegistry);

        return $authenticator;
    }
protected function getAuthenticator ( IContainer $ container ) : IAuthenticator { $ authenticatorRegistry = new AuthenticatorRegistry ( ) ; $ authenticator = new Authenticator ( $ authenticatorRegistry ) ; $ container -> bindInstance ( IAuthenticatorRegistry :: class , $ authenticatorRegistry ) ; return $ authenticator ; }
Gets the authenticator

@param IContainer $container The IoC container
@return IAuthenticator The authenticator
Gets the authenticator