-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as a regression with multiclient feature frontend requests with relevant queries may be blocked through the new feature. For example scoring calculation is broken before this commit.
- Loading branch information
1 parent
408c17d
commit 8266b3f
Showing
8 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
namespace In2code\Lux\Utility; | ||
|
||
use TYPO3\CMS\Core\Http\ApplicationType; | ||
|
||
class EnvironmentUtility | ||
{ | ||
/** | ||
* @return bool | ||
* @SuppressWarnings(PHPMD.Superglobals) | ||
*/ | ||
public static function isFrontend(): bool | ||
{ | ||
return ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isFrontend(); | ||
} | ||
|
||
/** | ||
* @return bool | ||
* @SuppressWarnings(PHPMD.Superglobals) | ||
*/ | ||
public static function isBackend(): bool | ||
{ | ||
return ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters