File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,11 @@ class PipelineServiceProvider extends ServiceProvider implements DeferrableProvi
16
16
public function register ()
17
17
{
18
18
$ this ->app ->singleton (
19
- PipelineHubContract::class, Hub::class
19
+ PipelineHubContract::class,
20
+ Hub::class
20
21
);
22
+
23
+ $ this ->app ->bind ('pipeline ' , fn ($ app ) => new Pipeline ($ app ));
21
24
}
22
25
23
26
/**
@@ -29,6 +32,7 @@ public function provides()
29
32
{
30
33
return [
31
34
PipelineHubContract::class,
35
+ 'pipeline ' ,
32
36
];
33
37
}
34
38
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Illuminate \Support \Facades ;
4
+
5
+ class Pipeline extends Facade
6
+ {
7
+ /**
8
+ * Indicates if the resolved instance should be cached.
9
+ *
10
+ * @var bool
11
+ */
12
+ protected static $ cached = false ;
13
+
14
+ /**
15
+ * Get the registered name of the component.
16
+ *
17
+ * @return string
18
+ */
19
+ protected static function getFacadeAccessor ()
20
+ {
21
+ return 'pipeline ' ;
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments