Accepted
The bundle provides a ProfilerController that renders detailed Contentful API call info in the Symfony Web Profiler. However:
dev environmentProfilerController unconditionally would force a hard Twig runtime dependency and cause container build failures in prod or in apps without TwigA ProfilerControllerPass (implementing CompilerPassInterface) checks at container compile time whether both the profiler and twig services are registered. Only if both are present does it add the contentful.profiler_controller service definition with the controller.service_arguments tag.
This is the idiomatic Symfony pattern for optional framework integrations (used by Doctrine, SwiftMailer, etc.).
require-dev dependency (not require)dev stack is presentprod or Twig-less apps, the controller is simply absent — no runtime errorscontentful.profiler_controller directly must be aware it may not exist in all environmentsHow can I help you explore Laravel packages today?