[FrameworkBundle] deprecated validator.mapping.cache.doctrine.apc
This commit is contained in:
parent
7c1febd600
commit
b57895ccaf
@ -16,6 +16,8 @@ Finder
|
|||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
* The `validator.mapping.cache.doctrine.apc` service has been deprecated.
|
||||||
|
|
||||||
* Using the `KERNEL_DIR` environment variable or the automatic guessing based
|
* Using the `KERNEL_DIR` environment variable or the automatic guessing based
|
||||||
on the `phpunit.xml` / `phpunit.xml.dist` file location is deprecated since 3.4.
|
on the `phpunit.xml` / `phpunit.xml.dist` file location is deprecated since 3.4.
|
||||||
Set the `KERNEL_CLASS` environment variable to the fully-qualified class name
|
Set the `KERNEL_CLASS` environment variable to the fully-qualified class name
|
||||||
|
@ -227,6 +227,8 @@ Form
|
|||||||
FrameworkBundle
|
FrameworkBundle
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
* The `validator.mapping.cache.doctrine.apc` service has been removed.
|
||||||
|
|
||||||
* The `cache:clear` command does not warmup the cache anymore. Warmup should
|
* The `cache:clear` command does not warmup the cache anymore. Warmup should
|
||||||
be done via the `cache:warmup` command.
|
be done via the `cache:warmup` command.
|
||||||
|
|
||||||
|
@ -661,7 +661,18 @@ class Configuration implements ConfigurationInterface
|
|||||||
->info('validation configuration')
|
->info('validation configuration')
|
||||||
->{!class_exists(FullStack::class) && class_exists(Validation::class) ? 'canBeDisabled' : 'canBeEnabled'}()
|
->{!class_exists(FullStack::class) && class_exists(Validation::class) ? 'canBeDisabled' : 'canBeEnabled'}()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('cache')->end()
|
->scalarNode('cache')
|
||||||
|
->beforeNormalization()
|
||||||
|
// Can be removed in 4.0, when validator.mapping.cache.apc is removed
|
||||||
|
->ifString()->then(function ($v) {
|
||||||
|
if ('validator.mapping.cache.apc' === $v && !class_exists('Doctrine\Common\Cache\ApcCache')) {
|
||||||
|
throw new LogicException('Doctrine APC cache for the validator cannot be enabled as the Doctrine Cache package is not installed.');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $v;
|
||||||
|
})
|
||||||
|
->end()
|
||||||
|
->end()
|
||||||
->booleanNode('enable_annotations')->{!class_exists(FullStack::class) && class_exists(Annotation::class) ? 'defaultTrue' : 'defaultFalse'}()->end()
|
->booleanNode('enable_annotations')->{!class_exists(FullStack::class) && class_exists(Annotation::class) ? 'defaultTrue' : 'defaultFalse'}()->end()
|
||||||
->arrayNode('static_method')
|
->arrayNode('static_method')
|
||||||
->defaultValue(array('loadValidatorMetadata'))
|
->defaultValue(array('loadValidatorMetadata'))
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
</call>
|
</call>
|
||||||
</service>
|
</service>
|
||||||
</argument>
|
</argument>
|
||||||
|
<deprecated>The "%service_id%" service is deprecated since Symfony 3.4 and will be removed in 4.0. Use a Psr6 cache like "validator.mapping.cache.symfony" instead.</deprecated>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="validator.validator_factory" class="Symfony\Component\Validator\ContainerConstraintValidatorFactory">
|
<service id="validator.validator_factory" class="Symfony\Component\Validator\ContainerConstraintValidatorFactory">
|
||||||
|
Reference in New Issue
Block a user