-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Templating] deprecate the component #51144
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
CHANGELOG | ||
========= | ||
|
||
6.4 | ||
--- | ||
|
||
* Deprecate the component, use Twig instead | ||
|
||
2.5.0 | ||
----- | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', DelegatingEngine::class); | ||
|
||
/** | ||
* DelegatingEngine selects an engine for a given template. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class DelegatingEngine implements EngineInterface, StreamingEngineInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', EngineInterface::class); | ||
kbond marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** | ||
* EngineInterface is the interface each engine must implement. | ||
* | ||
|
@@ -27,6 +29,8 @@ | |
* the template. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface EngineInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,17 @@ | |
|
||
namespace Symfony\Component\Templating\Helper; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', Helper::class); | ||
|
||
/** | ||
* Helper is the base class for all helper classes. | ||
* | ||
* Most of the time, a Helper is an adapter around an existing | ||
* class that exposes a read-only interface for templates. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
abstract class Helper implements HelperInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating\Helper; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', HelperInterface::class); | ||
|
||
/** | ||
* HelperInterface is the interface all helpers must implement. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface HelperInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating\Helper; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', SlotsHelper::class); | ||
|
||
/** | ||
* SlotsHelper manages template slots. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class SlotsHelper extends Helper | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
use Symfony\Component\Templating\Storage\Storage; | ||
use Symfony\Component\Templating\TemplateReferenceInterface; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', CacheLoader::class); | ||
|
||
/** | ||
* CacheLoader is a loader that caches other loaders responses | ||
* on the filesystem. | ||
|
@@ -23,6 +25,8 @@ | |
* All other mechanism would imply the use of `eval()`. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class CacheLoader extends Loader | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,14 @@ | |
use Symfony\Component\Templating\Storage\Storage; | ||
use Symfony\Component\Templating\TemplateReferenceInterface; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', ChainLoader::class); | ||
|
||
/** | ||
* ChainLoader is a loader that calls other loaders to load templates. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class ChainLoader extends Loader | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,14 @@ | |
use Symfony\Component\Templating\Storage\Storage; | ||
use Symfony\Component\Templating\TemplateReferenceInterface; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', FilesystemLoader::class); | ||
|
||
/** | ||
* FilesystemLoader is a loader that read templates from the filesystem. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class FilesystemLoader extends Loader | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,14 @@ | |
|
||
use Psr\Log\LoggerInterface; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', Loader::class); | ||
|
||
/** | ||
* Loader is the base class for all template loader classes. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
abstract class Loader implements LoaderInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,14 @@ | |
use Symfony\Component\Templating\Storage\Storage; | ||
use Symfony\Component\Templating\TemplateReferenceInterface; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', LoaderInterface::class); | ||
|
||
/** | ||
* LoaderInterface is the interface all loaders must implement. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface LoaderInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,16 @@ | |
use Symfony\Component\Templating\Storage\Storage; | ||
use Symfony\Component\Templating\Storage\StringStorage; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', PhpEngine::class); | ||
|
||
/** | ||
* PhpEngine is an engine able to render PHP templates. | ||
* | ||
* @implements \ArrayAccess<string, HelperInterface> | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class PhpEngine implements EngineInterface, \ArrayAccess | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating\Storage; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', FileStorage::class); | ||
|
||
/** | ||
* FileStorage represents a template stored on the filesystem. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class FileStorage extends Storage | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating\Storage; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', Storage::class); | ||
|
||
/** | ||
* Storage is the base class for all storage classes. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
abstract class Storage | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating\Storage; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', StringStorage::class); | ||
|
||
/** | ||
* StringStorage represents a template stored in a string. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class StringStorage extends Storage | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', StreamingEngineInterface::class); | ||
|
||
/** | ||
* StreamingEngineInterface provides a method that knows how to stream a template. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface StreamingEngineInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,17 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', TemplateNameParser::class); | ||
|
||
/** | ||
* TemplateNameParser is the default implementation of TemplateNameParserInterface. | ||
* | ||
* This implementation takes everything as the template name | ||
* and the extension for the engine. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class TemplateNameParser implements TemplateNameParserInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,15 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', TemplateNameParserInterface::class); | ||
|
||
/** | ||
* TemplateNameParserInterface converts template names to TemplateReferenceInterface | ||
* instances. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface TemplateNameParserInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', TemplateReference::class); | ||
|
||
/** | ||
* Internal representation of a template. | ||
* | ||
* @author Victor Berchet <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
class TemplateReference implements TemplateReferenceInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,14 @@ | |
|
||
namespace Symfony\Component\Templating; | ||
|
||
trigger_deprecation('symfony/templating', '6.4', '"%s" is deprecated since version 6.4 and will be removed in 7.0. Use Twig instead.', TemplateReferenceInterface::class); | ||
|
||
/** | ||
* Interface to be implemented by all templates. | ||
* | ||
* @author Victor Berchet <[email protected]> | ||
* | ||
* @deprecated since Symfony 6.4, use Twig instead | ||
*/ | ||
interface TemplateReferenceInterface | ||
{ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.