Skip to content

Reference

phil/circuit-breaker-bundle

Classes

ClassRole
Phil\CircuitBreakerBundle\PhilCircuitBreakerBundleThe bundle, its configuration and its services; OVERRIDE_TAG, CIRCUIT_KEYS, HTTP_CLIENT_PREFIX
Phil\CircuitBreakerBundle\Infrastructure\Configuration\ConfiguredCircuitBreakersCircuitBreakers from the configuration; validate() at load time
Phil\CircuitBreakerBundle\Infrastructure\Cache\CacheCircuitStateStoreThe states in a PSR-6 pool, under PREFIX
Phil\CircuitBreakerBundle\Infrastructure\HttpClient\CircuitBreakingHttpClientAn HTTP client behind its circuit
Phil\CircuitBreakerBundle\Infrastructure\HttpClient\Exception\CircuitOpenA request not sent because its circuit is open; a transport exception
Phil\CircuitBreakerBundle\Infrastructure\Profiler\CircuitBreakerDataCollectorThe state of each circuit in the profiler: circuits(), trippedCount(), TEMPLATE
Phil\CircuitBreakerBundle\Infrastructure\Profiler\CircuitsReportWhat one request collected

Services, tag and parameter

IdRegistered whenWhat it is
Phil\CircuitBreaker\CircuitBreakersa circuit is declaredThe breakers by key, to inject where a call is guarded
Phil\CircuitBreaker\CircuitOverridesa circuit is declaredThe tagged overrides, asked together
Phil\CircuitBreakerBundle\Infrastructure\Cache\CacheCircuitStateStorea circuit is declared and state_store is nullThe default store
phil_circuit_breaker.http_client.<key>a circuit has http_clientThe decorator of that client
Phil\CircuitBreakerBundle\Infrastructure\Profiler\CircuitBreakerDataCollectora circuit is declaredThe collector, tagged data_collector with the id phil_circuit_breaker
tag phil_circuit_breaker.overridealwaysThe overrides; given by autoconfiguration to every CircuitOverride
parameter phil_circuit_breaker.circuit_keysalwaysThe keys of the declared circuits, a list of strings

Template

@PhilCircuitBreaker/profiler/collector.html.twig: the toolbar item — the circuits not closed out of all, each with its state — and the panel, a table of the circuits and their states.