mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
Merge remote-tracking branch 'VSEphpbb/ticket/11784' into develop
# By Matt Friedman # Via Matt Friedman * VSEphpbb/ticket/11784: [ticket/11784] Remove naming redundancy for event listeners
This commit is contained in:
commit
c54f1faf59
@ -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…
x
Reference in New Issue
Block a user