List available services for Symfony application
27 May 2022 (Updated 27 May 2022)
symfony console debug:container
This will list all the services available in the service container. It will print the results as a two-column table:
- Service ID: Either an interface (e.g.,
Psr\Log\LoggerInterface
) or a service ID (e.g.,monolog.logger.mailer
). - Class name: Fully qualified class name (e.g.,
Symfony\Bridge\Monolog\Logger
). This is the implementation that’s returned when you type-hint the corresponding interface.
Sources
Tagged:
Symfony
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment