Skip to content

Commit 716411d

Browse files
committed
Add helpful docblock to listener
1 parent b871beb commit 716411d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

skeleton/event/main_listener.php.twig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2020
*/
2121
class main_listener implements EventSubscriberInterface
2222
{
23+
/**
24+
* Map phpBB core events to the listener methods that should handle those events
25+
*
26+
* @return array
27+
*/
2328
public static function getSubscribedEvents()
2429
{
2530
return [
@@ -34,7 +39,7 @@ class main_listener implements EventSubscriberInterface
3439
'core.display_forums_modify_template_vars' => 'display_forums_modify_template_vars',
3540
{% endif %}
3641
{% if COMPONENT.permissions %}
37-
'core.permissions' => 'add_permissions',
42+
'core.permissions' => 'add_permissions',
3843
{% endif %}
3944
];
4045
}

0 commit comments

Comments
 (0)