Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Validator] Moved DoctrineCache to Doctrine Bridge #9898

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 4 UPGRADE-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ UPGRADE FROM 2.x to 3.0
### Validator

* The class `Symfony\Component\Validator\Mapping\Cache\ApcCache` has been removed in favor
of `Symfony\Component\Validator\Mapping\Cache\DoctrineCache`.
of `Symfony\Bridge\Doctrine\Validator\Mapping\DoctrineCache`.

Before:

Expand All @@ -457,7 +457,7 @@ UPGRADE FROM 2.x to 3.0
After:

```
use Symfony\Component\Validator\Mapping\Cache\DoctrineCache;
use Symfony\Bridge\Doctrine\Validator\Mapping\DoctrineCache;
use Doctrine\Common\Cache\ApcCache;

$apcCache = new ApcCache();
Expand Down
5 changes: 5 additions & 0 deletions 5 src/Symfony/Bridge/Doctrine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

2.5.0
-----

* added Validator\Mapping\DoctrineCache class

2.2.0
-----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\Validator\Tests\Mapping\Cache;
namespace Symfony\Bridge\Doctrine\Tests\Validator\Mapping;

use Symfony\Component\Validator\Mapping\Cache\DoctrineCache;
use Symfony\Bridge\Doctrine\Validator\Mapping\DoctrineCache;
use Doctrine\Common\Cache\ArrayCache;

class DoctrineCacheTest extends \PHPUnit_Framework_TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\Validator\Mapping\Cache;
namespace Symfony\Bridge\Doctrine\Validator\Mapping;

use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Doctrine\Common\Cache\Cache;

Expand Down
3 changes: 1 addition & 2 deletions 3 src/Symfony/Component/Validator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ CHANGELOG
2.5.0
-----

* deprecated `ApcCache` in favor of `DoctrineCache`
* added `DoctrineCache` to adapt any Doctrine cache
* deprecated `ApcCache` in favor of `Symfony\Bridge\Doctrine\Validator\Mapping\DoctrineCache`

2.4.0
-----
Expand Down
3 changes: 2 additions & 1 deletion 3 src/Symfony/Component/Validator/Mapping/Cache/ApcCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

/**
* @deprecated Deprecated since version 2.5, to be removed in 3.0.
* Use DoctrineCache with Doctrine\Common\Cache\ApcCache instead.
* Use Symfony\Bridge\Doctrine\Validator\Mapping\DoctrineCache
* with Doctrine\Common\Cache\ApcCache instead.
*/
class ApcCache implements CacheInterface
{
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Component/Validator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"suggest": {
"doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.",
"doctrine/cache": "For using the default cached annotation reader and metadata cache.",
"doctrine/cache": "For using the default cached annotation reader.",
"symfony/http-foundation": "",
"symfony/intl": "",
"symfony/yaml": "",
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.