1 | <?php |
||
12 | class DockerComposeProjectManager implements ProjectManager, ProjectBuildManager |
||
13 | { |
||
14 | /** |
||
15 | * @var InteractiveProcessBuilder |
||
16 | */ |
||
17 | private $interactiveProcessBuilder; |
||
18 | |||
19 | /** |
||
20 | * @var UserInteraction |
||
21 | */ |
||
22 | private $userInteraction; |
||
23 | |||
24 | /** |
||
25 | * @var ProcessRunner |
||
26 | */ |
||
27 | private $processRunner; |
||
28 | |||
29 | /** |
||
30 | * @var ComposeExecutableFinder |
||
31 | */ |
||
32 | private $composeExecutableFinder; |
||
33 | |||
34 | /** |
||
35 | * @param InteractiveProcessBuilder $interactiveProcessBuilder |
||
36 | * @param UserInteraction $userInteraction |
||
37 | * @param ProcessRunner $processRunner |
||
38 | * @param ComposeExecutableFinder $composeExecutableFinder |
||
39 | */ |
||
40 | public function __construct(InteractiveProcessBuilder $interactiveProcessBuilder, UserInteraction $userInteraction, ProcessRunner $processRunner, ComposeExecutableFinder $composeExecutableFinder) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function start(Project $project) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function stop(Project $project) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function reset(Project $project, array $containers = []) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function build(Project $project, array $containers = []) |
||
110 | } |
||
111 |