diff --git a/src/Addon/AddonBootstrap.php b/src/Addon/AddonBootstrap.php index 5e43979892..2dbde05173 100644 --- a/src/Addon/AddonBootstrap.php +++ b/src/Addon/AddonBootstrap.php @@ -9,7 +9,7 @@ declare(strict_types=1); namespace Friendica\Addon; -use Friendica\Addon\Event\AddonStartedEvent; +use Friendica\Addon\Event\AddonStartEvent; use Friendica\EventSubscriber\StaticEventSubscriber; /** @@ -25,5 +25,5 @@ interface AddonBootstrap extends StaticEventSubscriber /** * Init of the addon. */ - public static function initAddon(AddonStartedEvent $event): void; + public static function initAddon(AddonStartEvent $event): void; } diff --git a/src/Addon/Event/AddonStartedEvent.php b/src/Addon/Event/AddonStartEvent.php similarity index 91% rename from src/Addon/Event/AddonStartedEvent.php rename to src/Addon/Event/AddonStartEvent.php index d83425891d..8f5784133d 100644 --- a/src/Addon/Event/AddonStartedEvent.php +++ b/src/Addon/Event/AddonStartEvent.php @@ -12,7 +12,7 @@ namespace Friendica\Addon\Event; /** * Start an addon. */ -final class AddonStartedEvent +final class AddonStartEvent { public function getDependencies(): array { diff --git a/tests/Util/helloaddon/src/HelloAddon.php b/tests/Util/helloaddon/src/HelloAddon.php index 93aa8d9398..f33ae1407c 100644 --- a/tests/Util/helloaddon/src/HelloAddon.php +++ b/tests/Util/helloaddon/src/HelloAddon.php @@ -16,7 +16,7 @@ declare(strict_types=1); namespace FriendicaAddons\HelloAddon; use Friendica\Addon\Event\AddonInstallEvent; -use Friendica\Addon\Event\AddonStartedEvent; +use Friendica\Addon\Event\AddonStartEvent; use Friendica\Addon\Event\AddonUninstallEvent; use Friendica\Event\HtmlFilterEvent; use Psr\Log\LoggerInterface; @@ -32,7 +32,7 @@ class HelloAddon implements \Friendica\Addon\AddonBootstrap * * The array should contain FQCN of the required services. * - * The dependencies will be passed to the initAddon() method via AddonStartedEvent::getDependencies(). + * The dependencies will be passed to the initAddon() method via AddonStartEvent::getDependencies(). */ public static function getRequiredDependencies(): array { @@ -48,7 +48,7 @@ class HelloAddon implements \Friendica\Addon\AddonBootstrap ]; } - public static function initAddon(AddonStartedEvent $event): void + public static function initAddon(AddonStartEvent $event): void { // $dependencies containts an array of services defined in getRequiredDependencies(). // The keys are the FQCN of the services.