To get a list of all services (public and private) and their PHP classes:
php bin/console debug:container
To get a list of hidden services:
php bin/console debug:container --show-hidden
To show a list of all of the available types that can be used for autowiring (in case of App\Service\Mailer
):