本文整理汇总了PHP中TYPO3\CMS\Core\Core\Bootstrap::checkLockedBackendAndRedirectOrDie方法的典型用法代码示例。如果您正苦于以下问题:PHP Bootstrap::checkLockedBackendAndRedirectOrDie方法的具体用法?PHP Bootstrap::checkLockedBackendAndRedirectOrDie怎么用?PHP Bootstrap::checkLockedBackendAndRedirectOrDie使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Core\Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::checkLockedBackendAndRedirectOrDie方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handleRequest
/**
* Handles any backend request
*
* @return void
*/
public function handleRequest()
{
// Evaluate the constant for skipping the BE user check for the bootstrap
if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
$proceedIfNoUserIsLoggedIn = TRUE;
} else {
$proceedIfNoUserIsLoggedIn = FALSE;
}
$this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
}
示例2: handleRequest
/**
* Handles any backend request
*
* @param \Psr\Http\Message\ServerRequestInterface $request
* @return NULL|\Psr\Http\Message\ResponseInterface
*/
public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request)
{
// enable dispatching via Request/Response logic only for typo3/index.php currently
$path = substr($request->getUri()->getPath(), strlen(GeneralUtility::getIndpEnv('TYPO3_SITE_PATH')));
$routingEnabled = $path === TYPO3_mainDir . 'index.php' || $path === TYPO3_mainDir;
// Evaluate the constant for skipping the BE user check for the bootstrap
if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
$proceedIfNoUserIsLoggedIn = TRUE;
} else {
$proceedIfNoUserIsLoggedIn = FALSE;
}
$this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
if ($routingEnabled) {
return $this->dispatch($request);
}
return NULL;
}
示例3: boot
/**
* Execute TYPO3 bootstrap
*
* @return void
*/
protected function boot()
{
// Evaluate the constant for skipping the BE user check for the bootstrap, will be done without the constant at a later point
if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
$proceedIfNoUserIsLoggedIn = true;
} else {
$proceedIfNoUserIsLoggedIn = false;
}
$this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->initializeBackendRouter()->loadExtensionTables(true)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
}
示例4: boot
/**
* Does the main work for setting up the backend environment for any Backend request
*
* @param bool $proceedIfNoUserIsLoggedIn option to allow to render the request even if no user is logged in
* @return void
*/
protected function boot($proceedIfNoUserIsLoggedIn)
{
$this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->initializeBackendRouter()->loadExtensionTables(true)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
}
示例5: boot
/**
* Start the Backend bootstrap part
*
* @param string $ajaxId Contains the string of the ajaxId used
*/
protected function boot($ajaxId)
{
// If we're trying to do an ajax login, don't require a user
$proceedIfNoUserIsLoggedIn = in_array($ajaxId, $this->publicAjaxIds, TRUE);
$this->bootstrap->checkLockedBackendAndRedirectOrDie($proceedIfNoUserIsLoggedIn)->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
}