File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 5
5
use Ivan770 \HttpClient \Exceptions \PipelineNotAvailable ;
6
6
use Symfony \Component \HttpClient \Exception \JsonException ;
7
7
use Illuminate \Container \Container ;
8
+ use Illuminate \Contracts \Pipeline \Pipeline as PipelineContract ;
8
9
use Illuminate \Pipeline \Pipeline ;
9
10
10
11
/**
@@ -28,7 +29,6 @@ public function __construct($baseResponse)
28
29
29
30
protected function pipelineAvailable ()
30
31
{
31
- //TODO: Remove pipeline vendor lock.
32
32
if (class_exists (Pipeline::class)) {
33
33
return true ;
34
34
}
@@ -45,7 +45,10 @@ protected function getContainer()
45
45
46
46
protected function getPipeline ()
47
47
{
48
- if ($ this ->pipelineAvailable () && is_null ($ this ->pipeline )) {
48
+ if ($ this ->getContainer ()->bound (PipelineContract::class)) {
49
+ $ this ->pipeline = $ this ->getContainer ()->make (PipelineContract::class);
50
+ }
51
+ if (is_null ($ this ->pipeline ) && $ this ->pipelineAvailable ()) {
49
52
$ this ->pipeline = new Pipeline ($ this ->getContainer ());
50
53
}
51
54
return $ this ->pipeline ;
You can’t perform that action at this time.
0 commit comments