php bin/console debug:container

Displays current services for an application

Usage

debug:container [--show-private] [--show-arguments] [--tag TAG] [--tags] [--parameter PARAMETER] [--parameters] [--types] [--format FORMAT] [--raw] [--] [<name>]

Arguments

name   A service name (foo) 

Options

      --show-private     Used to show public *and* private services 
      --show-arguments   Used to show arguments in services 
      --tag              Shows all services with a specific tag 
      --tags             Displays tagged services for an application 
      --parameter        Displays a specific parameter for an application 
      --parameters       Displays parameters for an application 
      --types            Displays types (classes/interfaces) available in the container 
      --format           The output format (txt, xml, json, or md) 
      --raw              To output raw description 

Help

The debug:container command displays all configured public services:

  php bin/console debug:container

To get specific information about a service, specify its name:

  php bin/console debug:container validator

To see available types that can be used for autowiring, use the --types flag:

  php bin/console debug:container --types

By default, private services are hidden. You can display all services by
using the --show-private flag:

  php bin/console debug:container --show-private

Use the --tags option to display tagged public services grouped by tag:

  php bin/console debug:container --tags

Find all services with a specific tag by specifying the tag name with the --tag option:

  php bin/console debug:container --tag=form.type

Use the --parameters option to display all parameters:

  php bin/console debug:container --parameters

Display a specific parameter by specifying its name with the --parameter option:

  php bin/console debug:container --parameter=kernel.debug