pl.sabotinov Posted January 26, 2022 Share Posted January 26, 2022 Hello, prestashop 1.7.7.5 How can i get a list of all registered services (or controllers as they are registered services i suppose) in Prestashop. I found a command : php bin/console debug:container But should i execute it as a bash command in ssh access and also execute it where (which folder), or put it in a php file and call it? How exactly should i do this. Would you please explain? Regards, Link to comment Share on other sites More sharing options...
pl.sabotinov Posted February 9, 2022 Author Share Posted February 9, 2022 Hello again, ok i found the folder where to execute the command and get the list of the registered services. But if a php file (class) is not registered as a service, is there other option to decorate it. I can override it , but want to avoid that, as for future updates to be possible. So is there another way to extend or decorate this file, without losing the option to update version later? Link to comment Share on other sites More sharing options...
Ali Samie Posted August 9, 2022 Share Posted August 9, 2022 I used this in a module and this returns all available services in current container $this->getContainer()->getServiceIds(); Link to comment Share on other sites More sharing options...
Ali Samie Posted August 12 Share Posted August 12 I found this way on a symfony module admin controller Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now