Skip to content

Commit 90b7249

Browse files
committed
feat: migrate resource management to utopia-php/di container
This backports the DI container integration from the 0.34.x branch to 0.33.x: - Replace internal array-based resource management with Utopia\DI\Container - Update constructor to accept optional Container parameter - Add getContainer() and getRequestContainer() methods - Change setResource() from static to instance method - Update getResource() and getResources() to use Container scope - Create request-scoped containers for each request lifecycle - Update all internal calls to use new container-based API - Remove static resource callbacks array - Update adapters to remove static Http::setResource() calls - Update tests to use container-based approach BREAKING CHANGE: Http::setResource() is now an instance method instead of static. Users should now call $http->setResource() instead of Http::setResource().
1 parent 0f3bf23 commit 90b7249

File tree

6 files changed

+329
-260
lines changed

6 files changed

+329
-260
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"require": {
2525
"php": ">=8.3",
2626
"utopia-php/compression": "0.1.*",
27+
"utopia-php/di": "0.3.*",
2728
"utopia-php/telemetry": "0.2.*",
2829
"utopia-php/validators": "0.2.*"
2930
},

0 commit comments

Comments
 (0)