| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function create( |
||
| 36 | string $entry_point_class, |
||
| 37 | string $worker_protocol_class, |
||
| 38 | string $controller_protocol_class |
||
| 39 | ): ContextInterface { |
||
| 40 | $amphp_cotext = create([ |
||
| 41 | self::ENTRY_SCRIPT, |
||
| 42 | $entry_point_class, |
||
| 43 | $worker_protocol_class, |
||
| 44 | $this->di_config_file, |
||
| 45 | ]); |
||
| 46 | |||
| 47 | /** @var ContextInterface<TControllerProtocol> */ |
||
| 48 | return new Context( |
||
| 49 | $amphp_cotext, |
||
| 50 | $controller_protocol_class::createFromChannel($amphp_cotext) |
||
| 51 | ); |
||
| 54 |