mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11784] Remove naming redundancy for event listeners
PHPBB3-11784
This commit is contained in:
parent
585f692e31
commit
65d8cd6302
14 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,6 @@ class phpbb_event_extension_subscriber_loader
|
|||
$finder = $this->extension_manager->get_finder();
|
||||
$subscriber_classes = $finder
|
||||
->extension_directory('/event')
|
||||
->suffix('listener')
|
||||
->core_path('event/')
|
||||
->get_classes();
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class phpbb_template_twig_node_event extends Twig_Node
|
|||
{
|
||||
$compiler->addDebugInfo($this);
|
||||
|
||||
$location = $this->listener_directory . $this->getNode('expr')->getAttribute('name') . '_listener';
|
||||
$location = $this->listener_directory . $this->getNode('expr')->getAttribute('name');
|
||||
|
||||
foreach ($this->environment->get_phpbb_extensions() as $ext_namespace => $ext_path)
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!defined('IN_PHPBB'))
|
|||
*/
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
class phpbb_ext_foo_bar_event_permission_listener implements EventSubscriberInterface
|
||||
class phpbb_ext_foo_bar_event_permission implements EventSubscriberInterface
|
||||
{
|
||||
static public function getSubscribedEvents()
|
||||
{
|
Loading…
Add table
Reference in a new issue