Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 29... Línea 29...
29
class AttributeBasedAutowiring implements DefinitionSource, Autowiring
29
class AttributeBasedAutowiring implements DefinitionSource, Autowiring
30
{
30
{
31
    /**
31
    /**
32
     * @throws InvalidAttribute
32
     * @throws InvalidAttribute
33
     */
33
     */
34
    public function autowire(string $name, ObjectDefinition $definition = null) : ObjectDefinition|null
34
    public function autowire(string $name, ?ObjectDefinition $definition = null) : ObjectDefinition|null
35
    {
35
    {
36
        $className = $definition ? $definition->getClassName() : $name;
36
        $className = $definition ? $definition->getClassName() : $name;
Línea 37... Línea 37...
37
 
37
 
38
        if (!class_exists($className) && !interface_exists($className)) {
38
        if (!class_exists($className) && !interface_exists($className)) {
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * @throws InvalidAttribute
93
     * @throws InvalidAttribute
94
     */
94
     */
95
    private function readProperty(ReflectionProperty $property, ObjectDefinition $definition, string $classname = null) : void
95
    private function readProperty(ReflectionProperty $property, ObjectDefinition $definition, ?string $classname = null) : void
96
    {
96
    {
97
        if ($property->isStatic() || $property->isPromoted()) {
97
        if ($property->isStatic() || $property->isPromoted()) {
98
            return;
98
            return;