Classes
ApiController
extends AbstractController
in package
Endpoint controller for Incoming XML bounce, fetch, and target /api routes
Tags
Table of Contents
- $logger : LoggerInterface
- Pass in the system logger interface
- $params : ParameterBagInterface
- Application parameters from config/*.yaml
- __construct() : mixed
- ApiController constructor.
- healthApiAction() : mixed
- Provides /api/health endpoint for checking server and database health
- finishController() : mixed
Properties
$logger
Pass in the system logger interface
private
LoggerInterface
$logger
$params
Application parameters from config/*.yaml
private
ParameterBagInterface
$params
Methods
__construct()
ApiController constructor.
public
__construct(ParameterBagInterface $params, LoggerInterface $logger[, Profiler|null $profiler = null ]) : mixed
Parameters
- $params : ParameterBagInterface
- $logger : LoggerInterface
- $profiler : Profiler|null = null
Return values
mixed —healthApiAction()
Provides /api/health endpoint for checking server and database health
public
healthApiAction(Request $request) : mixed
Parameters
- $request : Request
Tags
Return values
mixed —finishController()
private
finishController(Agent $agent[, null $exception = null ]) : mixed
Parameters
- $agent : Agent
- $exception : null = null