diff --git a/framework/core/src/Extend/ActivityType.php b/framework/core/src/Extend/ActivityType.php index 92a86c079..0b3dcf59b 100644 --- a/framework/core/src/Extend/ActivityType.php +++ b/framework/core/src/Extend/ActivityType.php @@ -1,6 +1,6 @@ serializer = $serializer; } - public function extend(Application $app) + public function extend(Container $container) { $class = $this->class; diff --git a/framework/core/src/Extend/ApiInclude.php b/framework/core/src/Extend/ApiInclude.php index 5a1f21ced..4336f69f8 100644 --- a/framework/core/src/Extend/ApiInclude.php +++ b/framework/core/src/Extend/ApiInclude.php @@ -1,6 +1,6 @@ status = $status; } - public function extend(Application $app) + public function extend(Container $container) { foreach ((array) $this->actions as $action) { $parts = explode('.', $action); diff --git a/framework/core/src/Extend/DiscussionGambit.php b/framework/core/src/Extend/DiscussionGambit.php index e345409d2..b6b983fec 100644 --- a/framework/core/src/Extend/DiscussionGambit.php +++ b/framework/core/src/Extend/DiscussionGambit.php @@ -1,6 +1,6 @@ class = $class; } - public function extend(Application $app) + public function extend(Container $container) { - $app['events']->listen('Flarum\Core\Events\RegisterDiscussionGambits', function ($event) { + $container->make('events')->listen('Flarum\Core\Events\RegisterDiscussionGambits', function ($event) { $event->gambits->add($this->class); }); } diff --git a/framework/core/src/Extend/EventSubscribers.php b/framework/core/src/Extend/EventSubscribers.php index 4fdb95a28..c8c391a1c 100644 --- a/framework/core/src/Extend/EventSubscribers.php +++ b/framework/core/src/Extend/EventSubscribers.php @@ -1,6 +1,6 @@ subscribers = $subscribers; } - public function extend(Application $app) + public function extend(Container $container) { foreach ((array) $this->subscribers as $subscriber) { - $app['events']->subscribe($subscriber); + $container->make('events')->subscribe($subscriber); } } } diff --git a/framework/core/src/Extend/ExtenderInterface.php b/framework/core/src/Extend/ExtenderInterface.php index 0204c1520..adc96c30a 100644 --- a/framework/core/src/Extend/ExtenderInterface.php +++ b/framework/core/src/Extend/ExtenderInterface.php @@ -1,8 +1,8 @@ priority = $priority; } - public function extend(Application $app) + public function extend(Container $container) { - $app['flarum.formatter']->add($this->name, $this->class, $this->priority); + $container->make('flarum.formatter')->add($this->name, $this->class, $this->priority); } } diff --git a/framework/core/src/Extend/ForumAssets.php b/framework/core/src/Extend/ForumAssets.php index 20fb0a260..f1cad8fde 100644 --- a/framework/core/src/Extend/ForumAssets.php +++ b/framework/core/src/Extend/ForumAssets.php @@ -1,6 +1,6 @@ files = $files; } - public function extend(Application $app) + public function extend(Container $container) { - $app['events']->listen('Flarum\Forum\Events\RenderView', function ($event) { + $container->make('events')->listen('Flarum\Forum\Events\RenderView', function ($event) { $event->assets->addFile($this->files); }); } diff --git a/framework/core/src/Extend/NotificationType.php b/framework/core/src/Extend/NotificationType.php index e4558ef26..303b3db4a 100644 --- a/framework/core/src/Extend/NotificationType.php +++ b/framework/core/src/Extend/NotificationType.php @@ -1,6 +1,6 @@ class; diff --git a/framework/core/src/Extend/Permission.php b/framework/core/src/Extend/Permission.php index 0a8e99529..662c76c1b 100644 --- a/framework/core/src/Extend/Permission.php +++ b/framework/core/src/Extend/Permission.php @@ -1,8 +1,7 @@ permission); @@ -45,7 +44,7 @@ class Permission implements ExtenderInterface } ); - $extender->extend($app); + $extender->extend($container); } foreach ($this->grant as $callback) { diff --git a/framework/core/src/Extend/PostType.php b/framework/core/src/Extend/PostType.php index df77ccb78..97d051698 100644 --- a/framework/core/src/Extend/PostType.php +++ b/framework/core/src/Extend/PostType.php @@ -1,6 +1,6 @@ class = $class; } - public function extend(Application $app) + public function extend(Container $container) { Post::addType($this->class); } diff --git a/framework/core/src/Extend/Relationship.php b/framework/core/src/Extend/Relationship.php index de16a6724..88d99e355 100644 --- a/framework/core/src/Extend/Relationship.php +++ b/framework/core/src/Extend/Relationship.php @@ -1,6 +1,6 @@ child = $child; } - public function extend(Application $app) + public function extend(Container $container) { $parent = $this->parent; diff --git a/framework/core/src/Extend/SerializeAttributes.php b/framework/core/src/Extend/SerializeAttributes.php index d359ef1c6..e3d314889 100644 --- a/framework/core/src/Extend/SerializeAttributes.php +++ b/framework/core/src/Extend/SerializeAttributes.php @@ -1,7 +1,6 @@ callback = $callback; } - public function extend(Application $app) + public function extend(Container $container) { - $app['events']->listen('Flarum\Api\Events\SerializeAttributes', function ($event) { + $container->make('events')->listen('Flarum\Api\Events\SerializeAttributes', function ($event) { if ($event->serializer instanceof $this->serializer) { call_user_func_array($this->callback, [&$event->attributes, $event->model, $event->serializer]); } diff --git a/framework/core/src/Extend/SerializeRelationship.php b/framework/core/src/Extend/SerializeRelationship.php index e5c94a255..3d52e0ea7 100644 --- a/framework/core/src/Extend/SerializeRelationship.php +++ b/framework/core/src/Extend/SerializeRelationship.php @@ -1,6 +1,6 @@ child = $child; } - public function extend(Application $app) + public function extend(Container $container) { $parent = $this->parent;