| Conditions | 1 |
| Paths | 1 |
| Total Lines | 39 |
| Code Lines | 31 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 31 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | function bootstrap(OperatingSystem $os): Commands |
||
| 17 | { |
||
| 18 | 2 | $protocol = new Protocol\Json; |
|
| 19 | 2 | $watch = watch($os); |
|
| 20 | 2 | $ipc = ipc($os); |
|
| 21 | 2 | $monitor = new Name('lab-station-'.$os->process()->id()); |
|
| 22 | |||
| 23 | 2 | return new Commands( |
|
| 24 | 2 | new Command\Work( |
|
| 25 | 2 | new Monitor( |
|
| 26 | 2 | $protocol, |
|
| 27 | 2 | new Parallel( |
|
| 28 | 2 | new SubProcess($os->process()) |
|
| 29 | ), |
||
| 30 | 1 | $ipc, |
|
| 31 | 1 | $monitor, |
|
| 32 | 2 | new Trigger\All( |
|
| 33 | 2 | new Trigger\Graphs( |
|
| 34 | 2 | $os->filesystem(), |
|
| 35 | 2 | $os->control()->processes(), |
|
| 36 | 2 | $os->status()->tmp() |
|
| 37 | ), |
||
| 38 | 2 | new Trigger\Profiler( |
|
| 39 | 2 | $os->filesystem(), |
|
| 40 | 2 | $os->control()->processes() |
|
| 41 | ), |
||
| 42 | 2 | new Trigger\Tests($os->control()->processes()) |
|
| 43 | ), |
||
| 44 | 2 | new Agent\WatchSources( |
|
| 45 | 2 | $protocol, |
|
| 46 | 1 | $watch, |
|
| 47 | 1 | $ipc, |
|
| 48 | 1 | $monitor |
|
| 49 | ), |
||
| 50 | 2 | new Agent\WatchTests( |
|
| 51 | 2 | $protocol, |
|
| 52 | 1 | $watch, |
|
| 53 | 1 | $ipc, |
|
| 54 | 1 | $monitor |
|
| 55 | ) |
||
| 60 |