diff options
Diffstat (limited to 'lib/private/AppFramework/DependencyInjection/DIContainer.php')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 47566e0381c..94c725f3fbc 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -36,7 +36,6 @@ namespace OC\AppFramework\DependencyInjection; use OC; -use OC\AppFramework\Core\API; use OC\AppFramework\Http; use OC\AppFramework\Http\Dispatcher; use OC\AppFramework\Http\Output; @@ -51,7 +50,6 @@ use OC\Core\Middleware\TwoFactorMiddleware; use OC\RichObjectStrings\Validator; use OC\ServerContainer; use OCP\AppFramework\Http\IOutput; -use OCP\AppFramework\IApi; use OCP\AppFramework\IAppContainer; use OCP\AppFramework\QueryException; use OCP\AppFramework\Utility\ITimeFactory; @@ -180,17 +178,6 @@ class DIContainer extends SimpleContainer implements IAppContainer { ); }); - /** - * App Framework APIs - */ - $this->registerService('API', function($c){ - $c->query('OCP\\ILogger')->debug( - 'Accessing the API class is deprecated! Use the appropriate ' . - 'services instead!' - ); - return new API($c['AppName']); - }); - $this->registerService('Protocol', function($c){ /** @var \OC\Server $server */ $server = $c->query('ServerContainer'); @@ -335,16 +322,6 @@ class DIContainer extends SimpleContainer implements IAppContainer { } - - /** - * @deprecated implements only deprecated methods - * @return IApi - */ - public function getCoreApi() - { - return $this->query('API'); - } - /** * @return \OCP\IServerContainer */ |