-
Notifications
You must be signed in to change notification settings - Fork 3
Work towards RC1 #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Work towards RC1 #16
Conversation
Signed-off-by: Sandro Mesterheide <sandro.mesterheide@extern.publicplan.de>
Signed-off-by: Sandro Mesterheide <sandro.mesterheide@extern.publicplan.de>
Signed-off-by: Sandro Mesterheide <sandro.mesterheide@extern.publicplan.de>
Signed-off-by: Sandro Mesterheide <sandro.mesterheide@extern.publicplan.de>
Signed-off-by: Sandro Mesterheide <sandro.mesterheide@extern.publicplan.de>
| "bamarni/composer-bin-plugin": true | ||
| }, | ||
| "platform": { | ||
| "php": "7.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put 8.0 or remove this block
| "bamarni/composer-bin-plugin": "^1.4", | ||
| "nextcloud/coding-standard": "^1.0.0", | ||
| "phpunit/phpunit": "^9.5", | ||
| "christophwurst/nextcloud": "dev-master", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be replaced by nextcloud/ocp I think, for psalm to work.
| @@ -0,0 +1,189 @@ | |||
| <?php | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strict_types
| /** @var IL10N */ | ||
| private $l; | ||
|
|
||
| /** @var IURLGenerator */ | ||
| private $urlGenerator; | ||
|
|
||
| /** @var ICloudIdManager */ | ||
| private $cloudIdManager; | ||
|
|
||
| /** @var GroupBackend */ | ||
| private $voGroupBackend; | ||
|
|
||
| /** @var ProviderService */ | ||
| private $providerService; | ||
|
|
||
| /** @var IGroupManager */ | ||
| private $groupManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** @var IL10N */ | |
| private $l; | |
| /** @var IURLGenerator */ | |
| private $urlGenerator; | |
| /** @var ICloudIdManager */ | |
| private $cloudIdManager; | |
| /** @var GroupBackend */ | |
| private $voGroupBackend; | |
| /** @var ProviderService */ | |
| private $providerService; | |
| /** @var IGroupManager */ | |
| private $groupManager; | |
| private IL10N $l; | |
| private IURLGenerator $urlGenerator; | |
| private ICloudIdManager $cloudIdManager; | |
| private GroupBackend $voGroupBackend; | |
| private ProviderService $providerService; | |
| private IGroupManager $groupManager; |
| * @return array [user, remoteURL] | ||
| * @throws HintException | ||
| */ | ||
| public function splitUserRemote($address) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public function splitUserRemote($address) { | |
| public function splitUserRemote(string $address): array { |
| $qb = $this->dbConn->getQueryBuilder(); | ||
| $qb->delete('vo_groups') | ||
| ->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid))) | ||
| ->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ->execute(); | |
| ->executeStatement(); |
| $qb = $this->dbConn->getQueryBuilder(); | ||
| $qb->delete('vo_group_user') | ||
| ->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid))) | ||
| ->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ->execute(); | |
| ->executeStatement(); |
| $qb->insert('vo_group_user') | ||
| ->setValue('uid', $qb->createNamedParameter($uid)) | ||
| ->setValue('gid', $qb->createNamedParameter($gid)) | ||
| ->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ->execute(); | |
| ->executeStatement(); |
| ->from('vo_group_user') | ||
| ->where($qb->expr()->eq('gid', $qb->createNamedParameter($gid))) | ||
| ->andWhere($qb->expr()->eq('uid', $qb->createNamedParameter($uid))) | ||
| ->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ->execute(); | |
| ->executeQuery(); |
| @@ -0,0 +1,199 @@ | |||
| <?php | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strict_types
No description provided.