mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
040ce6e335
EVENT_START and EVENT_TASK were each constructing `new Http($swoole, 'UTC')` purely as a vehicle to reach DI -- never configuring routing, never calling ->run(). Now that the Swoole adapter exposes resources() directly, the Http instance is no longer needed: the resources container we passed into the Server constructor is already in scope as $container. Drop the throwaway Http construction, pass $container straight through, and update createDatabase() to take Container instead of Http to match. Also rename $swooleAdapter to $swoole for consistency with the rest of the file. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>