Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Feb 19, 2024
1 parent f712c63 commit e9d0852
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use GP_Translation;
use GP_Translation_Set;

class Translation_Listener {
class Stats_Listener {
const ACTION_CREATE = 'create';
const ACTION_APPROVE = 'approve';
const ACTION_REJECT = 'reject';
Expand Down
8 changes: 4 additions & 4 deletions wporg-gp-translation-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function () {
require_once __DIR__ . '/includes/event.php';
require_once __DIR__ . '/includes/route.php';
require_once __DIR__ . '/includes/stats-calculator.php';
require_once __DIR__ . '/includes/translation-listener.php';
require_once __DIR__ . '/includes/stats-listener.php';

GP::$router->add( '/events?', array( 'Wporg\TranslationEvents\Route', 'events_list' ) );
GP::$router->add( '/events/new', array( 'Wporg\TranslationEvents\Route', 'events_create' ) );
Expand All @@ -363,8 +363,8 @@ function () {
GP::$router->add( '/events/my-events', array( 'Wporg\TranslationEvents\Route', 'events_user_created' ) );
GP::$router->add( '/events/([a-z0-9_-]+)', array( 'Wporg\TranslationEvents\Route', 'events_details' ) );

$active_events_cache = new Active_Events_Cache();
$wporg_gp_translation_events_listener = new Translation_Listener( $active_events_cache );
$wporg_gp_translation_events_listener->start();
$active_events_cache = new Active_Events_Cache();
$stats_listener = new Stats_Listener( $active_events_cache );
$stats_listener->start();
}
);

0 comments on commit e9d0852

Please sign in to comment.