Skip to content

Commit 2406364

Browse files
Alexandre GESLINReDnAxE
authored andcommitted
[ExpressionLanguage] Making cache PSR6 compliant
1 parent c9927be commit 2406364

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 <[email protected]>
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)