Beispiel #1
0
 /**
  * @param ConsoleBootstrap $bootstrap
  */
 public static function initializeAuthenticatedOperations(ConsoleBootstrap $bootstrap)
 {
     $bootstrap->initializeBackendUser();
     $bootstrap->initializeBackendAuthentication();
     if (method_exists($bootstrap, 'initializeBackendUserMounts')) {
         $bootstrap->initializeBackendUserMounts();
     }
     // Global language object on CLI? rly? but seems to be needed by some scheduler tasks :(
     $bootstrap->initializeLanguageObject();
 }
Beispiel #2
0
 /**
  * @param ConsoleBootstrap $bootstrap
  */
 public static function initializeAuthenticatedOperations(ConsoleBootstrap $bootstrap)
 {
     $bootstrap->initializeBackendUser();
     // TODO: avoid throwing a deprecation message with this call
     $GLOBALS['BE_USER']->backendCheckLogin();
     if (method_exists($bootstrap, 'initializeBackendUserMounts')) {
         $bootstrap->initializeBackendUserMounts();
     }
     // Global language object on CLI? rly? but seems to be needed by some scheduler tasks :(
     $bootstrap->initializeLanguageObject();
 }