Skip to content

Commit

Permalink
[10.x] Adding Pipeline Facade (#46271)
Browse files Browse the repository at this point in the history
* feat: added in pipeline facade, added singleton binding

* Changed singleton to simple bind

* chore: disabled caching of instance on pipeline facade, added in docblocks

* formatting

* Update facade docblocks

---------

Co-authored-by: jaetooledev <jaetooledev@gmail.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
Co-authored-by: taylorotwell <taylorotwell@users.noreply.github.com>
  • Loading branch information
4 people committed Mar 3, 2023
1 parent 549fc7f commit f2119ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PipelineServiceProvider.php
Expand Up @@ -16,8 +16,11 @@ class PipelineServiceProvider extends ServiceProvider implements DeferrableProvi
public function register()
{
$this->app->singleton(
PipelineHubContract::class, Hub::class
PipelineHubContract::class,
Hub::class
);

$this->app->bind('pipeline', fn ($app) => new Pipeline($app));
}

/**
Expand All @@ -29,6 +32,7 @@ public function provides()
{
return [
PipelineHubContract::class,
'pipeline',
];
}
}

0 comments on commit f2119ae

Please sign in to comment.