mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-13 08:34:12 +02:00
Check if monolog runs in web context (#1024)
* Check if monolog runs in web context
This commit is contained in:
@@ -153,4 +153,9 @@ class TestChromePHPHandler extends ChromePHPHandler
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
||||
protected function isWebRequest(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -93,4 +93,9 @@ class TestFirePHPHandler extends FirePHPHandler
|
||||
{
|
||||
return $this->headers;
|
||||
}
|
||||
|
||||
protected function isWebRequest(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user