mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(core): Make OCSController class final to avoid accidentally extending it
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
13e98dce15
commit
28adf33e69
6 changed files with 25 additions and 1 deletions
|
|
@ -20,7 +20,11 @@ use OCP\IUserSession;
|
|||
use OCP\ServerVersion;
|
||||
use OCP\Util;
|
||||
|
||||
class OCSController extends \OCP\AppFramework\OCSController {
|
||||
/**
|
||||
* If you are here because you can't extend the OCSController class, you got the wrong one.
|
||||
* Please use {@see \OCP\AppFramework\OCSController}!
|
||||
*/
|
||||
final class OCSController extends \OCP\AppFramework\OCSController {
|
||||
public function __construct(
|
||||
string $appName,
|
||||
IRequest $request,
|
||||
|
|
|
|||
|
|
@ -644,6 +644,10 @@
|
|||
}
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "ocs",
|
||||
"description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"description": "Class AvatarController"
|
||||
|
|
|
|||
|
|
@ -1367,6 +1367,10 @@
|
|||
}
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "ocs",
|
||||
"description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"description": "Class AvatarController"
|
||||
|
|
|
|||
|
|
@ -11788,6 +11788,10 @@
|
|||
}
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "ocs",
|
||||
"description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"description": "Class AvatarController"
|
||||
|
|
|
|||
|
|
@ -10152,6 +10152,10 @@
|
|||
}
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "ocs",
|
||||
"description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
|
||||
},
|
||||
{
|
||||
"name": "avatar",
|
||||
"description": "Class AvatarController"
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@
|
|||
}
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"name": "core/ocs",
|
||||
"description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
|
||||
},
|
||||
{
|
||||
"name": "core/avatar",
|
||||
"description": "Class AvatarController"
|
||||
|
|
|
|||
Loading…
Reference in a new issue