11<?php
22 namespace Pdsinterop \PhpSolid \Routes ;
33
4- use Pdsinterop \PhpSolid \User ;
5- use Pdsinterop \PhpSolid \StorageServer ;
6- use Pdsinterop \PhpSolid \ClientRegistration ;
4+ use Laminas \Diactoros \Response ;
5+ use Laminas \Diactoros \ServerRequestFactory ;
76 use Pdsinterop \PhpSolid \SolidNotifications ;
7+ use Pdsinterop \PhpSolid \StorageServer ;
8+ use Pdsinterop \PhpSolid \User ;
89 use Pdsinterop \PhpSolid \Util ;
910 use Pdsinterop \Solid \Auth \WAC ;
1011 use Pdsinterop \Solid \Resources \Server as ResourceServer ;
11- use Laminas \Diactoros \ServerRequestFactory ;
12- use Laminas \Diactoros \Response ;
1312
1413 class SolidStorage {
1514 public static function respondToStorage () {
1615 $ requestFactory = new ServerRequestFactory ();
17- $ rawRequest = $ requestFactory-> fromGlobals ($ _SERVER , $ _GET , $ _POST , $ _COOKIE , $ _FILES );
16+ $ rawRequest = $ requestFactory:: fromGlobals ($ _SERVER , $ _GET , $ _POST , $ _COOKIE , $ _FILES );
1817
1918 try {
2019 StorageServer::initializeStorage ();
@@ -52,7 +51,6 @@ public static function respondToStorage() {
5251 $ ownerWebId = StorageServer::getOwnerWebId ();
5352 $ owner = User::getUserByWebId ($ ownerWebId );
5453
55- $ allowedClients = $ owner ['allowedClients ' ] ?? [];
5654 $ allowedOrigins = array_merge (
5755 ($ owner ['allowedOrigins ' ] ?? []),
5856 (TRUSTED_APPS ?? [])
@@ -76,4 +74,3 @@ public static function respondToStorage() {
7674 StorageServer::respond ($ response );
7775 }
7876 }
79-
0 commit comments