@@ -93,25 +93,21 @@ protected function execute(InputInterface $input, OutputInterface $output)
93
93
{
94
94
$ io = new SymfonyStyle ($ input , $ output );
95
95
$ this ->validateInput ($ input );
96
+ $ object = $ this ->getContainerBuilder ();
96
97
97
98
if ($ input ->getOption ('parameters ' )) {
98
- $ object = $ this -> getContainerBuilder () ->getParameterBag ();
99
+ $ object = $ object ->getParameterBag ();
99
100
$ options = array ();
100
101
} elseif ($ parameter = $ input ->getOption ('parameter ' )) {
101
- $ object = $ this ->getContainerBuilder ();
102
102
$ options = array ('parameter ' => $ parameter );
103
103
} elseif ($ input ->getOption ('tags ' )) {
104
- $ object = $ this ->getContainerBuilder ();
105
104
$ options = array ('group_by ' => 'tags ' , 'show_private ' => $ input ->getOption ('show-private ' ));
106
105
} elseif ($ tag = $ input ->getOption ('tag ' )) {
107
- $ object = $ this ->getContainerBuilder ();
108
106
$ options = array ('tag ' => $ tag , 'show_private ' => $ input ->getOption ('show-private ' ));
109
107
} elseif ($ name = $ input ->getArgument ('name ' )) {
110
- $ object = $ this ->getContainerBuilder ();
111
108
$ name = $ this ->findProperServiceName ($ input , $ io , $ object , $ name );
112
109
$ options = array ('id ' => $ name );
113
110
} else {
114
- $ object = $ this ->getContainerBuilder ();
115
111
$ options = array ('show_private ' => $ input ->getOption ('show-private ' ));
116
112
}
117
113
0 commit comments