8000 Using expressions with container throws exception · Issue #11995 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Using expressions with container throws exception #11995

@Stelian

Description

@Stelian
arguments: ["@=container.hasParameter('param') ? parameter('param') : 'null'"]

gives an Undefined variable: container in the appDevDebugProjectContainer.php. The generated code for that error is

 return $this->services['service_name'] = new \Name\Space\Class((($container->hasParameter("param")) ? ($this->getParameter("param")) : ("null")));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0