Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
OlzCommandsParams | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
OlzCommands | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getHtml | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Apps\Commands\Components\OlzCommands; |
4 | |
5 | use Olz\Apps\Commands\Metadata; |
6 | use Olz\Components\Common\OlzComponent; |
7 | use Olz\Components\Page\OlzFooter\OlzFooter; |
8 | use Olz\Components\Page\OlzHeader\OlzHeader; |
9 | use Olz\Utils\HttpParams; |
10 | |
11 | /** @extends HttpParams<array{}> */ |
12 | class OlzCommandsParams extends HttpParams { |
13 | } |
14 | |
15 | /** @extends OlzComponent<array<string, mixed>> */ |
16 | class OlzCommands extends OlzComponent { |
17 | public function getHtml(mixed $args): string { |
18 | $this->httpUtils()->validateGetParams(OlzCommandsParams::class); |
19 | $code_href = $this->envUtils()->getCodeHref(); |
20 | |
21 | $out = OlzHeader::render([ |
22 | 'back_link' => "{$code_href}service/", |
23 | 'title' => 'Commands', |
24 | 'description' => "Symfony-Commands (Befehle) ausführen.", |
25 | ]); |
26 | |
27 | $out .= "<div class='content-full'><div id='react-root'>Lädt...</div></div>"; |
28 | |
29 | $metadata = new Metadata(); |
30 | $out .= $metadata->getJsCssImports(); |
31 | |
32 | $out .= OlzFooter::render(); |
33 | |
34 | return $out; |
35 | } |
36 | } |