Auto-wiring \Nette\Security\User causes circular reference in Authenticator [2.1dev]

Notice: This thread is very old.
Member | 3

Hi, I really like many new features in current dev version (2.1) so I was trying to use it in our application. But I started getting

Circular reference detected for services: user, authenticator, userService, userDao

Problem is in auto-wiring \Nette\Security\User to my DAO which is used in service I use in Authenticator. In DAO I am using User to check if he is logged and eventually adding user specific token to every request. In current stable version (2.0.10) it works fine so I dont know if its a bug or bad design decision.

Here is a link to my sandbox

Last edited by SpadgeAki (2013-04-23 10:25)