Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b0a5d8

Browse files
committed
Removed validator api version
1 parent 49f49ba commit 4b0a5d8

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,6 @@ private function registerValidationConfiguration(array $config, ContainerBuilder
777777

778778
$validatorBuilder->addMethodCall('setMetadataCache', array(new Reference($config['cache'])));
779779
}
780-
781-
// You can use this parameter to check the API version in your own
782-
// bundle extension classes
783-
// This is set to 2.5-bc for compatibility with Symfony 2.5 and 2.6.
784-
// @deprecated since version 2.7, to be removed in 3.0
785-
$container->setParameter('validator.api', '2.5-bc');
786780
}
787781

788782
private function getValidatorMappingFiles(ContainerBuilder $container)

src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77

88
<xsd:element name="config" type="config" />
99

10-
<xsd:simpleType name="validator_api_version">
11-
<xsd:restriction base="xsd:string">
12-
<xsd:enumeration value="auto" />
13-
<xsd:enumeration value="2.4" />
14-
<xsd:enumeration value="2.5" />
15-
<xsd:enumeration value="2.5-bc" />
16-
</xsd:restriction>
17-
</xsd:simpleType>
18-
1910
<xsd:complexType name="config">
2011
<xsd:all>
2112
<xsd:element name="assets" type="assets" minOccurs="0" maxOccurs="1" />
@@ -180,7 +171,6 @@
180171
<xsd:attribute name="cache" type="xsd:string" />
181172
<xsd:attribute name="enable-annotations" type="xsd:boolean" />
182173
<xsd:attribute name="static-method" type="xsd:boolean" />
183-
<xsd:attribute name="api" type="validator_api_version" />
184174
</xsd:complexType>
185175

186176
<xsd:complexType name="annotations">

0 commit comments

Comments
 (0)