Problem with DI registering Tracy on project without Debugger enabled #245
i have quite specific use-case: i am using Tracy\Debugger and Dumper in my remote dumper. the remote dumper is auto-prepended in php config. it includes either its own Tracy or Tracy from the project it is used on.
so far everything worked ok, until i started using an app which does use Nette\DI, but does not use Tracy.
DIExtension detects Tracy just by checking for existence of IBarPanel interface and then it fails because it tries to get from DI container the BarPanel service, which is not there, because neither Configurator::enableDebugger() nor Debugger::enable() was called.
i could make (and will make) some workaround, but still have to ask: is this the right or the only way to detect Tracy? should mere existence of a class trigger an action when there are methods specifically designed to enable Debugger?
where it happens:
after some thought, i think some $container->hasService() would fix it? but i am not sure how the compilation works and when is the right time...
The text was updated successfully, but these errors were encountered:
…y presence of service [Closes nette/di#245]