@@ -184,8 +184,8 @@ Option Type Description
184184======================= ======= ==========================================================================
185185**$persistentServices ** array Services that persist across requests and are not reset. Services not
186186 in this list are destroyed after each request to prevent state leakage.
187- Default: ``['autoloader', 'locator', 'exceptions', 'logger', 'timer ',
188- 'commands', ' codeigniter', 'superglobals', 'routes', 'cache'] ``
187+ Default: ``['autoloader', 'locator', 'exceptions', 'commands ',
188+ 'codeigniter', 'superglobals', 'routes', 'cache'] ``
189189**$garbageCollection ** bool Whether to force garbage collection after each request.
190190 ``true `` (default, recommended): Prevents memory leaks.
191191 ``false ``: Relies on PHP's automatic garbage collection.
@@ -197,18 +197,18 @@ Persistent Services
197197The ``$persistentServices `` array controls which services survive between requests.
198198The default configuration includes:
199199
200- ===================== ==========================================================================
201- Service Purpose
202- ===================== ==========================================================================
203- ``autoloader `` PSR-4 autoloading configuration. Safe to persist as class maps don't change.
204- ``locator `` File locator for finding framework files. Caches file paths for performance.
205- ``exceptions `` Exception handler. Stateless, safe to reuse.
206- ``commands `` CLI commands registry. Only used during worker startup.
207- ``codeigniter `` Main application instance. Orchestrates the request/response cycle.
208- ``superglobals `` Superglobals wrapper. Properly isolated per request internally.
209- ``routes `` Router configuration. Route definitions don't change between requests.
210- ``cache `` Cache service. Maintains connections to cache backends (Redis, Memcached).
211- ===================== ==========================================================================
200+ ================ ==========================================================================
201+ Service Purpose
202+ ================ ==========================================================================
203+ ``autoloader `` PSR-4 autoloading configuration. Safe to persist as class maps don't change.
204+ ``locator `` File locator for finding framework files. Caches file paths for performance.
205+ ``exceptions `` Exception handler. Stateless, safe to reuse.
206+ ``commands `` CLI commands registry. Only used during worker startup.
207+ ``codeigniter `` Main application instance. Orchestrates the request/response cycle.
208+ ``superglobals `` Superglobals wrapper. Properly isolated per request internally.
209+ ``routes `` Router configuration. Route definitions don't change between requests.
210+ ``cache `` Cache service. Maintains connections to cache backends (Redis, Memcached).
211+ ================ ==========================================================================
212212
213213.. warning :: Adding services to ``$persistentServices`` without understanding their
214214 state management can cause data leakage between requests. Only persist services
@@ -304,4 +304,4 @@ Database connections are automatically managed:
304304- Connections persist across requests for performance
305305- Connections are validated at the start of each request
306306- Failed connections are automatically re-established
307- - Uncommitted transactions trigger a warning and reconnection to ensure clean state
307+ - Uncommitted transactions are automatically rolled back with a warning logged
0 commit comments