public function configure(UserConfigurationListener $listener, AreaContract $area)
    {
        $provider   = $this->twoFactorProvidersService->getEnabledInArea($area);
        $userConfig = $this->userConfigService->saveConfig($provider);


        $form = $this->presenter->configure($userConfig, $area, $provider);

        $this->dispatcher->fire('antares.form: two_factor_auth', [$provider, $form]);

        return $listener->showConfiguration($provider, $form);
    }
public function configure(UserConfigurationListener $listener, AreaContract $area)
    {
        $provider   = $this->twoFactorProvidersService->getEnabledInArea($area);
        $userConfig = $this->userConfigService->saveConfig($provider);


        $form = $this->presenter->configure($userConfig, $area, $provider);

        $this->dispatcher->fire('antares.form: two_factor_auth', [$provider, $form]);

        return $listener->showConfiguration($provider, $form);
    }
public function configure ( UserConfigurationListener $ listener , AreaContract $ area ) { $ provider = $ this -> twoFactorProvidersService -> getEnabledInArea ( $ area ) ; $ userConfig = $ this -> userConfigService -> saveConfig ( $ provider ) ; $ form = $ this -> presenter -> configure ( $ userConfig , $ area , $ provider ) ; $ this -> dispatcher -> fire ( 'antares.form: two_factor_auth' , [ $ provider , $ form ] ) ; return $ listener -> showConfiguration ( $ provider , $ form ) ; }
Show configuration form for given area.

@param UserConfigurationListener $listener
@param AreaContract $area
@return type
Show configuration form for given area .