File tree Expand file tree Collapse file tree 4 files changed +5
-25
lines changed Expand file tree Collapse file tree 4 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 13
13
* Class AdminNotificationFeedextends
14
14
* @package Magefan\Community\Model
15
15
*/
16
- class AdminNotificationFeedextends extends \Magento \AdminNotification \Model \Feed
16
+ class AdminNotificationFeed extends \Magento \AdminNotification \Model \Feed
17
17
{
18
18
/**
19
19
* @var \Magento\Backend\Model\Auth\Session
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class PredispathAdminActionControllerObserver implements ObserverInterface
35
35
* @param \Magefan\Blog\Model\Comment\Notification $commentNotification,
36
36
*/
37
37
public function __construct (
38
- \Magefan \Blog \Model \AdminNotificationFeedFactory $ feedFactory ,
38
+ \Magefan \Community \Model \AdminNotificationFeedFactory $ feedFactory ,
39
39
\Magento \Backend \Model \Auth \Session $ backendAuthSession ,
40
40
\Magefan \Blog \Model \Comment \Notification $ commentNotification
41
41
) {
@@ -54,10 +54,10 @@ public function __construct(
54
54
public function execute (\Magento \Framework \Event \Observer $ observer )
55
55
{
56
56
if ($ this ->_backendAuthSession ->isLoggedIn ()) {
57
+
57
58
$ feedModel = $ this ->_feedFactory ->create ();
58
- /* @var $feedModel \Magefan\Blog \Model\AdminNotificationFeed */
59
+ /* @var $feedModel \Magefan\Community \Model\AdminNotificationFeed */
59
60
$ feedModel ->checkUpdate ();
60
-
61
61
/** Check pending blog comments */
62
62
$ this ->commentNotification ->checkComments ();
63
63
}
Original file line number Diff line number Diff line change 7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Event/etc/events.xsd" >
9
9
<event name =" controller_action_predispatch" >
10
- <observer name =" magefan_blog_controller_action_predispatch" instance =" Magefan\Blog\Observer\PredispathAdminActionControllerObserver" />
11
- </event >
12
- <event name =" controller_action_postdispatch_blog_post_save" >
13
- <observer name =" magefan_blog_invalidate_cache" instance =" Magefan\Blog\Observer\InvalidateCache" />
14
- </event >
15
- <event name =" controller_action_postdispatch_blog_category_save" >
16
- <observer name =" magefan_blog_invalidate_cache" instance =" Magefan\Blog\Observer\InvalidateCache" />
10
+ <observer name =" magefan_community_controller_action_predispatch" instance =" Magefan\Community\Observer\PredispathAdminActionControllerObserver" />
17
11
</event >
18
12
</config >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments