Tag ‘run’ used in service XXX is deprecated

Pavel Janda
Backer | 917
+
0
-

Hi,

what is the correct fix of that err in nette 3?

Thanks,

Pavel

Mabar
Member | 293
+
+1
-

In compiler extension, afterCompile method $class->getMethod('initialize')->addBody('$this->getService(?);', [$name]);

Pavel Janda
Backer | 917
+
0
-

For those interested in real example (as @Mabar pointed out), check out this diff: https://github.com/….0.2..v3.0.0#…