From 93ed2edcf327b535366feef5ba21288bc909ad0a Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 10 Apr 2026 18:59:37 +0530 Subject: [PATCH] Remove duplicate publisherForStatsResources from cli.php Already defined in init/resources.php which is loaded by init.php before cli.php runs. No need to redefine. --- app/cli.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/cli.php b/app/cli.php index 73908510d9..77d4957853 100644 --- a/app/cli.php +++ b/app/cli.php @@ -6,7 +6,6 @@ use Appwrite\Event\Certificate; use Appwrite\Event\Delete; use Appwrite\Event\Event; use Appwrite\Event\Func; -use Appwrite\Event\Publisher\StatsResources as StatsResourcesPublisher; use Appwrite\Event\Publisher\Usage as UsagePublisher; use Appwrite\Platform\Appwrite; use Appwrite\Runtimes\Runtimes; @@ -253,10 +252,6 @@ $container->set('publisherForUsage', fn (Publisher $publisher) => new UsagePubli $publisher, new Queue(System::getEnv('_APP_STATS_USAGE_QUEUE_NAME', Event::STATS_USAGE_QUEUE_NAME)) ), ['publisher']); -$container->set('publisherForStatsResources', fn (Publisher $publisher) => new StatsResourcesPublisher( - $publisher, - new Queue(System::getEnv('_APP_STATS_RESOURCES_QUEUE_NAME', Event::STATS_RESOURCES_QUEUE_NAME)) -), ['publisher']); $container->set('queueForFunctions', function (Publisher $publisher) { return new Func($publisher); }, ['publisher']);