1 | <?php |
||
24 | class IndexAction extends AbstractMiddlewareAction |
||
25 | { |
||
26 | /** @var ConfigurationInterface */ |
||
27 | private $configuration; |
||
28 | /** @var EnvironmentInterface */ |
||
29 | private $environment; |
||
30 | /** @var array */ |
||
31 | private $defaultData = [ |
||
32 | 'name' => null, |
||
33 | 'title' => null, |
||
34 | 'description' => '', |
||
35 | 'version' => '', |
||
36 | 'author' => 'Unknown', |
||
37 | 'homepage' => '', |
||
38 | 'license' => '', |
||
39 | 'read_only' => false, |
||
40 | 'feature_website' => false, |
||
41 | 'feature_login' => false, |
||
42 | 'feature_admin' => false, |
||
43 | 'logo' => '', |
||
44 | 'preview' => '', |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * IndexAction constructor. |
||
49 | * |
||
50 | * @param ConfigurationInterface $configuration |
||
51 | * @param EnvironmentInterface $environment |
||
52 | */ |
||
53 | public function __construct(ConfigurationInterface $configuration, EnvironmentInterface $environment) |
||
58 | |||
59 | /** |
||
60 | * Gets template map name or template file path. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getTemplateName() : string |
||
68 | |||
69 | /** |
||
70 | * Gets template data. |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getTemplateData() : array |
||
113 | } |
||
114 |