Skip to content

Commit e6199a4

Browse files
feature(add new Pipeline::setContainer method) (#34343)
1 parent 0920c23 commit e6199a4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Illuminate/Pipeline/Pipeline.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,19 @@ protected function getContainer()
218218
return $this->container;
219219
}
220220

221+
/**
222+
* Set the container instance.
223+
*
224+
* @param \Illuminate\Contracts\Container\Container $container
225+
* @return $this
226+
*/
227+
public function setContainer(Container $container)
228+
{
229+
$this->container = $container;
230+
231+
return $this;
232+
}
233+
221234
/**
222235
* Handle the value returned from each pipe before passing it to the next.
223236
*

0 commit comments

Comments
 (0)