Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leberknecht opened this issue Sep 11, 2013 · 2 comments
Closed

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

leberknecht opened this issue Sep 11, 2013 · 2 comments

Comments

@leberknecht
Copy link

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 ^^

@Haehnchen
Copy link
Owner

also missed that and api dont support it, but i think its hackable :)

@Haehnchen
Copy link
Owner

notice: signature piping is possible, so no hack needed

Haehnchen added a commit that referenced this issue Nov 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants