PingController
class PingController (View source)
Unauthenticated liveness probe. Answers if the process can serve a request and checks nothing else, so it still reports ok while the database is down.
Disabled by default.
Deliberately does not extend BaseController, whose constructor connects to the database unconditionally - that would make this fail exactly when a liveness probe is most useful. Use /api/health for dependency status.
There is no constructor: the router passes request data (SymfonyRouter::process()) and PHP discards it, which suits an endpoint that reads nothing from the request.
Methods
Resolved lazily so tests can substitute settings without a constructor argument the router would have to supply.
No description
No description
Details
protected ConfigurationInterface
config()
Resolved lazily so tests can substitute settings without a constructor argument the router would have to supply.
void
run()
No description
Response
buildResponse()
No description