Skip to content

Support for constants instead of string in dic-get calls #151

@leberknecht

Description

@leberknecht

Currently i can call

$this->get('servicename') 

in a controller and the IDE knows the class that is returned from the container. If i call

$this->get(Service::NAME) 

instead, with NAME beeing a const-string in the class, the type-completion fails. Would be nice if it wont ^^

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions