Skip to content

[Debug] a service which is an alias #20954

@theofidry

Description

@theofidry
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version dunno

When doing a bin/console debug:container <service-name>, there is two possible outputs:

  1. You get the service details:
$ bin/console debug:container httplug.client.default

Information for Service "httplug.client.curl"
=============================================

 ------------------ ------------------------------------------------------
  Option             Value
 ------------------ ------------------------------------------------------
  Service ID         httplug.client.curl
  Class              Http\HttplugBundle\ClientFactory\DummyClient
  Tags               -
  Public             yes
  Synthetic          no
  Lazy               no
  Shared             yes
  Abstract           no
  Autowired          no
  Autowiring Types   -
  Factory Class      Http\HttplugBundle\ClientFactory\PluginClientFactory
  Factory Method     createPluginClient
 ------------------ ------------------------------------------------------
  1. the service in question is an alias:
$ bin/console debug:container httplug.client

 // This service is an alias for the service httplug.client.curl

Might be stupid but personally I find annoying to have to do a second command when I have an alias, even more so if it's an alias of an alias...

IMO it would be better to have something like:

$ bin/console debug:container httplug.client

// This service is an alias for the service httplug.client.curl

Information for Service "httplug.client.curl"
=============================================

 ------------------ ------------------------------------------------------
  Option             Value
 ------------------ ------------------------------------------------------
  Service ID         httplug.client.curl
  Class              Http\HttplugBundle\ClientFactory\DummyClient
  Tags               -
  Public             yes
  Synthetic          no
  Lazy               no
  Shared             yes
  Abstract           no
  Autowired          no
  Autowiring Types   -
  Factory Class      Http\HttplugBundle\ClientFactory\PluginClientFactory
  Factory Method     createPluginClient
 ------------------ ------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions