10000 add `@deprecation` tag to classes · symfony/symfony@bccbd67 · GitHub
[go: up one dir, main page]

Skip to content

Commit bccbd67

Browse files
committed
add @deprecation tag to classes
1 parent 2fded69 commit bccbd67

21 files changed

+42
-3
lines changed

src/Symfony/Component/Templating/CHANGELOG.md

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

4-
6.4.0
5-
-----
4+
6.4
5+
---
66

7-
* deprecated the component: use Twig instead
7+
* Deprecate the component, use Twig instead
88

99
2.5.0
1010
-----

src/Symfony/Component/Templating/DelegatingEngine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* DelegatingEngine selects an engine for a given template.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
class DelegatingEngine implements EngineInterface, StreamingEngineInterface
2224
{

src/Symfony/Component/Templating/EngineInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* the template.
3030
*
3131
* @author Fabien Potencier <fabien@symfony.com>
32+
*
33+
* @deprecated since Symfony 6.5, use Twig instead
3234
*/
3335
interface EngineInterface
3436
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* class that exposes a read-only interface for templates.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.5, use Twig instead
2325
*/
2426
abstract class Helper implements HelperInterface
2527
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* HelperInterface is the interface all helpers must implement.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
interface HelperInterface
2224
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* SlotsHelper manages template slots.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
class SlotsHelper extends Helper
2224
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* All other mechanism would imply the use of `eval()`.
2626
*
2727
* @author Fabien Potencier <fabien@symfony.com>
28+
*
29+
* @deprecated since Symfony 6.5, use Twig instead
2830
*/
2931
class CacheLoader extends Loader
3032
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* ChainLoader is a loader that calls other loaders to load templates.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.5, use Twig instead
2325
*/
2426
class ChainLoader extends Loader
2527
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* FilesystemLoader is a loader that read templates from the filesystem.
2222
*
2323
* @author Fabien Potencier <fabien@symfony.com>
24+
*
25+
* @deprecated since Symfony 6.5, use Twig instead
2426
*/
2527
class FilesystemLoader extends Loader
2628
{

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

Lines changed: 2 additions & 0 deletions
23
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Loader is the base class for all template loader classes.
2020
*
2121
* @author Fabien Potencier <fabien@symfony.com>
22+
*
23+
* @deprecated since Symfony 6.5, use Twig instead
2224
*/
25
abstract class Loader implements LoaderInterface
2426
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* LoaderInterface is the interface all loaders must implement.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.5, use Twig instead
2325
*/
2426
interface LoaderInterface
2527
{

src/Symfony/Component/Templating/PhpEngine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* @implements \ArrayAccess<string, HelperInterface>
2626
*
2727
* @author Fabien Potencier <fabien@symfony.com>
28+
*
29+
* @deprecated since Symfony 6.5, use Twig instead
2830
*/
2931
class PhpEngine implements EngineInterface, \ArrayAccess
3032
{

src/Symfony/Component/Templating/Storage/FileStorage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* FileStorage represents a template stored on the filesystem.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
class FileStorage extends Storage
2224
{

src/Symfony/Component/Templating/Storage/Storage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Storage is the base class for all storage classes.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
abstract class Storage
2224
{

src/Symfony/Component/Templating/Storage/StringStorage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* StringStorage represents a template stored in a string.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
class StringStorage extends Storage
2224
{

src/Symfony/Component/Templating/StreamingEngineInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* StreamingEngineInterface provides a method that knows how to stream a template.
1818
*
1919
* @author Fabien Potencier <fabien@symfony.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
interface StreamingEngineInterface
2224
{

src/Symfony/Component/Templating/TemplateNameParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* and the extension for the engine.
2121
*
2222
* @author Fabien Potencier <fabien@symfony.com>
23+
*
24+
* @deprecated since Symfony 6.5, use Twig instead
2325
*/
2426
class TemplateNameParser implements TemplateNameParserInterface
2527
{

src/Symfony/Component/Templating/TemplateNameParserInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* instances.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
21+
*
22+
* @deprecated since Symfony 6.5, use Twig instead
2123
*/
2224
interface TemplateNameParserInterface
2325
{

src/Symfony/Component/Templating/TemplateReference.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Internal representation of a template.
1818
*
1919
* @author Victor Berchet <victor@suumit.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
class TemplateReference implements TemplateReferenceInterface
2224
{

src/Symfony/Component/Templating/TemplateReferenceInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Interface to be implemented by all templates.
1818
*
1919
* @author Victor Berchet <victor@suumit.com>
20+
*
21+
* @deprecated since Symfony 6.5, use Twig instead
2022
*/
2123
interface TemplateReferenceInterface
2224
{

src/Symfony/Component/Templating/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=8.1",
20+
"symfony/deprecation-contracts": "^2.5|^3",
2021
"symfony/polyfill-ctype": "~1.8"
2122
},
2223
"require-dev": {

0 commit comments

Comments
 (0)
0