mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
ensure resource name is unique
This commit is contained in:
parent
949e1a42d1
commit
af661c5c26
4 changed files with 74 additions and 17 deletions
9
lib/Errors/ResourceNotFound.php
Normal file
9
lib/Errors/ResourceNotFound.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\OrganizationFolders\Errors;
|
||||
|
||||
class ResourceNotFound extends NotFoundException {
|
||||
public function __construct($id) {
|
||||
parent::__construct(OCA\OrganizationFolders\Db\Resource::class, ["id" => $id]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue