2525use OC \Core \Command \Base ;
2626use OC \SystemConfig ;
2727use OCP \IAppConfig ;
28- use OCP \ILazyConfig ;
2928use Stecman \Component \Symfony \Console \BashCompletion \CompletionContext ;
3029use Symfony \Component \Console \Input \InputArgument ;
3130use Symfony \Component \Console \Input \InputInterface ;
@@ -38,7 +37,6 @@ class ListConfigs extends Base {
3837 public function __construct (
3938 protected SystemConfig $ systemConfig ,
4039 protected IAppConfig $ appConfig ,
41- protected ILazyConfig $ lazyConfig ,
4240 ) {
4341 parent ::__construct ();
4442 }
@@ -85,20 +83,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8583 $ configs = [
8684 'system ' => $ this ->getSystemConfigs ($ noSensitiveValues ),
8785 'apps ' => [],
88- 'lazy ' => [],
8986 ];
9087 foreach ($ apps as $ appName ) {
9188 $ configs ['apps ' ][$ appName ] = $ this ->getAppConfigs ($ appName , $ noSensitiveValues );
9289 }
93- foreach ($ this ->lazyConfig ->getApps () as $ appId ) {
94- $ configs ['lazy ' ][$ appId ] = $ this ->getLazyConfigs ($ appId , $ noSensitiveValues );
95- }
9690 break ;
9791
9892 default :
9993 $ configs = [
10094 'apps ' => [$ app => $ this ->getAppConfigs ($ app , $ noSensitiveValues )],
101- 'lazy ' => [$ app => $ this ->getLazyConfigs ($ app , $ noSensitiveValues )]
10295 ];
10396 }
10497
@@ -138,22 +131,15 @@ protected function getSystemConfigs(bool $noSensitiveValues): array {
138131 * @param bool $noSensitiveValues
139132 * @return array
140133 */
141- protected function getAppConfigs (string $ app , bool $ noSensitiveValues ): array {
134+ protected function getAppConfigs (string $ app , bool $ noSensitiveValues ) {
135+ // return $this->appConfig->getAllValues($app, filtered: $noSensitiveValues);
142136 if ($ noSensitiveValues ) {
143137 return $ this ->appConfig ->getFilteredValues ($ app );
144138 } else {
145139 return $ this ->appConfig ->getValues ($ app , false );
146140 }
147141 }
148142
149- protected function getLazyConfigs (string $ app , bool $ noSensitiveValues ): array {
150- if ($ noSensitiveValues ) {
151- return $ this ->lazyConfig ->getFilteredValues ($ app );
152- } else {
153- return $ this ->lazyConfig ->getValues ($ app );
154- }
155- }
156-
157143 /**
158144 * @param string $argumentName
159145 * @param CompletionContext $context
0 commit comments