Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/jresolutions.dk/test/vendor/facade/flare-client-php/src/Context/ContextContextDetector.php
Назад
<?php namespace Facade\FlareClient\Context; class ContextContextDetector implements ContextDetectorInterface { public function detectCurrentContext(): ContextInterface { if ($this->runningInConsole()) { return new ConsoleContext($_SERVER['argv'] ?? []); } return new RequestContext(); } private function runningInConsole(): bool { if (isset($_ENV['APP_RUNNING_IN_CONSOLE'])) { return $_ENV['APP_RUNNING_IN_CONSOLE'] === 'true'; } return in_array(php_sapi_name(), ['cli', 'phpdb']); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка