File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 48
48
* along with this program. If not, see <http://www.gnu.org/licenses/>
49
49
*
50
50
*/
51
+
52
+ use OCP \IAppConfig ;
51
53
use Psr \Log \LoggerInterface ;
52
54
53
55
$ application ->add (new \Stecman \Component \Symfony \Console \BashCompletion \CompletionCommand ());
98
100
$ application ->add (new OC \Core \Command \Config \App \GetConfig (\OC ::$ server ->getConfig ()));
99
101
$ application ->add (new OC \Core \Command \Config \App \SetConfig (\OC ::$ server ->getConfig ()));
100
102
$ 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 )));
102
104
$ application ->add (new OC \Core \Command \Config \System \DeleteConfig (\OC ::$ server ->getSystemConfig ()));
103
105
$ application ->add (new OC \Core \Command \Config \System \GetConfig (\OC ::$ server ->getSystemConfig ()));
104
106
$ application ->add (new OC \Core \Command \Config \System \SetConfig (\OC ::$ server ->getSystemConfig ()));
Original file line number Diff line number Diff line change 56
56
use OCP \App \ManagerEvent ;
57
57
use OCP \Authentication \IAlternativeLogin ;
58
58
use OCP \EventDispatcher \IEventDispatcher ;
59
+ use OCP \IAppConfig ;
59
60
use OCP \ILogger ;
60
61
use OC \AppFramework \Bootstrap \Coordinator ;
61
62
use OC \App \DependencyAnalyzer ;
@@ -731,7 +732,7 @@ public static function getAppVersions() {
731
732
static $ versions ;
732
733
733
734
if (!$ versions ) {
734
- $ appConfig = \OC ::$ server ->getAppConfig ( );
735
+ $ appConfig = \OC ::$ server ->get (IAppConfig::class );
735
736
$ versions = $ appConfig ->getValues (false , 'installed_version ' );
736
737
}
737
738
return $ versions ;
You can’t perform that action at this time.
0 commit comments