Skip to content

[DependencyInjection] Allow autoconfigured calls in PHP #9659

Closed
@javiereguiluz

Description

@javiereguiluz

symfony/symfony#26768

You can now call PHP methods when using registerForAutoconfiguration():

$container->registerForAutoconfiguration(LoggerAwareInterface::class)
    ->addMethodCall('setLogger', array(new Reference(LoggerInterface::class)));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions