Nette 3.1. parameters can not be filled by service? (so parameter stores Nette\DI\Statement)

forgie
Bronze Partner | 18
+
0
-

I mean this in .neon file:

parameters:
	someParameter: @someService::get('something')

In Nette 2.4. it worked for sure, if I'm not wrong it worked also in Nette 3.0.
Parameters in container contained DI Statement: Container::$parameters['someParameter'] === Nette\DI\Statement ...

But this no longer works in Nette 3.1: Container::$parameters['someParameter'] === null
Or it works also in Nette 3.1 and it is only my project issue?

David Grudl
Nette Core | 8228
+
0
-

Don't you have parameter export disabled? https://doc.nette.org/en/configuring#…

forgie
Bronze Partner | 18
+
0
-

Parameter export is enabled.
So if it is no BCB in Nette 3.1. the bug is probably hidden in one of the extension, there are quite o lot of them, maybe one of them breaks the feature :(

Thank you for reply.

David Grudl
Nette Core | 8228
+
0
-

I look at it and it's a BC break, in nette/di 3.0