/** * @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(); }
/** * @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(); }