function
Global
/
abort_unless
You are viewing an older version of the documentation. For the latest, please visit master documentation.
abort_unless
abort_unless ( ) : void
Throw an HttpException with the given data unless the given condition is true.
Parameters
- $boolean bool
- $code Symfony\...\Response|Responsable |int
- $message string
- $headers array