8000 [FrameworkBundle] show public/private for aliases in debug:container command by OskarStark · Pull Request #27551 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] show public/private for aliases in debug:container command #27551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ protected function describeContainerDefinition(Definition $definition, array $op
*/
protected function describeContainerAlias(Alias $alias, array $options = array(), ContainerBuilder $builder = null)
{
$options['output']->comment(sprintf('This service is an alias for the service <info>%s</info>', (string) $alias));
if ($alias->isPublic()) {
$options['output']->comment(sprintf('This service is a <info>public</info> alias for the service <info>%s</info>', (string) $alias));
} else {
$options['output']->comment(sprintf('This service is a <comment>private</comment> alias for the service <info>%s</info>', (string) $alias));
}

if (!$builder) {
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

 // This service is an alias for the service service_1
 // This service is a public alias for the service service_1

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

 // This service is an alias for the service .service_2
 // This service is a private alias for the service .service_2

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 // This service is an alias for the service service_1
 // This service is a public alias for the service service_1

Information for Service "service_1"
===================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 // This service is an alias for the service .service_2
 // This service is a private alias for the service .service_2

Information for Service ".service_2"
====================================
Expand Down
0