From 5565d2a50f8bbddeb5905eadc7ead3805a1d82ea Mon Sep 17 00:00:00 2001 From: Sudhir Mitharwal <6812992+sudkumar@users.noreply.github.com> Date: Wed, 7 Apr 2021 08:47:16 +0530 Subject: [PATCH] feat(octane): add laravel/octane compatibility (#10) --- .gitignore | 1 + phpunit.xml | 23 ++++++++++++----------- src/Msg91LaravelServiceProvider.php | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 4061ca0..a1b7df9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ vendor logs .php_cs.cache .phpunit.result.cache +.DS_Store diff --git a/phpunit.xml b/phpunit.xml index b92a5b3..c426ca3 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,12 +1,13 @@ - - - - ./tests/ - - - - - ./src/ - - + + + + + ./src/ + + + + + ./tests/ + + diff --git a/src/Msg91LaravelServiceProvider.php b/src/Msg91LaravelServiceProvider.php index 3ea83dd..a10eeab 100644 --- a/src/Msg91LaravelServiceProvider.php +++ b/src/Msg91LaravelServiceProvider.php @@ -15,7 +15,7 @@ class Msg91LaravelServiceProvider extends ServiceProvider public function register() { // Bind Msg91 Client in Service Container. - $this->app->singleton(Client::class, function ($app) { + $this->app->bind(Client::class, function ($app) { $config = $app['config']; return new Client($config->get('services.msg91')); });