mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #51992 from nextcloud/backport/51944/stable31
[stable31] fix(files_reminders): add missing import
This commit is contained in:
commit
4ec0ca633a
7 changed files with 14 additions and 2 deletions
|
|
@ -25,4 +25,5 @@ return array(
|
|||
'OCA\\FilesReminders\\Model\\RichReminder' => $baseDir . '/../lib/Model/RichReminder.php',
|
||||
'OCA\\FilesReminders\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php',
|
||||
'OCA\\FilesReminders\\Service\\ReminderService' => $baseDir . '/../lib/Service/ReminderService.php',
|
||||
'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => $baseDir . '/../lib/SetupChecks/NeedNotificationsApp.php',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class ComposerStaticInitFilesReminders
|
|||
'OCA\\FilesReminders\\Model\\RichReminder' => __DIR__ . '/..' . '/../lib/Model/RichReminder.php',
|
||||
'OCA\\FilesReminders\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
|
||||
'OCA\\FilesReminders\\Service\\ReminderService' => __DIR__ . '/..' . '/../lib/Service/ReminderService.php',
|
||||
'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => __DIR__ . '/..' . '/../lib/SetupChecks/NeedNotificationsApp.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ use OCA\FilesReminders\Listener\NodeDeletedListener;
|
|||
use OCA\FilesReminders\Listener\SabrePluginAddListener;
|
||||
use OCA\FilesReminders\Listener\UserDeletedListener;
|
||||
use OCA\FilesReminders\Notification\Notifier;
|
||||
use OCA\FilesReminders\SetupChecks\NeedNotificationsApp;
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class Notifier implements INotifier {
|
|||
[
|
||||
'name' => [
|
||||
'type' => 'highlight',
|
||||
'id' => $node->getId(),
|
||||
'id' => (string)$node->getId(),
|
||||
'name' => $node->getName(),
|
||||
],
|
||||
],
|
||||
|
|
|
|||
|
|
@ -7,15 +7,17 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\DAV\SetupChecks;
|
||||
namespace OCA\FilesReminders\SetupChecks;
|
||||
|
||||
use OCP\App\IAppManager;
|
||||
use OCP\IL10N;
|
||||
use OCP\SetupCheck\ISetupCheck;
|
||||
use OCP\SetupCheck\SetupResult;
|
||||
|
||||
class NeedNotificationsApp implements ISetupCheck {
|
||||
public function __construct(
|
||||
private IAppManager $appManager,
|
||||
private IL10N $l10n,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -848,6 +848,12 @@
|
|||
<code><![CDATA[test]]></code>
|
||||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="apps/files_reminders/lib/Model/RichReminder.php">
|
||||
<ConstructorSignatureMismatch>
|
||||
<code><![CDATA[public function __construct(]]></code>
|
||||
<code><![CDATA[public function __construct(]]></code>
|
||||
</ConstructorSignatureMismatch>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
|
||||
<RedundantCast>
|
||||
<code><![CDATA[(int)$code]]></code>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
<directory name="apps/federation"/>
|
||||
<directory name="apps/files"/>
|
||||
<directory name="apps/files_external"/>
|
||||
<directory name="apps/files_reminders"/>
|
||||
<directory name="apps/files_sharing"/>
|
||||
<directory name="apps/files_trashbin"/>
|
||||
<directory name="apps/files_versions"/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue