| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,23 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+declare(strict_types=1); |
|
| 4 |
+ |
|
| 5 |
+namespace luumicore\CoreBundle\Controller\Page; |
|
| 6 |
+ |
|
| 7 |
+use Contao\CoreBundle\Controller\Page\AbstractLayoutPageController; |
|
| 8 |
+use Contao\CoreBundle\DependencyInjection\Attribute\AsPage; |
|
| 9 |
+use Contao\CoreBundle\Twig\LayoutTemplate; |
|
| 10 |
+use Contao\LayoutModel; |
|
| 11 |
+use Symfony\Component\HttpFoundation\Request; |
|
| 12 |
+use Symfony\Component\HttpFoundation\Response; |
|
| 13 |
+ |
|
| 14 |
+#[AsPage(type: 'luumicore_dashboard')] |
|
| 15 |
+class DashboardPageController extends AbstractLayoutPageController |
|
| 16 |
+{
|
|
| 17 |
+ protected function getResponse(LayoutTemplate $template, LayoutModel $model, Request $request): Response |
|
| 18 |
+ {
|
|
| 19 |
+ $this->initializeContaoFramework(); |
|
| 20 |
+ dump($this->container); |
|
| 21 |
+ return $template->getResponse(); |
|
| 22 |
+ } |
|
| 23 |
+} |