Skip to content

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

Closed
@VladaHejda

Description

@VladaHejda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions