Skip to content

Commit

Permalink
Don't use singleton.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jun 11, 2020
1 parent 00af515 commit c2577cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/StreamServiceProvider.php
Expand Up @@ -19,7 +19,7 @@ class StreamServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton(LoopInterface::class, static function () {
$this->app->bind(LoopInterface::class, static function () {
return Factory::create();
});

Expand Down

0 comments on commit c2577cd

Please sign in to comment.