Skip to content

v1.1.0 — Symfony Web Profiler integration

Choose a tag to compare

@gulaandrij gulaandrij released this 07 Jun 18:54
· 7 commits to main since this release

Adds Symfony Web Profiler integration.

What's new

When kernel.debug is true the bundle now:

  • Registers a SheetsCollector (extending AbstractDataCollector).
  • Wraps every named SheetsService with TraceableSheetsService — 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

  • SheetsService is no longer final so the traceable subclass can extend it.
  • Internal cross-method calls (readAssocreadRaw, listSheets / findSheetNameByIdlistSheetsWithIds) 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.1

Full CHANGELOG.