Blame view

app/Providers/EventServiceProvider.php 2.4 KB
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  <?php
  
  namespace FootyRoom\Providers;
  
  use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
  
  class EventServiceProvider extends ServiceProvider
  {
      /**
       * The event listener mappings for the application.
       *
       * @var array
       */
      protected $listen = [
          /**
           * Forum posts.
           */
          'FootyRoom\Core\ForumPost\ForumPostPosted' => [
              'FootyRoom\Core\ForumCategory\IncrementPostCountWhenForumPostPosted',
              'FootyRoom\Core\User\IncrementPostCountWhenForumPostPosted',
          ],
  
          'FootyRoom\Core\ForumPost\Moved' => [
              'FootyRoom\Core\ForumCategory\AdjustPostCountWhenForumPostMoved',
          ],
  
          /**
           * Comments.
           */
          'FootyRoom\Core\Comment\CommentPosted' => [
              'FootyRoom\Core\User\IncrementCommentCountWhenCommentPosted',
              'FootyRoom\Core\Notification\NotifyWhenCommentPosted',
              // 'FootyRoom\Core\Prerender\PrerenderWhenCommentedOnMatch'
          ],
  
          'FootyRoom\Core\ForumPost\ForumPostCommentPosted' => [
              'FootyRoom\Core\Subscription\SubscribeToPostWhenCommentPostedInForum',
              'FootyRoom\Core\ForumPost\SetLastCommentWhenCommentPosted',
          ],
  
          'FootyRoom\Core\Comment\CommentEdited' => [
              'FootyRoom\Core\Comment\CreateRevisionWhenCommentEdited',
          ],
  
          'FootyRoom\Core\Comment\CommentApproved' => [
              'FootyRoom\Core\Discussion\IncrementCommentCount',
          ],
  
          'FootyRoom\Core\Comment\CommentRemoved' => [
              'FootyRoom\Core\Discussion\DecrementCommentCount',
              'FootyRoom\Core\Notification\UnnotifyWhenCommentRemoved',
              'FootyRoom\Core\Comment\Flag\ClearFlagsWhenCommentRemoved',
          ],
  
          /**
           * Predictor.
           */
          'FootyRoom\Core\Predictor\PredictionCreated' => [
              'FootyRoom\Core\Vote\CreateVoteWhenPredicted',
          ],
  
          'FootyRoom\Core\Predictor\PredictionStakeRaised' => [
              'FootyRoom\Queries\Predictor\PredictorProjector@whenPredictionStakeRaised',
          ],
  
          /**
           * Auth.
           */
          'auth.login' => [
              'FootyRoom\Listeners\AuthEventListener@newbornCheck',
              'FootyRoom\Listeners\AuthEventListener@recordLogin',
          ]
      ];
  
      /**
       * The event subscriber mappings for the application.
       *
       * @var array
       */
      protected $subscribe = [];
  }