mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +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();
|
$finder = $this->extension_manager->get_finder();
|
||||||
$subscriber_classes = $finder
|
$subscriber_classes = $finder
|
||||||
->extension_directory('/event')
|
->extension_directory('/event')
|
||||||
->suffix('listener')
|
|
||||||
->core_path('event/')
|
->core_path('event/')
|
||||||
->get_classes();
|
->get_classes();
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class phpbb_template_twig_node_event extends Twig_Node
|
||||||
{
|
{
|
||||||
$compiler->addDebugInfo($this);
|
$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)
|
foreach ($this->environment->get_phpbb_extensions() as $ext_namespace => $ext_path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ if (!defined('IN_PHPBB'))
|
||||||
*/
|
*/
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
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()
|
static public function getSubscribedEvents()
|
||||||
{
|
{
|
Loading…
Add table
Reference in a new issue