1 | <?php |
||
14 | class BuilderHelper |
||
15 | { |
||
16 | /** |
||
17 | * @var ImageManager |
||
18 | */ |
||
19 | protected $imageManager; |
||
20 | |||
21 | /** |
||
22 | * @var StreamFactory |
||
23 | */ |
||
24 | protected $streamFactory; |
||
25 | |||
26 | public function __construct(ImageManager $imageManager, StreamFactory $streamFactory) |
||
31 | |||
32 | /** |
||
33 | * Build an image |
||
34 | * |
||
35 | * @param ContextInterface $context |
||
36 | * @param string $name |
||
37 | * @param array $parameters |
||
38 | * |
||
39 | * @return BuildStream Return a stream which can be waited and listened to have build |
||
40 | * |
||
41 | * @throws DockerException |
||
42 | */ |
||
43 | public function build(ContextInterface $context, $name, $parameters = []) |
||
57 | } |
||
58 |