1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,27 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+declare(strict_types=1); |
|
4 |
+ |
|
5 |
+/* |
|
6 |
+ * This file is part of formilicious bundle for Contao. |
|
7 |
+ * |
|
8 |
+ * (c) Benjamin Roth |
|
9 |
+ * |
|
10 |
+ * @license LGPL-3.0-or-later |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+namespace vonRotenberg\FormiliciousBundle\EventListener; |
|
14 |
+ |
|
15 |
+use Contao\CoreBundle\DependencyInjection\Attribute\AsHook; |
|
16 |
+use Contao\LayoutModel; |
|
17 |
+use Contao\PageModel; |
|
18 |
+use Contao\PageRegular; |
|
19 |
+ |
|
20 |
+#[AsHook('generatePage')] |
|
21 |
+class GeneratePageListener |
|
22 |
+{ |
|
23 |
+ public function __invoke(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular): void |
|
24 |
+ { |
|
25 |
+ $GLOBALS['TL_CSS']['vr_formilicious'] = 'bundles/vonrotenbergformilicious/css/form.css|static'; |
|
26 |
+ } |
|
27 |
+} |