forked from handcraftedinthealps/ElasticsearchBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compatibility to monolog 2 (handcraftedinthealps#11)
- Loading branch information
1 parent
c2cf4b1
commit eea1a34
Showing
6 changed files
with
54 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace ONGR\ElasticsearchBundle\Profiler\Handler; | ||
|
||
if (PHP_VERSION_ID >= 70200) { | ||
/** | ||
* @internal | ||
*/ | ||
trait BackwardCompatibilityWriteTrait | ||
{ | ||
use BackwardCompatibilityWriteTrait72; | ||
} | ||
} else { | ||
/** | ||
* @internal | ||
*/ | ||
trait BackwardCompatibilityWriteTrait | ||
{ | ||
use BackwardCompatibilityWriteTrait71; | ||
} | ||
} |
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,14 @@ | ||
<?php | ||
|
||
namespace ONGR\ElasticsearchBundle\Profiler\Handler; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
trait BackwardCompatibilityWriteTrait71 | ||
{ | ||
protected function write(array $record) | ||
{ | ||
$this->doWrite($record); | ||
} | ||
} |
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,14 @@ | ||
<?php | ||
|
||
namespace ONGR\ElasticsearchBundle\Profiler\Handler; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
trait BackwardCompatibilityWriteTrait72 | ||
{ | ||
protected function write(array $record): void | ||
{ | ||
$this->doWrite($record); | ||
} | ||
} |
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