How to inject non-acl object into navigation?

Hi @froschdesign,

I did achieve my goal by extending the desired service in my case it is the navigation menu helper, which was achieved with your help in this post. So the way I did it is by adding my method in the menu helper called setAuthorizationService(). Then to access the authorization service in the view, I created another helper to access my authorization service. So the code looks something like below.

$this->navigation('navigation')
         ->bootstrapMenu()
         ->setAuthorizationService($this->myAuthorizationService());
/*
 * Below method returns the LmcRbac/RouteGuard
 * $this->myAuthorizationService()
*/

This is the way I’ve done it. I want to know if this is the right way. Thanks!