Skip to content

DI\Container::initialize(): usage of undefined $service variable #70

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

Closed
VladaHejda opened this issue Apr 24, 2015 · 0 comments
Closed

Comments

@VladaHejda
Copy link

There is a bug if I add a panel into config:

nette:
    debugger:
        bar:
            - Panel

and the Panel has dependency on some service that is defined in this notation:

services:
    -
        class: MyService

It will trigger a notice about usage of undefined variable $service:

di-initialize-tracy-bar-problem

If the service is defined as:

services:
    - MyService

than everything is ok.

You can try it yourself in my sandbox branch with one commit added onto last 2.3.1 version:

VladaHejda/sandbox@b459baa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant