52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
|
name: StaticMethodLoader
|
||
|
class_comment: '# * Loads validation metadata by calling a static method on the loaded
|
||
|
class.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @author Bernhard Schussek <bschussek@gmail.com>'
|
||
|
dependencies:
|
||
|
- name: MappingException
|
||
|
type: class
|
||
|
source: Symfony\Component\Validator\Exception\MappingException
|
||
|
- name: ClassMetadata
|
||
|
type: class
|
||
|
source: Symfony\Component\Validator\Mapping\ClassMetadata
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: __construct
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: methodName
|
||
|
default: '''loadValidatorMetadata'''
|
||
|
comment: '# * Loads validation metadata by calling a static method on the loaded
|
||
|
class.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @author Bernhard Schussek <bschussek@gmail.com>
|
||
|
|
||
|
# */
|
||
|
|
||
|
# class StaticMethodLoader implements LoaderInterface
|
||
|
|
||
|
# {
|
||
|
|
||
|
# /**
|
||
|
|
||
|
# * Creates a new loader.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param string $methodName The name of the static method to call'
|
||
|
- name: loadClassMetadata
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: metadata
|
||
|
comment: null
|
||
|
traits:
|
||
|
- Symfony\Component\Validator\Exception\MappingException
|
||
|
- Symfony\Component\Validator\Mapping\ClassMetadata
|
||
|
interfaces:
|
||
|
- LoaderInterface
|