• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CPS-IT / handlebars / 25308309612

04 May 2026 08:12AM UTC coverage: 89.748% (-0.3%) from 90.088%
25308309612

push

github

web-flow
Merge pull request #567 from CPS-IT/feature/compile-event

[FEATURE] Provide and dispatch `BeforeTemplateCompilationEvent`

5 of 11 new or added lines in 2 files covered. (45.45%)

1427 of 1590 relevant lines covered (89.75%)

7.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Classes/Event/BeforeTemplateCompilationEvent.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "handlebars".
7
 *
8
 * It is free software; you can redistribute it and/or modify it under
9
 * the terms of the GNU General Public License, either version 2
10
 * of the License, or any later version.
11
 *
12
 * For the full copyright and license information, please read the
13
 * LICENSE.txt file that was distributed with this source code.
14
 *
15
 * The TYPO3 project - inspiring people to share!
16
 */
17

18
namespace CPSIT\Typo3Handlebars\Event;
19

20
use CPSIT\Typo3Handlebars\Renderer;
21

22
/**
23
 * BeforeTemplateCompilationEvent
24
 *
25
 * @author Elias Häußler <e.haeussler@familie-redlich.de>
26
 * @license GPL-2.0-or-later
27
 */
28
final readonly class BeforeTemplateCompilationEvent
29
{
NEW
30
    public function __construct(
×
31
        private Renderer\RenderingContext $context,
32
        private Renderer\Renderer $renderer,
NEW
33
    ) {}
×
34

NEW
35
    public function getContext(): Renderer\RenderingContext
×
36
    {
NEW
37
        return $this->context;
×
38
    }
39

NEW
40
    public function getRenderer(): Renderer\Renderer
×
41
    {
NEW
42
        return $this->renderer;
×
43
    }
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc