Skip to content

[TwigBridge] Mark all classes extending twig as @final #33269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Symfony/Bridge/Twig/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CHANGELOG
4.4.0
-----

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

Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/AssetExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Twig extension for the Symfony Asset component.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class AssetExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/CodeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Twig extension relate to PHP code and used by the profiler and the default exception templates.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class CodeExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/CsrfExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @final since Symfony 4.4
*/
class CsrfExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/CsrfRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* @author Christian Flothmann <christian.flothmann@sensiolabs.de>
* @author Titouan Galopin <galopintitouan@gmail.com>
*
* @final since Symfony 4.4
*/
class CsrfRuntime
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/DumpExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* Provides integration of the dump() function with Twig.
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @final since Symfony 4.4
*/
class DumpExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/ExpressionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* ExpressionExtension gives a way to create Expressions from a template.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class ExpressionExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @final since Symfony 4.4
*/
class FormExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/HttpFoundationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* Twig extension for the Symfony HttpFoundation component.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class HttpFoundationExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Provides integration with the HttpKernel component.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class HttpKernelExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/HttpKernelRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* Provides integration with the HttpKernel component.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class HttpKernelRuntime
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/LogoutUrlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* LogoutUrlHelper provides generator functions for the logout URL to Twig.
*
* @author Jeremy Mikola <jmikola@gmail.com>
*
* @final since Symfony 4.4
*/
class LogoutUrlExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/ProfilerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class ProfilerExtension extends BaseProfilerExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/RoutingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* Provides integration of the Routing component with Twig.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class RoutingExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/SecurityExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* SecurityExtension exposes security context features.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class SecurityExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/StopwatchExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Twig extension for the stopwatch helper.
*
* @author Wouter J <wouter@wouterj.nl>
*
* @final since Symfony 4.4
*/
class StopwatchExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/WebLinkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* Twig extension for the Symfony WebLink component.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @final since Symfony 4.4
*/
class WebLinkExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/WorkflowExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* WorkflowExtension.
*
* @author Grégoire Pineau <lyrixx@lyrixx.info>
*
* @final since Symfony 4.4
*/
class WorkflowExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Extension/YamlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Provides integration of the Yaml component with Twig.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class YamlExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/DumpNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

/**
* @author Julien Galenski <julien.galenski@gmail.com>
*
* @final since Symfony 4.4
*/
class DumpNode extends Node
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/FormThemeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class FormThemeNode extends Node
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/RenderBlockNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* is "foo", the block "foo" will be rendered.
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @final since Symfony 4.4
*/
class RenderBlockNode extends FunctionExpression
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/SearchAndRenderBlockNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

/**
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @final since Symfony 4.4
*/
class SearchAndRenderBlockNode extends FunctionExpression
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/StopwatchNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Represents a stopwatch node.
*
* @author Wouter J <wouter@wouterj.nl>
*
* @final since Symfony 4.4
*/
class StopwatchNode extends Node
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/TransDefaultDomainNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TransDefaultDomainNode extends Node
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/Node/TransNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class_exists('Twig\Node\Expression\ArrayExpression');

/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TransNode extends Node
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

/**
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* TranslationNodeVisitor extracts translation messages.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TranslationNodeVisitor extends AbstractNodeVisitor
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/TokenParser/DumpTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* {% dump foo, bar %}
*
* @author Julien Galenski <julien.galenski@gmail.com>
*
* @final since Symfony 4.4
*/
class DumpTokenParser extends AbstractTokenParser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* Token Parser for the 'form_theme' tag.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class FormThemeTokenParser extends AbstractTokenParser
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/TokenParser/StopwatchTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* Token Parser for the stopwatch tag.
*
* @author Wouter J <wouter@wouterj.nl>
*
* @final since Symfony 4.4
*/
class StopwatchTokenParser extends AbstractTokenParser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@
use Twig\Node\Node;
use Twig\Node\TextNode;
use Twig\Token;
use Twig\TokenParser\AbstractTokenParser;

/**
* Token Parser for the 'transchoice' tag.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @deprecated since Symfony 4.2, use the "trans" tag with a "%count%" parameter instead
*
* @final since Symfony 4.4
*/
class TransChoiceTokenParser extends TransTokenParser
class TransChoiceTokenParser extends AbstractTokenParser
{
/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* Token Parser for the 'trans_default_domain' tag.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TransDefaultDomainTokenParser extends AbstractTokenParser
{
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Bridge/Twig/TokenParser/TransTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
* Token Parser for the 'trans' tag.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Symfony 4.4
*/
class TransTokenParser extends AbstractTokenParser
{
Expand Down
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