@@ -34,111 +34,111 @@ |
||
| 34 | 34 | |
| 35 | 35 | class UserConfigController extends OCSController { |
| 36 | 36 | |
| 37 | - /** @var IConfig */ |
|
| 38 | - protected $config; |
|
| 39 | - |
|
| 40 | - /** @var IAppConfig */ |
|
| 41 | - protected $appConfig; |
|
| 42 | - |
|
| 43 | - /** @var IUserSession */ |
|
| 44 | - private $userSession; |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @param string $appName |
|
| 48 | - * @param IRequest $request |
|
| 49 | - * @param IConfig $config |
|
| 50 | - * @param IAppConfig $appConfig |
|
| 51 | - * @param IUserSession $userSession |
|
| 52 | - */ |
|
| 53 | - public function __construct(string $appName, |
|
| 54 | - IRequest $request, |
|
| 55 | - IConfig $config, |
|
| 56 | - IAppConfig $appConfig, |
|
| 57 | - IUserSession $userSession) { |
|
| 58 | - parent::__construct($appName, $request); |
|
| 59 | - $this->config = $config; |
|
| 60 | - $this->appConfig = $appConfig; |
|
| 61 | - $this->userSession = $userSession; |
|
| 62 | - } |
|
| 63 | - |
|
| 64 | - /** |
|
| 65 | - * @param string $app |
|
| 66 | - * @param string $key |
|
| 67 | - * @param string $defaultValue |
|
| 68 | - * @return DataResponse |
|
| 69 | - */ |
|
| 70 | - public function getValue(string $app, string $key, string $defaultValue = ''): DataResponse { |
|
| 71 | - try { |
|
| 72 | - $this->verifyAppId($app); |
|
| 73 | - } catch (\InvalidArgumentException $e) { |
|
| 74 | - return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 75 | - } |
|
| 76 | - |
|
| 77 | - return new DataResponse([ |
|
| 78 | - 'data' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $app, $key, $defaultValue) |
|
| 79 | - ]); |
|
| 80 | - } |
|
| 81 | - |
|
| 82 | - /** |
|
| 83 | - * @PasswordConfirmationRequired |
|
| 84 | - * @param string $app |
|
| 85 | - * @param string $key |
|
| 86 | - * @param string $value |
|
| 87 | - * @return DataResponse |
|
| 88 | - */ |
|
| 89 | - public function setValue(string $app, string $key, string $value): DataResponse { |
|
| 90 | - try { |
|
| 91 | - $this->verifyAppId($app); |
|
| 92 | - $this->verifyConfigKey($app, $key); |
|
| 93 | - } catch (\InvalidArgumentException $e) { |
|
| 94 | - return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 95 | - } |
|
| 96 | - |
|
| 97 | - $this->config->setUserValue($this->userSession->getUser()->getUID(), $app, $key, $value); |
|
| 98 | - |
|
| 99 | - return new DataResponse(); |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * @param string $app |
|
| 104 | - * @param string $key |
|
| 105 | - * @return DataResponse |
|
| 106 | - */ |
|
| 107 | - public function deleteKey(string $app, string $key): DataResponse { |
|
| 108 | - try { |
|
| 109 | - $this->verifyAppId($app); |
|
| 110 | - $this->verifyConfigKey($app, $key); |
|
| 111 | - } catch (\InvalidArgumentException $e) { |
|
| 112 | - return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 113 | - } |
|
| 114 | - |
|
| 115 | - $this->config->deleteUserValue($this->userSession->getUser()->getUID(), $app, $key); |
|
| 116 | - |
|
| 117 | - return new DataResponse(); |
|
| 118 | - } |
|
| 119 | - |
|
| 120 | - /** |
|
| 121 | - * @param string $app |
|
| 122 | - * @throws \InvalidArgumentException |
|
| 123 | - */ |
|
| 124 | - protected function verifyAppId(string $app) { |
|
| 125 | - if (\OC_App::cleanAppId($app) !== $app) { |
|
| 126 | - throw new \InvalidArgumentException('Invalid app id given'); |
|
| 127 | - } |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - /** |
|
| 131 | - * @param string $app |
|
| 132 | - * @param string $key |
|
| 133 | - * @throws \InvalidArgumentException |
|
| 134 | - */ |
|
| 135 | - protected function verifyConfigKey(string $app, string $key) { |
|
| 136 | - if (in_array($key, ['installed_version', 'enabled', 'types'])) { |
|
| 137 | - throw new \InvalidArgumentException('The given key can not be set'); |
|
| 138 | - } |
|
| 139 | - |
|
| 140 | - if ($app === 'core') { |
|
| 141 | - throw new \InvalidArgumentException('The given key can not be set'); |
|
| 142 | - } |
|
| 143 | - } |
|
| 37 | + /** @var IConfig */ |
|
| 38 | + protected $config; |
|
| 39 | + |
|
| 40 | + /** @var IAppConfig */ |
|
| 41 | + protected $appConfig; |
|
| 42 | + |
|
| 43 | + /** @var IUserSession */ |
|
| 44 | + private $userSession; |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @param string $appName |
|
| 48 | + * @param IRequest $request |
|
| 49 | + * @param IConfig $config |
|
| 50 | + * @param IAppConfig $appConfig |
|
| 51 | + * @param IUserSession $userSession |
|
| 52 | + */ |
|
| 53 | + public function __construct(string $appName, |
|
| 54 | + IRequest $request, |
|
| 55 | + IConfig $config, |
|
| 56 | + IAppConfig $appConfig, |
|
| 57 | + IUserSession $userSession) { |
|
| 58 | + parent::__construct($appName, $request); |
|
| 59 | + $this->config = $config; |
|
| 60 | + $this->appConfig = $appConfig; |
|
| 61 | + $this->userSession = $userSession; |
|
| 62 | + } |
|
| 63 | + |
|
| 64 | + /** |
|
| 65 | + * @param string $app |
|
| 66 | + * @param string $key |
|
| 67 | + * @param string $defaultValue |
|
| 68 | + * @return DataResponse |
|
| 69 | + */ |
|
| 70 | + public function getValue(string $app, string $key, string $defaultValue = ''): DataResponse { |
|
| 71 | + try { |
|
| 72 | + $this->verifyAppId($app); |
|
| 73 | + } catch (\InvalidArgumentException $e) { |
|
| 74 | + return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 75 | + } |
|
| 76 | + |
|
| 77 | + return new DataResponse([ |
|
| 78 | + 'data' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $app, $key, $defaultValue) |
|
| 79 | + ]); |
|
| 80 | + } |
|
| 81 | + |
|
| 82 | + /** |
|
| 83 | + * @PasswordConfirmationRequired |
|
| 84 | + * @param string $app |
|
| 85 | + * @param string $key |
|
| 86 | + * @param string $value |
|
| 87 | + * @return DataResponse |
|
| 88 | + */ |
|
| 89 | + public function setValue(string $app, string $key, string $value): DataResponse { |
|
| 90 | + try { |
|
| 91 | + $this->verifyAppId($app); |
|
| 92 | + $this->verifyConfigKey($app, $key); |
|
| 93 | + } catch (\InvalidArgumentException $e) { |
|
| 94 | + return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 95 | + } |
|
| 96 | + |
|
| 97 | + $this->config->setUserValue($this->userSession->getUser()->getUID(), $app, $key, $value); |
|
| 98 | + |
|
| 99 | + return new DataResponse(); |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * @param string $app |
|
| 104 | + * @param string $key |
|
| 105 | + * @return DataResponse |
|
| 106 | + */ |
|
| 107 | + public function deleteKey(string $app, string $key): DataResponse { |
|
| 108 | + try { |
|
| 109 | + $this->verifyAppId($app); |
|
| 110 | + $this->verifyConfigKey($app, $key); |
|
| 111 | + } catch (\InvalidArgumentException $e) { |
|
| 112 | + return new DataResponse(['data' => ['message' => $e->getMessage()]], Http::STATUS_FORBIDDEN); |
|
| 113 | + } |
|
| 114 | + |
|
| 115 | + $this->config->deleteUserValue($this->userSession->getUser()->getUID(), $app, $key); |
|
| 116 | + |
|
| 117 | + return new DataResponse(); |
|
| 118 | + } |
|
| 119 | + |
|
| 120 | + /** |
|
| 121 | + * @param string $app |
|
| 122 | + * @throws \InvalidArgumentException |
|
| 123 | + */ |
|
| 124 | + protected function verifyAppId(string $app) { |
|
| 125 | + if (\OC_App::cleanAppId($app) !== $app) { |
|
| 126 | + throw new \InvalidArgumentException('Invalid app id given'); |
|
| 127 | + } |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + /** |
|
| 131 | + * @param string $app |
|
| 132 | + * @param string $key |
|
| 133 | + * @throws \InvalidArgumentException |
|
| 134 | + */ |
|
| 135 | + protected function verifyConfigKey(string $app, string $key) { |
|
| 136 | + if (in_array($key, ['installed_version', 'enabled', 'types'])) { |
|
| 137 | + throw new \InvalidArgumentException('The given key can not be set'); |
|
| 138 | + } |
|
| 139 | + |
|
| 140 | + if ($app === 'core') { |
|
| 141 | + throw new \InvalidArgumentException('The given key can not be set'); |
|
| 142 | + } |
|
| 143 | + } |
|
| 144 | 144 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare (strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | /** |
| 4 | 4 | * @copyright Copyright (c) 2016 Joas Schilling <[email protected]> |
| 5 | 5 | * |
@@ -25,51 +25,51 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | 27 | return [ |
| 28 | - 'ocs' => [ |
|
| 29 | - // Apps |
|
| 30 | - ['root' => '/cloud', 'name' => 'Apps#getApps', 'url' => '/apps', 'verb' => 'GET'], |
|
| 31 | - ['root' => '/cloud', 'name' => 'Apps#getAppInfo', 'url' => '/apps/{app}', 'verb' => 'GET'], |
|
| 32 | - ['root' => '/cloud', 'name' => 'Apps#enable', 'url' => '/apps/{app}', 'verb' => 'POST'], |
|
| 33 | - ['root' => '/cloud', 'name' => 'Apps#disable', 'url' => '/apps/{app}', 'verb' => 'DELETE'], |
|
| 28 | + 'ocs' => [ |
|
| 29 | + // Apps |
|
| 30 | + ['root' => '/cloud', 'name' => 'Apps#getApps', 'url' => '/apps', 'verb' => 'GET'], |
|
| 31 | + ['root' => '/cloud', 'name' => 'Apps#getAppInfo', 'url' => '/apps/{app}', 'verb' => 'GET'], |
|
| 32 | + ['root' => '/cloud', 'name' => 'Apps#enable', 'url' => '/apps/{app}', 'verb' => 'POST'], |
|
| 33 | + ['root' => '/cloud', 'name' => 'Apps#disable', 'url' => '/apps/{app}', 'verb' => 'DELETE'], |
|
| 34 | 34 | |
| 35 | - // Groups |
|
| 36 | - ['root' => '/cloud', 'name' => 'Groups#getGroups', 'url' => '/groups', 'verb' => 'GET'], |
|
| 37 | - ['root' => '/cloud', 'name' => 'Groups#getGroupsDetails', 'url' => '/groups/details', 'verb' => 'GET'], |
|
| 38 | - ['root' => '/cloud', 'name' => 'Groups#getGroup', 'url' => '/groups/{groupId}', 'verb' => 'GET'], |
|
| 39 | - ['root' => '/cloud', 'name' => 'Groups#getGroupUsers', 'url' => '/groups/{groupId}/users', 'verb' => 'GET'], |
|
| 40 | - ['root' => '/cloud', 'name' => 'Groups#getGroupUsersDetails', 'url' => '/groups/{groupId}/users/details', 'verb' => 'GET'], |
|
| 41 | - ['root' => '/cloud', 'name' => 'Groups#addGroup', 'url' => '/groups', 'verb' => 'POST'], |
|
| 42 | - ['root' => '/cloud', 'name' => 'Groups#deleteGroup', 'url' => '/groups/{groupId}', 'verb' => 'DELETE', 'requirements' => ['groupId' => '.+']], |
|
| 43 | - ['root' => '/cloud', 'name' => 'Groups#getSubAdminsOfGroup', 'url' => '/groups/{groupId}/subadmins', 'verb' => 'GET'], |
|
| 35 | + // Groups |
|
| 36 | + ['root' => '/cloud', 'name' => 'Groups#getGroups', 'url' => '/groups', 'verb' => 'GET'], |
|
| 37 | + ['root' => '/cloud', 'name' => 'Groups#getGroupsDetails', 'url' => '/groups/details', 'verb' => 'GET'], |
|
| 38 | + ['root' => '/cloud', 'name' => 'Groups#getGroup', 'url' => '/groups/{groupId}', 'verb' => 'GET'], |
|
| 39 | + ['root' => '/cloud', 'name' => 'Groups#getGroupUsers', 'url' => '/groups/{groupId}/users', 'verb' => 'GET'], |
|
| 40 | + ['root' => '/cloud', 'name' => 'Groups#getGroupUsersDetails', 'url' => '/groups/{groupId}/users/details', 'verb' => 'GET'], |
|
| 41 | + ['root' => '/cloud', 'name' => 'Groups#addGroup', 'url' => '/groups', 'verb' => 'POST'], |
|
| 42 | + ['root' => '/cloud', 'name' => 'Groups#deleteGroup', 'url' => '/groups/{groupId}', 'verb' => 'DELETE', 'requirements' => ['groupId' => '.+']], |
|
| 43 | + ['root' => '/cloud', 'name' => 'Groups#getSubAdminsOfGroup', 'url' => '/groups/{groupId}/subadmins', 'verb' => 'GET'], |
|
| 44 | 44 | |
| 45 | - // Users |
|
| 46 | - ['root' => '/cloud', 'name' => 'Users#getUsers', 'url' => '/users', 'verb' => 'GET'], |
|
| 47 | - ['root' => '/cloud', 'name' => 'Users#getUsersDetails', 'url' => '/users/details', 'verb' => 'GET'], |
|
| 48 | - ['root' => '/cloud', 'name' => 'Users#addUser', 'url' => '/users', 'verb' => 'POST'], |
|
| 49 | - ['root' => '/cloud', 'name' => 'Users#getUser', 'url' => '/users/{userId}', 'verb' => 'GET'], |
|
| 50 | - ['root' => '/cloud', 'name' => 'Users#getCurrentUser', 'url' => '/user', 'verb' => 'GET'], |
|
| 51 | - ['root' => '/cloud', 'name' => 'Users#getEditableFields', 'url' => '/user/fields', 'verb' => 'GET'], |
|
| 52 | - ['root' => '/cloud', 'name' => 'Users#editUser', 'url' => '/users/{userId}', 'verb' => 'PUT'], |
|
| 53 | - ['root' => '/cloud', 'name' => 'Users#deleteUser', 'url' => '/users/{userId}', 'verb' => 'DELETE'], |
|
| 54 | - ['root' => '/cloud', 'name' => 'Users#enableUser', 'url' => '/users/{userId}/enable', 'verb' => 'PUT'], |
|
| 55 | - ['root' => '/cloud', 'name' => 'Users#disableUser', 'url' => '/users/{userId}/disable', 'verb' => 'PUT'], |
|
| 56 | - ['root' => '/cloud', 'name' => 'Users#getUsersGroups', 'url' => '/users/{userId}/groups', 'verb' => 'GET'], |
|
| 57 | - ['root' => '/cloud', 'name' => 'Users#addToGroup', 'url' => '/users/{userId}/groups', 'verb' => 'POST'], |
|
| 58 | - ['root' => '/cloud', 'name' => 'Users#removeFromGroup', 'url' => '/users/{userId}/groups', 'verb' => 'DELETE'], |
|
| 59 | - ['root' => '/cloud', 'name' => 'Users#getUserSubAdminGroups', 'url' => '/users/{userId}/subadmins', 'verb' => 'GET'], |
|
| 60 | - ['root' => '/cloud', 'name' => 'Users#addSubAdmin', 'url' => '/users/{userId}/subadmins', 'verb' => 'POST'], |
|
| 61 | - ['root' => '/cloud', 'name' => 'Users#removeSubAdmin', 'url' => '/users/{userId}/subadmins', 'verb' => 'DELETE'], |
|
| 62 | - ['root' => '/cloud', 'name' => 'Users#resendWelcomeMessage', 'url' => '/users/{userId}/welcome', 'verb' => 'POST'], |
|
| 45 | + // Users |
|
| 46 | + ['root' => '/cloud', 'name' => 'Users#getUsers', 'url' => '/users', 'verb' => 'GET'], |
|
| 47 | + ['root' => '/cloud', 'name' => 'Users#getUsersDetails', 'url' => '/users/details', 'verb' => 'GET'], |
|
| 48 | + ['root' => '/cloud', 'name' => 'Users#addUser', 'url' => '/users', 'verb' => 'POST'], |
|
| 49 | + ['root' => '/cloud', 'name' => 'Users#getUser', 'url' => '/users/{userId}', 'verb' => 'GET'], |
|
| 50 | + ['root' => '/cloud', 'name' => 'Users#getCurrentUser', 'url' => '/user', 'verb' => 'GET'], |
|
| 51 | + ['root' => '/cloud', 'name' => 'Users#getEditableFields', 'url' => '/user/fields', 'verb' => 'GET'], |
|
| 52 | + ['root' => '/cloud', 'name' => 'Users#editUser', 'url' => '/users/{userId}', 'verb' => 'PUT'], |
|
| 53 | + ['root' => '/cloud', 'name' => 'Users#deleteUser', 'url' => '/users/{userId}', 'verb' => 'DELETE'], |
|
| 54 | + ['root' => '/cloud', 'name' => 'Users#enableUser', 'url' => '/users/{userId}/enable', 'verb' => 'PUT'], |
|
| 55 | + ['root' => '/cloud', 'name' => 'Users#disableUser', 'url' => '/users/{userId}/disable', 'verb' => 'PUT'], |
|
| 56 | + ['root' => '/cloud', 'name' => 'Users#getUsersGroups', 'url' => '/users/{userId}/groups', 'verb' => 'GET'], |
|
| 57 | + ['root' => '/cloud', 'name' => 'Users#addToGroup', 'url' => '/users/{userId}/groups', 'verb' => 'POST'], |
|
| 58 | + ['root' => '/cloud', 'name' => 'Users#removeFromGroup', 'url' => '/users/{userId}/groups', 'verb' => 'DELETE'], |
|
| 59 | + ['root' => '/cloud', 'name' => 'Users#getUserSubAdminGroups', 'url' => '/users/{userId}/subadmins', 'verb' => 'GET'], |
|
| 60 | + ['root' => '/cloud', 'name' => 'Users#addSubAdmin', 'url' => '/users/{userId}/subadmins', 'verb' => 'POST'], |
|
| 61 | + ['root' => '/cloud', 'name' => 'Users#removeSubAdmin', 'url' => '/users/{userId}/subadmins', 'verb' => 'DELETE'], |
|
| 62 | + ['root' => '/cloud', 'name' => 'Users#resendWelcomeMessage', 'url' => '/users/{userId}/welcome', 'verb' => 'POST'], |
|
| 63 | 63 | |
| 64 | - // Config |
|
| 65 | - ['name' => 'AppConfig#getApps', 'url' => '/api/v1/config/apps', 'verb' => 'GET'], |
|
| 66 | - ['name' => 'AppConfig#getKeys', 'url' => '/api/v1/config/apps/{app}', 'verb' => 'GET'], |
|
| 67 | - ['name' => 'AppConfig#getValue', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'GET'], |
|
| 68 | - ['name' => 'AppConfig#setValue', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'POST'], |
|
| 69 | - ['name' => 'AppConfig#deleteKey', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'DELETE'], |
|
| 64 | + // Config |
|
| 65 | + ['name' => 'AppConfig#getApps', 'url' => '/api/v1/config/apps', 'verb' => 'GET'], |
|
| 66 | + ['name' => 'AppConfig#getKeys', 'url' => '/api/v1/config/apps/{app}', 'verb' => 'GET'], |
|
| 67 | + ['name' => 'AppConfig#getValue', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'GET'], |
|
| 68 | + ['name' => 'AppConfig#setValue', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'POST'], |
|
| 69 | + ['name' => 'AppConfig#deleteKey', 'url' => '/api/v1/config/apps/{app}/{key}', 'verb' => 'DELETE'], |
|
| 70 | 70 | |
| 71 | - ['name' => 'UserConfig#getValue', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'GET'], |
|
| 72 | - ['name' => 'UserConfig#setValue', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'POST'], |
|
| 73 | - ['name' => 'UserConfig#deleteKey', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'DELETE'], |
|
| 74 | - ], |
|
| 71 | + ['name' => 'UserConfig#getValue', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'GET'], |
|
| 72 | + ['name' => 'UserConfig#setValue', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'POST'], |
|
| 73 | + ['name' => 'UserConfig#deleteKey', 'url' => '/api/v1/config/user/{app}/{key}', 'verb' => 'DELETE'], |
|
| 74 | + ], |
|
| 75 | 75 | ]; |
@@ -6,14 +6,14 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\Provisioning_API\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 10 | - 'OCA\\Provisioning_API\\Controller\\AUserData' => $baseDir . '/../lib/Controller/AUserData.php', |
|
| 11 | - 'OCA\\Provisioning_API\\Controller\\AppConfigController' => $baseDir . '/../lib/Controller/AppConfigController.php', |
|
| 12 | - 'OCA\\Provisioning_API\\Controller\\AppsController' => $baseDir . '/../lib/Controller/AppsController.php', |
|
| 13 | - 'OCA\\Provisioning_API\\Controller\\GroupsController' => $baseDir . '/../lib/Controller/GroupsController.php', |
|
| 14 | - 'OCA\\Provisioning_API\\Controller\\UserConfigController' => $baseDir . '/../lib/Controller/UserConfigController.php', |
|
| 15 | - 'OCA\\Provisioning_API\\Controller\\UsersController' => $baseDir . '/../lib/Controller/UsersController.php', |
|
| 16 | - 'OCA\\Provisioning_API\\FederatedFileSharingFactory' => $baseDir . '/../lib/FederatedFileSharingFactory.php', |
|
| 17 | - 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => $baseDir . '/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
| 18 | - 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => $baseDir . '/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
| 9 | + 'OCA\\Provisioning_API\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 10 | + 'OCA\\Provisioning_API\\Controller\\AUserData' => $baseDir.'/../lib/Controller/AUserData.php', |
|
| 11 | + 'OCA\\Provisioning_API\\Controller\\AppConfigController' => $baseDir.'/../lib/Controller/AppConfigController.php', |
|
| 12 | + 'OCA\\Provisioning_API\\Controller\\AppsController' => $baseDir.'/../lib/Controller/AppsController.php', |
|
| 13 | + 'OCA\\Provisioning_API\\Controller\\GroupsController' => $baseDir.'/../lib/Controller/GroupsController.php', |
|
| 14 | + 'OCA\\Provisioning_API\\Controller\\UserConfigController' => $baseDir.'/../lib/Controller/UserConfigController.php', |
|
| 15 | + 'OCA\\Provisioning_API\\Controller\\UsersController' => $baseDir.'/../lib/Controller/UsersController.php', |
|
| 16 | + 'OCA\\Provisioning_API\\FederatedFileSharingFactory' => $baseDir.'/../lib/FederatedFileSharingFactory.php', |
|
| 17 | + 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => $baseDir.'/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
| 18 | + 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => $baseDir.'/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
| 19 | 19 | ); |
@@ -6,36 +6,36 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitProvisioning_API |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Provisioning_API\\' => 21, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Provisioning_API\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'OCA\\Provisioning_API\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 25 | - 'OCA\\Provisioning_API\\Controller\\AUserData' => __DIR__ . '/..' . '/../lib/Controller/AUserData.php', |
|
| 26 | - 'OCA\\Provisioning_API\\Controller\\AppConfigController' => __DIR__ . '/..' . '/../lib/Controller/AppConfigController.php', |
|
| 27 | - 'OCA\\Provisioning_API\\Controller\\AppsController' => __DIR__ . '/..' . '/../lib/Controller/AppsController.php', |
|
| 28 | - 'OCA\\Provisioning_API\\Controller\\GroupsController' => __DIR__ . '/..' . '/../lib/Controller/GroupsController.php', |
|
| 29 | - 'OCA\\Provisioning_API\\Controller\\UserConfigController' => __DIR__ . '/..' . '/../lib/Controller/UserConfigController.php', |
|
| 30 | - 'OCA\\Provisioning_API\\Controller\\UsersController' => __DIR__ . '/..' . '/../lib/Controller/UsersController.php', |
|
| 31 | - 'OCA\\Provisioning_API\\FederatedFileSharingFactory' => __DIR__ . '/..' . '/../lib/FederatedFileSharingFactory.php', |
|
| 32 | - 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => __DIR__ . '/..' . '/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
| 33 | - 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'OCA\\Provisioning_API\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 25 | + 'OCA\\Provisioning_API\\Controller\\AUserData' => __DIR__.'/..'.'/../lib/Controller/AUserData.php', |
|
| 26 | + 'OCA\\Provisioning_API\\Controller\\AppConfigController' => __DIR__.'/..'.'/../lib/Controller/AppConfigController.php', |
|
| 27 | + 'OCA\\Provisioning_API\\Controller\\AppsController' => __DIR__.'/..'.'/../lib/Controller/AppsController.php', |
|
| 28 | + 'OCA\\Provisioning_API\\Controller\\GroupsController' => __DIR__.'/..'.'/../lib/Controller/GroupsController.php', |
|
| 29 | + 'OCA\\Provisioning_API\\Controller\\UserConfigController' => __DIR__.'/..'.'/../lib/Controller/UserConfigController.php', |
|
| 30 | + 'OCA\\Provisioning_API\\Controller\\UsersController' => __DIR__.'/..'.'/../lib/Controller/UsersController.php', |
|
| 31 | + 'OCA\\Provisioning_API\\FederatedFileSharingFactory' => __DIR__.'/..'.'/../lib/FederatedFileSharingFactory.php', |
|
| 32 | + 'OCA\\Provisioning_API\\Middleware\\Exceptions\\NotSubAdminException' => __DIR__.'/..'.'/../lib/Middleware/Exceptions/NotSubAdminException.php', |
|
| 33 | + 'OCA\\Provisioning_API\\Middleware\\ProvisioningApiMiddleware' => __DIR__.'/..'.'/../lib/Middleware/ProvisioningApiMiddleware.php', |
|
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | 36 | public static function getInitializer(ClassLoader $loader) |
| 37 | 37 | { |
| 38 | - return \Closure::bind(function () use ($loader) { |
|
| 38 | + return \Closure::bind(function() use ($loader) { |
|
| 39 | 39 | $loader->prefixLengthsPsr4 = ComposerStaticInitProvisioning_API::$prefixLengthsPsr4; |
| 40 | 40 | $loader->prefixDirsPsr4 = ComposerStaticInitProvisioning_API::$prefixDirsPsr4; |
| 41 | 41 | $loader->classMap = ComposerStaticInitProvisioning_API::$classMap; |