Tag ‘run’ used in service XXX is deprecated

Pavel Janda
Member | 977
+
0
-

Hi,

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

Thanks,

Pavel

Marek Bartoš
Nette Blogger | 1273
+
+1
-

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

Pavel Janda
Member | 977
+
0
-

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