Skip to content

Commit f45f1ab

Browse files
committed
[DoctrineBridge] Changed UniqueEntityValidator to use the 2.5 Validation API
1 parent 0c13296 commit f45f1ab

File tree

6 files changed

+508
-426
lines changed

6 files changed

+508
-426
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Validator\Constraints;
13+
14+
use Symfony\Component\Validator\Validation;
15+
16+
/**
17+
* @since 2.5.4
18+
* @author Bernhard Schussek <bschussek@gmail.com>
19+
*/
20+
class LegacyUniqueEntityValidator2Dot4ApiTest extends UniqueEntityValidatorTest
21+
{
22+
protected function getApiVersion()
23+
{
24+
return Validation::API_VERSION_2_4;
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bridge\Doctrine\Tests\Validator\Constraints;
13+
14+
use Symfony\Component\Validator\Validation;
15+
16+
/**
17+
* @since 2.5.4
18+
* @author Bernhard Schussek <bschussek@gmail.com>
19+
*/
20+
class LegacyUniqueEntityValidatorLegacyApiTest extends UniqueEntityValidatorTest
21+
{
22+
protected function getApiVersion()
23+
{
24+
return Validation::API_VERSION_2_5_BC;
25+
}
26+
}

0 commit comments

Comments
 (0)