Move mode settings to App\Mode
- Move isAjax() to App\Mode - Move isTablet() to App\Mode - Move isMobile() to App\Mode - Refactor last usage of App->isBackend()
This commit is contained in:
parent
e7c3d327cc
commit
90b438e082
6 changed files with 148 additions and 58 deletions
|
@ -62,7 +62,7 @@ return [
|
|||
],
|
||||
App\Mode::class => [
|
||||
'call' => [
|
||||
['determineBackend', [$_SERVER], Dice::CHAIN_CALL],
|
||||
['determineRunMode', [$_SERVER], Dice::CHAIN_CALL],
|
||||
['determine', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue