Skip to content

Commit

Permalink
Use annotation for parseTemplate Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Aug 1, 2024
1 parent b4a744e commit c3990e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventListener/Template/ParseTemplateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace ContaoThemeManager\Core\EventListener\Template;

use Contao\CoreBundle\ServiceAnnotation\Hook;
use Contao\CoreBundle\DependencyInjection\Attribute\AsHook;
use Contao\StringUtil;
use Contao\Template;

/**
* @deprecated as of ThemeManager 2.1, to be removed in ThemeManager 2.2
* @Hook("parseTemplate")
*/
#[AsHook('parseTemplate')]
class ParseTemplateListener
{
public function __invoke(Template $template): void
Expand Down

0 comments on commit c3990e1

Please sign in to comment.