File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 * along with this program. If not, see <http://www.gnu.org/licenses/>
4949 *
5050 */
51+
52+ use OCP \IAppConfig ;
5153use Psr \Log \LoggerInterface ;
5254
5355$ application ->add (new \Stecman \Component \Symfony \Console \BashCompletion \CompletionCommand ());
98100 $ application ->add (new OC \Core \Command \Config \App \GetConfig (\OC ::$ server ->getConfig ()));
99101 $ application ->add (new OC \Core \Command \Config \App \SetConfig (\OC ::$ server ->getConfig ()));
100102 $ application ->add (new OC \Core \Command \Config \Import (\OC ::$ server ->getConfig ()));
101- $ application ->add (new OC \Core \Command \Config \ListConfigs (\OC ::$ server ->getSystemConfig (), \OC ::$ server ->getAppConfig ( )));
103+ $ application ->add (new OC \Core \Command \Config \ListConfigs (\OC ::$ server ->getSystemConfig (), \OC ::$ server ->get (IAppConfig::class )));
102104 $ application ->add (new OC \Core \Command \Config \System \DeleteConfig (\OC ::$ server ->getSystemConfig ()));
103105 $ application ->add (new OC \Core \Command \Config \System \GetConfig (\OC ::$ server ->getSystemConfig ()));
104106 $ application ->add (new OC \Core \Command \Config \System \SetConfig (\OC ::$ server ->getSystemConfig ()));
Original file line number Diff line number Diff line change 5656use OCP \App \ManagerEvent ;
5757use OCP \Authentication \IAlternativeLogin ;
5858use OCP \EventDispatcher \IEventDispatcher ;
59+ use OCP \IAppConfig ;
5960use OCP \ILogger ;
6061use OC \AppFramework \Bootstrap \Coordinator ;
6162use OC \App \DependencyAnalyzer ;
@@ -731,7 +732,7 @@ public static function getAppVersions() {
731732 static $ versions ;
732733
733734 if (!$ versions ) {
734- $ appConfig = \OC ::$ server ->getAppConfig ( );
735+ $ appConfig = \OC ::$ server ->get (IAppConfig::class );
735736 $ versions = $ appConfig ->getValues (false , 'installed_version ' );
736737 }
737738 return $ versions ;
You can’t perform that action at this time.
0 commit comments