Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 28... Línea 28...
28
     * Helper for defining an object.
28
     * Helper for defining an object.
29
     *
29
     *
30
     * @param string|null $className Class name of the object.
30
     * @param string|null $className Class name of the object.
31
     *                               If null, the name of the entry (in the container) will be used as class name.
31
     *                               If null, the name of the entry (in the container) will be used as class name.
32
     */
32
     */
33
    function create(string $className = null) : CreateDefinitionHelper
33
    function create(?string $className = null) : CreateDefinitionHelper
34
    {
34
    {
35
        return new CreateDefinitionHelper($className);
35
        return new CreateDefinitionHelper($className);
36
    }
36
    }
37
}
37
}
Línea 41... Línea 41...
41
     * Helper for autowiring an object.
41
     * Helper for autowiring an object.
42
     *
42
     *
43
     * @param string|null $className Class name of the object.
43
     * @param string|null $className Class name of the object.
44
     *                               If null, the name of the entry (in the container) will be used as class name.
44
     *                               If null, the name of the entry (in the container) will be used as class name.
45
     */
45
     */
46
    function autowire(string $className = null) : AutowireDefinitionHelper
46
    function autowire(?string $className = null) : AutowireDefinitionHelper
47
    {
47
    {
48
        return new AutowireDefinitionHelper($className);
48
        return new AutowireDefinitionHelper($className);
49
    }
49
    }
50
}
50
}