Skip to content

Commit 2bb1e91

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

34 files changed

+67
-0
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
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy