Tracy v2.5.3, DI v2.4.14
When I setup DI container in this way:
services:
panel: MyPanel
tracy:
bar:
- @panel
and I load MyPanel from container before the Tracy is initialized (by @var MyPanel @inject on presenter), the panel service is created twice, because in generated container initialize() is:
$this->getService('tracy.bar')->addPanel($this->createServiceMyPanel());
# IMHO there should be
$this->getService('tracy.bar')->addPanel($this->getService('panel'));
If you hint me please in which way I should fix it, I'll send PR.
Tracy v2.5.3, DI v2.4.14
When I setup DI container in this way:
and I load
MyPanelfrom container before the Tracy is initialized (by@var MyPanel @injecton presenter), the panel service is created twice, because in generated containerinitialize()is:If you hint me please in which way I should fix it, I'll send PR.