How to prevent Symfony profiler from accessing or executing a listener
问题 My user has countTasks property, with corresponding setter and getter: class User implements UserInterface, \Serializable { /** * @var integer */ private $countTasks; } I want this property to be always shown in the application's navigation bar (the "14" number in red): Obviously, this property should be set for every controller. (Actually, only for every that deals with rendering the navigation bar, but that's not the case here). So the application should count tasks for the currently logged