@@ -139,11 +139,11 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
139139 $ service = $ this ->resolveServiceDefinition ($ builder , $ serviceId );
140140
141141 if ($ service instanceof Alias) {
142- if ($ showPrivate || $ service ->isPublic ()) {
142+ if ($ showPrivate || ( $ service ->isPublic () && ! $ service -> isPrivate () )) {
143143 $ services ['aliases ' ][$ serviceId ] = $ service ;
144144 }
145145 } elseif ($ service instanceof Definition) {
146- if (($ showPrivate || $ service ->isPublic ())) {
146+ if (($ showPrivate || ( $ service ->isPublic () && ! $ service -> isPrivate () ))) {
147147 $ services ['definitions ' ][$ serviceId ] = $ service ;
148148 }
149149 } else {
@@ -182,7 +182,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
182182 protected function describeContainerDefinition (Definition $ definition , array $ options = array ())
183183 {
184184 $ output = '- Class: ` ' .$ definition ->getClass ().'` '
185- ."\n" .'- Public: ' .($ definition ->isPublic () ? 'yes ' : 'no ' )
185+ ."\n" .'- Public: ' .($ definition ->isPublic () && ! $ definition -> isPrivate () ? 'yes ' : 'no ' )
186186 ."\n" .'- Synthetic: ' .($ definition ->isSynthetic () ? 'yes ' : 'no ' )
187187 ."\n" .'- Lazy: ' .($ definition ->isLazy () ? 'yes ' : 'no ' )
188188 ."\n" .'- Shared: ' .($ definition ->isShared () ? 'yes ' : 'no ' )
@@ -246,7 +246,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
246246 protected function describeContainerAlias (Alias $ alias , array $ options = array (), ContainerBuilder $ builder = null )
247247 {
248248 $ output = '- Service: ` ' .$ alias .'` '
249- ."\n" .'- Public: ' .($ alias ->isPublic () ? 'yes ' : 'no ' );
249+ ."\n" .'- Public: ' .($ alias ->isPublic () && ! $ alias -> isPrivate () ? 'yes ' : 'no ' );
250250
251251 if (!isset ($ options ['id ' ])) {
252252 return $ this ->write ($ output );
0 commit comments