Nette\DI\Container::__get() is deprecated;

Notice: This thread is very old.
leonardoap
Member | 17
+
0
-

i have this error:

Nette\DI\Container::__get() is deprecated; use getService() or enable nette.container.accessors in configuration.

and i went to configurator and did the next

nette:
	container:
		accessors: TRUE

but the exception is still prenset, what else i have to do???

Last edited by leonardoap (2015-01-30 23:13)

Jan Tvrdík
Nette guru | 2561
+
0
-

Version of Nette?

leonardoap
Member | 17
+
0
-

nette 2.2.7

David Grudl
Nette Core | 7239
+
0
-
leonardoap
Member | 17
+
0
-

I still have the error, the next sentence works good

dump($this->context->forms->getService('signUp'));

but when i try this

dump($this->context->forms->signUp);

show me a deprecated user, the one of this topic