From a22b94f65732536fc8ec35c72a7c76d0948fed5f Mon Sep 17 00:00:00 2001 From: ivan-serevko Date: Thu, 25 Apr 2024 10:38:42 +0300 Subject: [PATCH] support Monolog 3.0 --- .gitignore | 4 +++- composer.json | 2 +- examples/laml/generate-laml.php | 8 -------- src/Log.php | 4 +++- tests/laml/LaMLTest.php | 7 ------- 5 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 examples/laml/generate-laml.php diff --git a/.gitignore b/.gitignore index 6c593c8..2f3c357 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ Thumbs.db vendor # ENV file -.env \ No newline at end of file +.env + +.idea \ No newline at end of file diff --git a/composer.json b/composer.json index a94d3fd..630210d 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "php": ">=8.0", "twilio/sdk": "6.33.0", "ratchet/pawl": "^0.4.1", - "monolog/monolog": "^1.24 || ^2.0", + "monolog/monolog": "^1.24 || ^2.0 || ^3.0", "ramsey/uuid": "^3.8 || ^4.0", "recoil/react": "1.0.3", "guzzlehttp/guzzle": ">=6.0" diff --git a/examples/laml/generate-laml.php b/examples/laml/generate-laml.php deleted file mode 100644 index 87461b2..0000000 --- a/examples/laml/generate-laml.php +++ /dev/null @@ -1,8 +0,0 @@ -say("Welcome to SignalWire!"); -$response->play("https://cdn.signalwire.com/default-music/welcome.mp3", array("loop" => 5)); - -echo $response; diff --git a/src/Log.php b/src/Log.php index 2d02103..0dd21a1 100644 --- a/src/Log.php +++ b/src/Log.php @@ -1,5 +1,7 @@ setFormatter($formatter); diff --git a/tests/laml/LaMLTest.php b/tests/laml/LaMLTest.php index 8119e0d..35e2251 100644 --- a/tests/laml/LaMLTest.php +++ b/tests/laml/LaMLTest.php @@ -4,13 +4,6 @@ class LaMLTest extends TestCase { - public function testGeneratedLaMLMatch(): void { - $response = new SignalWire\LaML(); - $response->say("Hey!"); - $response->play("https://ccrma.stanford.edu/~jos/mp3/gtr-nylon22.mp3", array("loop" => 5)); - $this->assertEquals($response->__toString(), "\nHey!https://ccrma.stanford.edu/~jos/mp3/gtr-nylon22.mp3\n"); - } - public function testFaxResponseLaMLMatch(): void { $response = new SignalWire\LaML\FaxResponse(); $response->receive([