applications/dashboard/controllers/class.authenticationcontroller.php
public function Initialize() {
      parent::Initialize();
      Gdn_Theme::Section('Dashboard');
      if ($this->Menu)
         $this->Menu->HighlightRoute('/dashboard/authentication');
         
      $this->EnableSlicing($this);
      
      $Authenticators = Gdn::Authenticator()->GetAvailable();
      $this->ChooserList = array();
      $this->ConfigureList = array();
      foreach ($Authenticators as $AuthAlias => $AuthConfig) {
         $this->ChooserList[$AuthAlias] = $AuthConfig['Name'];
         $Authenticator = Gdn::Authenticator()->AuthenticateWith($AuthAlias);
         $ConfigURL = (is_a($Authenticator, "Gdn_Authenticator") && method_exists($Authenticator, 'AuthenticatorConfiguration')) ? $Authenticator->AuthenticatorConfiguration($this) : FALSE;
         $this->ConfigureList[$AuthAlias] = $ConfigURL;
      }
      $this->CurrentAuthenticationAlias = Gdn::Authenticator()->AuthenticateWith('default')->GetAuthenticationSchemeAlias();
   }
public function Initialize() {
      parent::Initialize();
      Gdn_Theme::Section('Dashboard');
      if ($this->Menu)
         $this->Menu->HighlightRoute('/dashboard/authentication');
         
      $this->EnableSlicing($this);
      
      $Authenticators = Gdn::Authenticator()->GetAvailable();
      $this->ChooserList = array();
      $this->ConfigureList = array();
      foreach ($Authenticators as $AuthAlias => $AuthConfig) {
         $this->ChooserList[$AuthAlias] = $AuthConfig['Name'];
         $Authenticator = Gdn::Authenticator()->AuthenticateWith($AuthAlias);
         $ConfigURL = (is_a($Authenticator, "Gdn_Authenticator") && method_exists($Authenticator, 'AuthenticatorConfiguration')) ? $Authenticator->AuthenticatorConfiguration($this) : FALSE;
         $this->ConfigureList[$AuthAlias] = $ConfigURL;
      }
      $this->CurrentAuthenticationAlias = Gdn::Authenticator()->AuthenticateWith('default')->GetAuthenticationSchemeAlias();
   }
public function Initialize ( ) { parent :: Initialize ( ) ; Gdn_Theme :: Section ( 'Dashboard' ) ; if ( $ this -> Menu ) $ this -> Menu -> HighlightRoute ( '/dashboard/authentication' ) ; $ this -> EnableSlicing ( $ this ) ; $ Authenticators = Gdn :: Authenticator ( ) -> GetAvailable ( ) ; $ this -> ChooserList = array ( ) ; $ this -> ConfigureList = array ( ) ; foreach ( $ Authenticators as $ AuthAlias => $ AuthConfig ) { $ this -> ChooserList [ $ AuthAlias ] = $ AuthConfig [ 'Name' ] ; $ Authenticator = Gdn :: Authenticator ( ) -> AuthenticateWith ( $ AuthAlias ) ; $ ConfigURL = ( is_a ( $ Authenticator , "Gdn_Authenticator" ) && method_exists ( $ Authenticator , 'AuthenticatorConfiguration' ) ) ? $ Authenticator -> AuthenticatorConfiguration ( $ this ) : FALSE ; $ this -> ConfigureList [ $ AuthAlias ] = $ ConfigURL ; } $ this -> CurrentAuthenticationAlias = Gdn :: Authenticator ( ) -> AuthenticateWith ( 'default' ) -> GetAuthenticationSchemeAlias ( ) ; }
Highlight route and do authenticator setup.

Always called by dispatcher before controller's requested method.

@since 2.0.3
@access public
Highlight route and do authenticator setup .