v1.1.0 — Symfony Web Profiler integration
Adds Symfony Web Profiler integration.
What's new
When kernel.debug is true the bundle now:
- Registers a
SheetsCollector(extendingAbstractDataCollector). - Wraps every named
SheetsServicewithTraceableSheetsService— a subclass that records each call (service binding, method, spreadsheet ID, sheet, range, duration in ms, error if any) into the collector. - Renders a Web Profiler toolbar item with total call count + total time, and a panel listing every call with status badges.
In production (kernel.debug = false) neither the decorator nor the collector are wired — zero overhead.
Behaviour notes
SheetsServiceis no longerfinalso the traceable subclass can extend it.- Internal cross-method calls (
readAssoc→readRaw,listSheets/findSheetNameById→listSheetsWithIds) now go through private helpers so the trace fires exactly once per public call.
No public API changes; safe to upgrade from 1.0.x without any code changes.
Install / upgrade
composer require gulaandrij/google-sheets-bundle:^1.1Full CHANGELOG.