Skip to content

Commit 989ef3d

Browse files
committed
feature #19741 [ExpressionLanguage] Making cache PSR6 compliant (Alexandre GESLIN)
This PR was merged into the 3.2-dev branch. Discussion ---------- [ExpressionLanguage] Making cache PSR6 compliant | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | [#7064](symfony/symfony-docs#7064) Adding Cache component compatible ParserCache in ExpressionLanguage component. I hope you will find it useful :) I would like to make tests also Commits ------- a7352ff [ExpressionLanguage] Making cache PSR6 compliant
2 parents 9c89ade + 2406364 commit 989ef3d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ExpressionLanguage/DoctrineParserCache.php

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

1212
namespace Symfony\Bridge\Doctrine\ExpressionLanguage;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\DoctrineParserCache class is deprecated since version 3.2 and will be removed in 4.0. Use the Symfony\Component\Cache\Adapter\DoctrineAdapter class instead.', E_USER_DEPRECATED);
15+
1416
use Doctrine\Common\Cache\Cache;
1517
use Symfony\Component\ExpressionLanguage\ParsedExpression;
1618
use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
1719

1820
/**
1921
* @author Adrien Brault <adrien.brault@gmail.com>
22+
*
23+
* @deprecated DoctrineParserCache class is deprecated since version 3.2 and will be removed in 4.0. Use the Symfony\Component\Cache\Adapter\DoctrineAdapter class instead.
2024
*/
2125
class DoctrineParserCache implements ParserCacheInterface
2226
{

Tests/ExpressionLanguage/DoctrineParserCacheTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Bridge\Doctrine\ExpressionLanguage\DoctrineParserCache;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class DoctrineParserCacheTest extends \PHPUnit_Framework_TestCase
1720
{
1821
public function testFetch()

0 commit comments

Comments
 (0)