HttpException

class HttpException extends RuntimeException implements HttpExceptionInterface HttpException. Methods __construct($statusCode, $message = null, Exception $previous = null, array $headers = array(), $code) int getStatusCode() Returns the status code. array getHeaders() Returns response headers. setHeaders(array $headers) Set response headers. Details __construct($statusCode, $message = null, Exception $previous = null, array $headers = arra

HttpFoundationExtension

class HttpFoundationExtension extends Twig_Extension Twig extension for the Symfony HttpFoundation component. Methods __construct(RequestStack $requestStack, RequestContext $requestContext = null) getFunctions() {@inheritdoc} string generateAbsoluteUrl(string $path) Returns the absolute URL for the given absolute or relative path. string generateRelativePath(string $path) Returns a relative path based on the current Request. string getName() Returns the name of the e

HttpCache::terminate()

terminate(Request $request, Response $response) Terminates a request/response cycle. Should be called after sending the response and before shutting down the kernel. Parameters Request $request A Request instance Response $response A Response instance

HttpDigestFactory::addConfiguration()

addConfiguration(NodeDefinition $node) Parameters NodeDefinition $node

HttpDigestFactory

class HttpDigestFactory implements SecurityFactoryInterface HttpDigestFactory creates services for HTTP digest authentication. Methods array create(ContainerBuilder $container, string $id, array $config, string $userProvider, string $defaultEntryPoint) Configures the container services required to use the authentication listener. string getPosition() Defines the position at which the provider is called. string getKey() Defines the configuration key used to reference the provide

HttpDigestFactory::create()

array create(ContainerBuilder $container, string $id, array $config, string $userProvider, string $defaultEntryPoint) Configures the container services required to use the authentication listener. Parameters ContainerBuilder $container string $id The unique id of the firewall array $config The options array for the listener string $userProvider The service id of the user provider string $defaultEntryPoint Return Value array containing three values: - the provider id - the lis

HttpCache::handle()

Response handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) Handles a Request to convert it to a Response. When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance. Parameters Request $request A Request instance int $type The type of the request (one of HttpKernelInterface::MASTERREQUEST or HttpKernelInterface::SUBREQUEST) bool $catch Whether to catch exceptions or not Re

HttpCache::getSurrogate()

SurrogateInterface getSurrogate() Gets the Surrogate instance. Return Value SurrogateInterface A Surrogate instance Exceptions LogicException

HttpCache::getLog()

string getLog() Returns a log message for the events of the last request processing. Return Value string A log message

HttpCache::getRequest()

Request getRequest() Gets the Request instance associated with the master request. Return Value Request A Request instance