Skip to content

Commit

Permalink
feat(octane): add laravel/octane compatibility (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudkumar authored Apr 7, 2021
1 parent e630c44 commit 5565d2a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ vendor
logs
.php_cs.cache
.phpunit.result.cache
.DS_Store
23 changes: 12 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<phpunit colors="true" bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="unit">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">./src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="unit">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion src/Msg91LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
Expand Down

0 comments on commit 5565d2a

Please sign in to comment.