<?php declare(strict_types=1); /* * This file is part of formilicious bundle for Contao. * * (c) Benjamin Roth * * @license LGPL-3.0-or-later */ namespace vonRotenberg\FormiliciousBundle\EventListener; use Contao\CoreBundle\DependencyInjection\Attribute\AsHook; use Contao\LayoutModel; use Contao\PageModel; use Contao\PageRegular; #[AsHook('generatePage')] class GeneratePageListener { public function __invoke(PageModel $pageModel, LayoutModel $layout, PageRegular $pageRegular): void { $GLOBALS['TL_CSS']['vr_formilicious'] = 'bundles/vonrotenbergformilicious/css/form.css|static'; } }