Shows which class is returned from an Injector reference.
$ ssconsole injector:lookup <className>
Type | Name | Required | Description | Options | Default |
---|---|---|---|---|---|
Argument | className |
Yes | The class name or Injector alias to look up | string | none |
$ ssconsole injector:lookup "Psr\Log\LoggerInterface"
Psr\Log\LoggerInterface resolves to Monolog\Logger
Module: monolog/monolog
For backwards compatibility, object:lookup
can also be used.