1 | <?php |
||
11 | class PhingService |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var ServiceOptions |
||
16 | */ |
||
17 | protected $options; |
||
18 | |||
19 | /** |
||
20 | * @var PhingOptions |
||
21 | */ |
||
22 | protected $phingOptions; |
||
23 | |||
24 | /** |
||
25 | * @param ServiceOptions $options |
||
26 | * @param PhingOptions $phingOptions |
||
27 | */ |
||
28 | 7 | public function __construct(ServiceOptions $options, PhingOptions $phingOptions) |
|
33 | |||
34 | /** |
||
35 | * @return ServiceOptions |
||
36 | */ |
||
37 | 1 | public function getOptions() |
|
41 | |||
42 | /** |
||
43 | * @return PhingOptions |
||
44 | */ |
||
45 | 1 | public function getPhingOptions() |
|
49 | |||
50 | /** |
||
51 | * Configure phing and run a build. |
||
52 | * |
||
53 | * @param string $targets space separated list of targets |
||
54 | * @param null|array|Traversable $options override the default phing options |
||
55 | * @param bool $immediate call run on the process instance, set to false if you need to do |
||
56 | * advanced process management |
||
57 | * |
||
58 | * @return Process |
||
59 | */ |
||
60 | 4 | public function build($targets = "", $options = null, $immediate = true) |
|
76 | |||
77 | /** |
||
78 | * Constructs a configured Process instance |
||
79 | * |
||
80 | * @param string $targets space separated list of targets |
||
81 | * @param PhingOptions $options |
||
82 | * |
||
83 | * @return Process |
||
84 | */ |
||
85 | 4 | private function createProcessInstance($targets, PhingOptions $options) |
|
100 | } |
||
101 |