8000 [TwigBridge] Mark all classes extending twig as @final · symfony/symfony@d657459 · GitHub
[go: up one dir, main page]

Skip to content

Commit d657459

Browse files
committed
[TwigBridge] Mark all classes extending twig as @Final
1 parent 5a753b1 commit d657459

34 files changed

+69
-1
lines changed

src/Symfony/Bridge/Twig/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
4.4.0
55
-----
66

7+
* marked all classes extending twig as `@final`
78
* deprecated to pass `$rootDir` and `$fileLinkFormatter` as 5th and 6th argument respectively to the
89
`DebugCommand::__construct()` method, swap the variables position.
910

src/Symfony/Bridge/Twig/Extension/AssetExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Twig extension for the Symfony Asset component.
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class AssetExtension extends AbstractExtension
2426
{

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Twig extension relate to PHP code and used by the profiler and the default exception templates.
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class CodeExtension extends AbstractExtension
2426
{

src/Symfony/Bridge/Twig/Extension/CsrfExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
1919
* @author Titouan Galopin <galopintitouan@gmail.com>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class CsrfExtension extends AbstractExtension
2224
{

src/Symfony/Bridge/Twig/Extension/CsrfRuntime.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
/**
1717
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
1818
* @author Titouan Galopin <galopintitouan@gmail.com>
19+
*
20+
* @final since Symfony 4.4
1921
*/
2022
class CsrfRuntime
2123
{

src/Symfony/Bridge/Twig/Extension/DumpExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* Provides integration of the dump() function with Twig.
2525
*
2626
* @author Nicolas Grekas <p@tchwork.com>
27+
*
28+
* @final since Symfony 4.4
2729
*/
2830
class DumpExtension extends AbstractExtension
2931
{

src/Symfony/Bridge/Twig/Extension/ExpressionExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* ExpressionExtension gives a way to create Expressions from a template.
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class ExpressionExtension extends AbstractExtension
2426
{

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
*
2626
* @author Fabien Potencier <fabien@symfony.com>
2727
* @author Bernhard Schussek <bschussek@gmail.com>
28+
*
29+
* @final since Symfony 4.4
2830
*/
2931
class FormExtension extends AbstractExtension
3032
{

src/Symfony/Bridge/Twig/Extension/HttpFoundationExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Twig extension for the Symfony HttpFoundation component.
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
25+
*
26+
* @final since Symfony 4.4
2527
*/
2628
class HttpFoundationExtension extends AbstractExtension
2729
{

src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Provides integration with the HttpKernel component.
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class HttpKernelExtension extends AbstractExtension
2426
{

src/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Provides integration with the HttpKernel component.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
21+
*
22+
* @final since Symfony 4.4
2123
*/
2224
class HttpKernelRuntime
2325
{

src/Symfony/Bridge/Twig/Extension/LogoutUrlExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* LogoutUrlHelper provides generator functions for the logout URL to Twig.
2020
*
2121
* @author Jeremy Mikola <jmikola@gmail.com>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class LogoutUrlExtension extends AbstractExtension
2426
{

src/Symfony/Bridge/Twig/Extension/ProfilerExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class ProfilerExtension extends BaseProfilerExtension
2224
{

src/Symfony/Bridge/Twig/Extension/RoutingExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Provides integration of the Routing component with Twig.
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
25+
*
26+
* @final since Symfony 4.4
2527
*/
2628
class RoutingExtension extends AbstractExtension
2729
{

src/Symfony/Bridge/Twig/Extension/SecurityExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* SecurityExtension exposes security context features.
2222
*
2323
* @author Fabien Potencier <fabien@symfony.com>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class SecurityExtension extends AbstractExtension
2628
{

src/Symfony/Bridge/Twig/Ex F440 tension/StopwatchExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Twig extension for the stopwatch helper.
2121
*
2222
* @author Wouter J <wouter@wouterj.nl>
23+
*
24+
* @final since Symfony 4.4
2325
*/
2426
class StopwatchExtension extends AbstractExtension
2527
{

src/Symfony/Bridge/Twig/Extension/WebLinkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* Twig extension for the Symfony WebLink component.
2222
*
2323
* @author Kévin Dunglas <dunglas@gmail.com>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class WebLinkExtension extends AbstractExtension
2628
{

src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* WorkflowExtension.
2222
*
2323
* @author Grégoire Pineau <lyrixx@lyrixx.info>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class WorkflowExtension extends AbstractExtension
2628
{

src/Symfony/Bridge/Twig/Extension/YamlExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Provides integration of the Yaml component with Twig.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @final since Symfony 4.4
2325
*/
2426
class YamlExtension extends AbstractExtension
2527
{

src/Symfony/Bridge/Twig/Node/DumpNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
/**
1818
* @author Julien Galenski <julien.galenski@gmail.com>
19+
*
20+
* @final since Symfony 4.4
1921
*/
2022
class DumpNode extends Node
2123
{

src/Symfony/Bridge/Twig/Node/FormThemeNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class FormThemeNode extends Node
2224
{

src/Symfony/Bridge/Twig/Node/RenderBlockNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* is "foo", the block "foo" will be rendered.
2222
*
2323
* @author Bernhard Schussek <bschussek@gmail.com>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class RenderBlockNode extends FunctionExpression
2628
{

src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* @author Bernhard Schussek <bschussek@gmail.com>
21+
*
22+
* @final since Symfony 4.4
2123
*/
2224
class SearchAndRenderBlockNode extends FunctionExpression
2325
{

src/Symfony/Bridge/Twig/Node/StopwatchNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Represents a stopwatch node.
2020
*
2121
* @author Wouter J <wouter@wouterj.nl>
22+
*
23+
* @final since Symfony 4.4
2224
*/
2325
class StopwatchNode extends Node
2426
{

src/Symfony/Bridge/Twig/Node/TransDefaultDomainNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @final since Symfony 4.4
2022
*/
2123
class TransDefaultDomainNode extends Node
2224
{

src/Symfony/Bridge/Twig/Node/TransNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class_exists('Twig\Node\Expression\ArrayExpression');
2424

2525
/**
2626
* @author Fabien Potencier <fabien@symfony.com>
27+
*
28+
* @final since Symfony 4.4
2729
*/
2830
class TransNode extends Node
2931
{

src/Symfony/Bridge/Twig/NodeVisitor/TranslationDefaultDomainNodeVisitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
/**
2929
* @author Fabien Potencier <fabien@symfony.com>
30+
*
31+
* @final since Symfony 4.4
3032
*/
3133
class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor
3234
{

src/Symfony/Bridge/Twig/NodeVisitor/TranslationNodeVisitor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* TranslationNodeVisitor extracts translation messages.
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
25+
*
26+
* @final since Symfony 4.4
2527
*/
2628
class TranslationNodeVisitor extends AbstractNodeVisitor
2729
{

src/Symfony/Bridge/Twig/TokenParser/DumpTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
* {% dump foo, bar %}
2727
*
2828
* @author Julien Galenski <julien.galenski@gmail.com>
29+
*
30+
* @final since Symfony 4.4
2931
*/
3032
class DumpTokenParser extends AbstractTokenParser
3133
{

src/Symfony/Bridge/Twig/TokenParser/FormThemeTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* Token Parser for the 'form_theme' tag.
2222
*
2323
* @author Fabien Potencier <fabien@symfony.com>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class FormThemeTokenParser extends AbstractTokenParser
2628
{

src/Symfony/Bridge/Twig/TokenParser/StopwatchTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* Token Parser for the stopwatch tag.
2222
*
2323
* @author Wouter J <wouter@wouterj.nl>
24+
*
25+
* @final since Symfony 4.4
2426
*/
2527
class StopwatchTokenParser extends AbstractTokenParser
2628
{

src/Symfony/Bridge/Twig/TokenParser/TransChoiceTokenParser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,18 @@
1818
use Twig\Node\Node;
1919
use Twig\Node\TextNode;
2020
use Twig\Token;
21+
use Twig\TokenParser\AbstractTokenParser;
2122

2223
/**
2324
* Token Parser for the 'transchoice' tag.
2425
*
2526
* @author Fabien Potencier <fabien@symfony.com>
2627
*
2728
* @deprecated since Symfony 4.2, use the "trans" tag with a "%count%" parameter instead
29+
*
30+
* @final since Symfony 4.4
2831
*/
29-
class TransChoiceTokenParser extends TransTokenParser
32+
class TransChoiceTokenParser extends AbstractTokenParser
3033
{
3134
/**
3235
* {@inheritdoc}

src/Symfony/Bridge/Twig/TokenParser/TransDefaultDomainTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* Token Parser for the 'trans_default_domain' tag.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @final since Symfony 4.4
2325
*/
2426
class TransDefaultDomainTokenParser extends AbstractTokenParser
2527
{

src/Symfony/Bridge/Twig/TokenParser/TransTokenParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* Token Parser for the 'trans' tag.
2525
*
2626
* @author Fabien Potencier <fabien@symfony.com>
27+
*
28+
* @final since Symfony 4.4
2729
*/
2830
class TransTokenParser extends AbstractTokenParser
2931
{

0 commit comments

Comments
 (0)
0