Merge pull request #20845 from owncloud/allow-di-in-apps

Allow DI the system tag stuff without Application class
This commit is contained in:
Thomas Müller 2015-11-30 22:43:30 +01:00
commit 54f0dec319
2 changed files with 9 additions and 1 deletions

View File

@ -206,6 +206,14 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getSecureRandom();
});
$this->registerService('OCP\\SystemTag\\ISystemTagManager', function() {
return $this->getServer()->getSystemTagManager();
});
$this->registerService('OCP\\SystemTag\\ISystemTagObjectMapper', function() {
return $this->getServer()->getSystemTagObjectMapper();
});
$this->registerService('OCP\\IURLGenerator', function($c) {
return $this->getServer()->getURLGenerator();
});

View File

@ -25,7 +25,7 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
$OC_Version = array(9, 0, 0, 3);
$OC_Version = array(9, 0, 0, 4);
// The human readable string
$OC_VersionString = '9.0 pre alpha';