Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function create($mode, $action) |
||
36 | { |
||
37 | $service_name = 'blitze.content.actions.' . $mode . '.' . $action; |
||
38 | if (!$this->phpbb_container->has($service_name)) |
||
39 | { |
||
40 | throw new \blitze\sitemaker\exception\out_of_bounds(array($action, 'INVALID_REQUEST')); |
||
41 | } |
||
42 | |||
43 | $service = $this->phpbb_container->get($service_name); |
||
44 | |||
45 | /** @var \blitze\content\services\actions\action_interface $service */ |
||
46 | return $service; |
||
47 | } |
||
49 |