1
0
mirror of https://github.com/flarum/core.git synced 2025-10-23 20:56:05 +02:00

Backend cleanup (#2859)

* Extender docblocks cleanup
* Excplicit type hinting in extenders
* Bring method under constructor
* Mark some classes and methods as internal
* Remove beta references

Co-authored-by: Clark Winkelmann <clark.winkelmann@gmail.com>
This commit is contained in:
Sami Mazouz
2021-05-13 15:26:24 +01:00
committed by GitHub
parent e3f506817b
commit 7bceda976b
59 changed files with 655 additions and 174 deletions

View File

@@ -27,7 +27,5 @@ interface MailableInterface
*
* @return string
*/
// Uncomment beta 17. Commented as temporary BC layer since Symfony changed
// the namespace of their translator interface
// public function getEmailSubject(TranslatorInterface $translator);
public function getEmailSubject(TranslatorInterface $translator);
}

View File

@@ -166,8 +166,10 @@ class NotificationSyncer
*
* @param string $driverName
* @param NotificationDriverInterface $driver
*
* @internal
*/
public static function addNotificationDriver(string $driverName, NotificationDriverInterface $driver)
public static function addNotificationDriver(string $driverName, NotificationDriverInterface $driver): void
{
static::$notificationDrivers[$driverName] = $driver;
}
@@ -182,6 +184,8 @@ class NotificationSyncer
/**
* @param callable|string $callback
*
* @internal
*/
public static function beforeSending($callback): void
{