Skip to content

Commit 2a07431

Browse files
kbondfabpot
authored andcommitted
[Templating] deprecate the component
1 parent 510e51f commit 2a07431

34 files changed

+123
-0
lines changed

UPGRADE-6.4.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ Serializer
8080
* Deprecate Doctrine annotations support in favor of native attributes
8181
* Deprecate passing an annotation reader to the constructor of `AnnotationLoader`
8282

83+
Templating
84+
----------
85+
86+
* The component is deprecated and will be removed in 7.0. Use Twig instead.
87+
8388
Validator
8489
---------
8590

src/Symfony/Component/Templating/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.4
5+
---
6+
7+
* Deprecate the component, use Twig instead
8+
49
2.5.0
510
-----
611

src/Symfony/Component/Templating/DelegatingEngine.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
namespace Symfony\Component\Templating;
1313

14+
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);
15+
1416
/**
1517
* DelegatingEngine selects an engine for a given template.
1618
*
1719
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.4, use Twig instead
1822
*/
1923
class DelegatingEngine implements EngineInterface, StreamingEngineInterface
2024
{

src/Symfony/Component/Templating/EngineInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Templating;
1313

14+
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);
15+
1416
/**
1517
* EngineInterface is the interface each engine must implement.
1618
*
@@ -27,6 +29,8 @@
2729
* the template.
2830
*
2931
* @author Fabien Potencier <fabien@symfony.com>
32+
*
33+
* @deprecated since Symfony 6.4, use Twig instead
3034
*/
3135
interface EngineInterface
3236
{

src/Symfony/Component/Templating/Helper/Helper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111

1212
namespace Symfony\Component\Templating\Helper;
1313

14+
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);
15+
1416
/**
1517
* Helper is the base class for all helper classes.
1618
*
1719
* Most of the time, a Helper is an adapter around an existing
1820
* class that exposes a read-only interface for templates.
1921
*
2022
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.4, use Twig instead
2125
*/
2226
abstract class Helper implements HelperInterface
2327
{

src/Symfony/Component/Templating/Helper/HelperInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
namespace Symfony\Component\Templating\Helper;
1313

14+
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);
15+
1416
/**
1517
* HelperInterface is the interface all helpers must implement.
1618
*
1719
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.4, use Twig instead
1822
*/
1923
interface HelperInterface
2024
{

src/Symfony/Component/Templating/Helper/SlotsHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

1212
namespace Symfony\Component\Templating\Helper;
1313

14+
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);
15+
1416
/**
1517
* SlotsHelper manages template slots.
1618
*
1719
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.4, use Twig instead
1822
*/
1923
class SlotsHelper extends Helper
2024
{

src/Symfony/Component/Templating/Loader/CacheLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
use Symfony\Component\Templating\Storage\Storage;
1616
use Symfony\Component\Templating\TemplateReferenceInterface;
1717

18+
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);
19+
1820
/**
1921
* CacheLoader is a loader that caches other loaders responses
2022
* on the filesystem.
@@ -23,6 +25,8 @@
2325
* All other mechanism would imply the use of `eval()`.
2426
*
2527
* @author Fabien Potencier <fabien@symfony.com>
28+
*
29+
* @deprecated since Symfony 6.4, use Twig instead
2630
*/
2731
class CacheLoader extends Loader
2832
{

src/Symfony/Component/Templating/Loader/ChainLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
use Symfony\Component\Templating\Storage\Storage;
1515
use Symfony\Component\Templating\TemplateReferenceInterface;
1616

17+
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);
18+
1719
/**
1820
* ChainLoader is a loader that calls other loaders to load templates.
1921
*
2022
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.4, use Twig instead
2125
*/
2226
class ChainLoader extends Loader
2327
{

src/Symfony/Component/Templating/Loader/FilesystemLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
use Symfony\Component\Templating\Storage\Storage;
1616
use Symfony\Component\Templating\TemplateReferenceInterface;
1717

18+
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);
19+
1820
/**
1921
* FilesystemLoader is a loader that read templates from the filesystem.
2022
*
2123
* @author Fabien Potencier <fabien@symfony.com>
24+
*
25+
* @deprecated since Symfony 6.4, use Twig instead
2226
*/
2327
class FilesystemLoader extends Loader
2428
{

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