Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit451daa0

Browse files
committed
feature#33269 [TwigBridge] Mark all classes extending twig as@Final (fabpot)
This PR was merged into the 4.4 branch.Discussion----------[TwigBridge] Mark all classes extending twig as@Final| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes-ish| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets | refs#33039| License | MIT| Doc PR | n/aClasses defining extensions/nodes/node visitors/token parsers should not be changed. They should be final.That would also help with Twig 3.0 which introduces type hints (including return types).Commits-------d657459 [TwigBridge] Mark all classes extending twig as@Final
2 parentsb36961c +d657459 commit451daa0

File tree

34 files changed

+69
-1
lines changed

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 AssetExtensionextends 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 CodeExtensionextends 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 CsrfExtensionextends 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 DumpExtensionextends 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 ExpressionExtensionextends 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 FormExtensionextends 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 HttpFoundationExtensionextends 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 HttpKernelExtensionextends AbstractExtension
2426
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp