diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-12 14:01:13 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-05 22:03:59 +0200 |
commit | 829490ab7a02579c6b31573c3f53428e86cbf2e0 (patch) | |
tree | 1f644d168039ea1875398234419ace13f49dac5f /apps/dav/appinfo | |
parent | 0690646d09430ce363b07bc2cd59283e303314eb (diff) | |
download | nextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.tar.gz nextcloud-server-829490ab7a02579c6b31573c3f53428e86cbf2e0.zip |
Cleanup dav
- Remove unused class AppEnabledPlugin
- Add more type hinting when possible
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 1 | ||||
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 5 | ||||
-rw-r--r-- | apps/dav/appinfo/v1/webdav.php | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index a0306118781..8dffad16d8d 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -38,6 +38,7 @@ use OCA\DAV\Connector\Sabre\Principal; use OCP\App\IAppManager; use Psr\Log\LoggerInterface; use Sabre\CardDAV\Plugin; +use Psr\Log\LoggerInterface; $authBackend = new Auth( \OC::$server->getSession(), diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php index 43b472c107b..389461f94b1 100644 --- a/apps/dav/appinfo/v1/publicwebdav.php +++ b/apps/dav/appinfo/v1/publicwebdav.php @@ -29,6 +29,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ + +use Psr\Log\LoggerInterface; + // load needed apps $RUNTIME_APPTYPES = ['filesystem', 'authentication', 'logging']; @@ -48,7 +51,7 @@ $authPlugin = new \Sabre\DAV\Auth\Plugin($authBackend); $serverFactory = new OCA\DAV\Connector\Sabre\ServerFactory( \OC::$server->getConfig(), - \OC::$server->get(Psr\Log\LoggerInterface::class), + \OC::$server->get(LoggerInterface::class), \OC::$server->getDatabaseConnection(), \OC::$server->getUserSession(), \OC::$server->getMountManager(), diff --git a/apps/dav/appinfo/v1/webdav.php b/apps/dav/appinfo/v1/webdav.php index e39a6b48d57..8dbe846f3ff 100644 --- a/apps/dav/appinfo/v1/webdav.php +++ b/apps/dav/appinfo/v1/webdav.php @@ -28,6 +28,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ +use Psr\Log\LoggerInterface; + // no php execution timeout for webdav if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { @set_time_limit(0); @@ -39,7 +41,7 @@ ignore_user_abort(true); $serverFactory = new \OCA\DAV\Connector\Sabre\ServerFactory( \OC::$server->getConfig(), - \OC::$server->get(Psr\Log\LoggerInterface::class), + \OC::$server->get(LoggerInterface::class), \OC::$server->getDatabaseConnection(), \OC::$server->getUserSession(), \OC::$server->getMountManager(), |