Beispiel #1
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Lock\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Lock\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Lock\\Listeners\\PersistData');
     $events->subscribe('Flarum\\Lock\\Listeners\\NotifyDiscussionLocked');
     $events->subscribe('Flarum\\Lock\\Listeners\\ConfigurePermissions');
 }
Beispiel #2
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Approval\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Approval\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Approval\\Listeners\\HideUnapprovedContent');
     $events->subscribe('Flarum\\Approval\\Listeners\\UnapproveNewContent');
     $events->subscribe('Flarum\\Approval\\Listeners\\ApproveContent');
 }
Beispiel #3
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Sticky\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Sticky\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Sticky\\Listeners\\PersistData');
     $events->subscribe('Flarum\\Sticky\\Listeners\\PinStickiedDiscussionsToTop');
     $events->subscribe('Flarum\\Sticky\\Listeners\\NotifyDiscussionStickied');
 }
Beispiel #4
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Subscriptions\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Subscriptions\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Subscriptions\\Listeners\\PersistSubscriptionData');
     $events->subscribe('Flarum\\Subscriptions\\Listeners\\NotifyNewPosts');
     $events->subscribe('Flarum\\Subscriptions\\Listeners\\HideIgnoredDiscussions');
 }
Beispiel #5
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Likes\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Likes\\Listeners\\AddModelRelationship');
     $events->subscribe('Flarum\\Likes\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Likes\\Listeners\\PersistData');
     $events->subscribe('Flarum\\Likes\\Listeners\\NotifyPostLiked');
 }
Beispiel #6
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Tags\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Tags\\Listeners\\AddModelRelationship');
     $events->subscribe('Flarum\\Tags\\Listeners\\ConfigureDiscussionPermissions');
     $events->subscribe('Flarum\\Tags\\Listeners\\ConfigureTagPermissions');
     $events->subscribe('Flarum\\Tags\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Tags\\Listeners\\PersistData');
     $events->subscribe('Flarum\\Tags\\Listeners\\LogDiscussionTagged');
     $events->subscribe('Flarum\\Tags\\Listeners\\UpdateTagMetadata');
     $events->subscribe('Flarum\\Tags\\Listeners\\AddTagGambit');
 }
Beispiel #7
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('S12g\\ImageAttachments\\Listeners\\AddClientAssets');
     $events->listen(RegisterApiRoutes::class, function (RegisterApiRoutes $event) {
         $event->post('/s12g/image_attachments', 's12g.imageattachments.upload', 'S12g\\ImageAttachments\\UploadAction');
     });
 }
 /**
  * @param CommentForm  $commentForm
  * @param Dispatcher   $events
  */
 public function __construct(CommentForm $commentForm, Dispatcher $events)
 {
     $this->beforeFilter('auth', ['only' => ['update', 'trash', 'approve']]);
     $this->commentForm = $commentForm;
     $events->subscribe('FIIP\\Comments\\CommentEventHandler');
     Comments::setDispatcher($events);
 }
 /**
  * Bootstrap the application services.
  * @param Dispatcher $dispatcher
  */
 public function boot(Dispatcher $dispatcher)
 {
     // Merge config
     $this->mergeConfigFrom(base_path('vendor/aginev/login-activity/config/login-activity.php'), 'login-activity');
     // Publish config
     $this->publishes([base_path('vendor/aginev/login-activity/config/login-activity.php') => config_path('login-activity.php')], 'config');
     // Publish migrations
     $this->publishes([base_path('vendor/aginev/login-activity/migrations/create_user_login_activities_table.php') => database_path('/migrations/' . date('Y_m_d_His', time()) . '_create_user_login_activities_table.php')], 'migrations');
     // Register event subscriber
     $dispatcher->subscribe(LoginActivityListener::class);
 }
Beispiel #10
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Mentions\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Mentions\\Listeners\\AddModelRelationships');
     $events->subscribe('Flarum\\Mentions\\Listeners\\AddApiRelationships');
     $events->subscribe('Flarum\\Mentions\\Listeners\\AddUserMentionsFormatter');
     $events->subscribe('Flarum\\Mentions\\Listeners\\AddPostMentionsFormatter');
     $events->subscribe('Flarum\\Mentions\\Listeners\\UpdateUserMentionsMetadata');
     $events->subscribe('Flarum\\Mentions\\Listeners\\UpdatePostMentionsMetadata');
 }
 /**
  * Setup and boot EventDispatcher.
  *
  * @return  \Illuminate\Contracts\Events\Dispatcher
  */
 protected function makeDispatcher()
 {
     $events = new Dispatcher();
     foreach ($this->listen as $event => $listeners) {
         foreach ($listeners as $listener) {
             $events->listen($event, $listener);
         }
     }
     foreach ($this->subscribe as $subscriber) {
         $events->subscribe($subscriber);
     }
     return $events;
 }
 public function listen(Dispatcher $events)
 {
     $events->subscribe(Listeners\AddTranslateJs::class);
 }
Beispiel #13
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Markdown\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Markdown\\Listeners\\AddMarkdownFormatter');
 }
Beispiel #14
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Emoji\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Emoji\\Listeners\\AddEmoticons');
 }
Beispiel #15
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\BBCode\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\BBCode\\Listeners\\AddBBCodeFormatter');
 }
Beispiel #16
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('S12g\\NoSlug\\Listeners\\AddClientAssets');
 }
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Recaptcha\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Recaptcha\\Listeners\\AddApiAttributes');
 }
Beispiel #18
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe(__NAMESPACE__ . '\\Listener');
 }
Beispiel #19
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Akismet\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Akismet\\Listeners\\ValidatePost');
 }
Beispiel #20
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Themer\\Listeners\\AddClientAssets');
     $events->subscribe('Themer\\Listeners\\ChangeLayout');
 }
Beispiel #21
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Suspend\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Suspend\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Suspend\\Listeners\\PersistData');
 }
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Classifieds\\Listeners');
     // Who knows, we'll figure this out eventually :P
 }
Beispiel #23
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Reports\\Listeners\\AddClientAssets');
     $events->subscribe('Flarum\\Reports\\Listeners\\AddApiAttributes');
     $events->subscribe('Flarum\\Reports\\Listeners\\AddModelRelationship');
 }
Beispiel #24
0
 public function listen(Dispatcher $events)
 {
     $events->subscribe('Flarum\\Github\\Listeners\\AddClientAssets');
 }
Beispiel #25
0
 /**
  * Register an event subscriber with the dispatcher.
  *
  * @param object|string $subscriber
  * @return void 
  * @static 
  */
 public static function subscribe($subscriber)
 {
     \Illuminate\Events\Dispatcher::subscribe($subscriber);
 }
 public function listen(Dispatcher $events)
 {
     $events->subscribe('fileupload\\Listeners\\AddClientAssets');
     $events->subscribe('fileupload\\Listeners\\AddApiAttributes');
 }