94 lines
2.5 KiB
YAML
94 lines
2.5 KiB
YAML
name: ValidatorCacheWarmer
|
|
class_comment: '# * Warms up XML and YAML validator metadata.
|
|
|
|
# *
|
|
|
|
# * @author Titouan Galopin <galopintitouan@gmail.com>
|
|
|
|
# *
|
|
|
|
# * @final since Symfony 7.1'
|
|
dependencies:
|
|
- name: ArrayAdapter
|
|
type: class
|
|
source: Symfony\Component\Cache\Adapter\ArrayAdapter
|
|
- name: PhpArrayAdapter
|
|
type: class
|
|
source: Symfony\Component\Cache\Adapter\PhpArrayAdapter
|
|
- name: LazyLoadingMetadataFactory
|
|
type: class
|
|
source: Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory
|
|
- name: LoaderChain
|
|
type: class
|
|
source: Symfony\Component\Validator\Mapping\Loader\LoaderChain
|
|
- name: LoaderInterface
|
|
type: class
|
|
source: Symfony\Component\Validator\Mapping\Loader\LoaderInterface
|
|
- name: XmlFileLoader
|
|
type: class
|
|
source: Symfony\Component\Validator\Mapping\Loader\XmlFileLoader
|
|
- name: YamlFileLoader
|
|
type: class
|
|
source: Symfony\Component\Validator\Mapping\Loader\YamlFileLoader
|
|
- name: ValidatorBuilder
|
|
type: class
|
|
source: Symfony\Component\Validator\ValidatorBuilder
|
|
properties: []
|
|
methods:
|
|
- name: __construct
|
|
visibility: public
|
|
parameters:
|
|
- name: validatorBuilder
|
|
- name: phpArrayFile
|
|
comment: '# * Warms up XML and YAML validator metadata.
|
|
|
|
# *
|
|
|
|
# * @author Titouan Galopin <galopintitouan@gmail.com>
|
|
|
|
# *
|
|
|
|
# * @final since Symfony 7.1
|
|
|
|
# */
|
|
|
|
# class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * @param string $phpArrayFile The PHP file where metadata are cached'
|
|
- name: doWarmUp
|
|
visibility: protected
|
|
parameters:
|
|
- name: cacheDir
|
|
- name: arrayAdapter
|
|
- name: buildDir
|
|
default: 'null'
|
|
comment: null
|
|
- name: warmUpPhpArrayAdapter
|
|
visibility: protected
|
|
parameters:
|
|
- name: phpArrayAdapter
|
|
- name: values
|
|
comment: '# * @return string[] A list of classes to preload on PHP 7.4+'
|
|
- name: extractSupportedLoaders
|
|
visibility: private
|
|
parameters:
|
|
- name: loaders
|
|
comment: '# * @param LoaderInterface[] $loaders
|
|
|
|
# *
|
|
|
|
# * @return XmlFileLoader[]|YamlFileLoader[]'
|
|
traits:
|
|
- Symfony\Component\Cache\Adapter\ArrayAdapter
|
|
- Symfony\Component\Cache\Adapter\PhpArrayAdapter
|
|
- Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory
|
|
- Symfony\Component\Validator\Mapping\Loader\LoaderChain
|
|
- Symfony\Component\Validator\Mapping\Loader\LoaderInterface
|
|
- Symfony\Component\Validator\Mapping\Loader\XmlFileLoader
|
|
- Symfony\Component\Validator\Mapping\Loader\YamlFileLoader
|
|
- Symfony\Component\Validator\ValidatorBuilder
|
|
interfaces: []
|