factory line is copy of the native
service definition from the native DI extension.
As I understand the Neon DI definition, there is no way to
overwrite definition of the service by just adding the setup. I thing
that you can overwrite all or nothing and there is no way to define the
implement definition? Or am I wrong?
@2bfree So, have you actually tried it without the
factory: line? Or do you just believe that it will not work?
If it does not work, we should look into making it work. The first thing you can try is to remove the condition on lines 91 and 93 in TracyExtension, so the code look like this.
$logger = $builder->getDefinition($this->prefix('logger')); $initialize->addBody($builder->formatPhp('Tracy\Debugger::setLogger(?);', [$logger]));