Nette 2.1-dev – Problem with Container debugger in debugBar

1. about a year ago

martinit
Member
Registered: 2012-04-25
Posts: 366

Nette 2.1-dev – Problem with Container debugger in debugBar

On 2.1-dev enabled Container debugger write this:

Error: Nette\DI\Diagnostics\ContainerPanel
exception 'ReflectionException' with message 'Property Nette\DI\Container::$factories does not exist' in C:\Wamp\root\vendor\nette\nette\Nette\Reflection\ClassType.php:174
Stack trace:
#0 C:\Wamp\root\vendor\nette\nette\Nette\Reflection\ClassType.php(174): ReflectionProperty->__construct('Nette\DI\Contai...', 'factories')
#1 C:\Wamp\root\vendor\nette\nette\Nette\DI\Diagnostics\ContainerPanel.php(86): Nette\Reflection\ClassType->getProperty('factories')
#2 C:\Wamp\root\vendor\nette\nette\Nette\DI\Diagnostics\ContainerPanel.php(61): Nette\DI\Diagnostics\ContainerPanel->getContainerProperty('factories')
#3 C:\Wamp\root\vendor\nette\nette\Nette\Diagnostics\Bar.php(75): Nette\DI\Diagnostics\ContainerPanel->getPanel()
#4 C:\Wamp\root\vendor\nette\nette\Nette\Diagnostics\Debugger.php(389): Nette\Diagnostics\Bar->render()
#5 [internal function]: Nette\Diagnostics\Debugger::_shutdownHandler()
#6 {main}

Stop using __constructor() in presenters! Use @inject annotation or function inject<Name>(Name $a) {…}

 

2. about a year ago

Jan Tvrdík
Nette guru
Registered: 2008-04-13
Location: Prostějov
Posts: 1883

Re: Nette 2.1-dev – Problem with Container debugger in debugBar

I confirm the issue. However I'm not sure how to fix it, because the $factories property which has been recently removed does not have an alternative.


I opened an issue.


 

3. about a year ago

martinit
Member
Registered: 2012-04-25
Posts: 366

Re: Nette 2.1-dev – Problem with Container debugger in debugBar

@Jan Tvrdík: Ok. THX for issue because have not github acc and I don't how to create issue.

Last edited by martinit (2013-04-23 16:07)


Stop using __constructor() in presenters! Use @inject annotation or function inject<Name>(Name $a) {…}

 

4. about a year ago

Jan Tvrdík
Nette guru
Registered: 2008-04-13
Location: Prostějov
Posts: 1883

Re: Nette 2.1-dev – Problem with Container debugger in debugBar


 

Board footer

Switch to desktop