ContextListener

class ContextListener implements ListenerInterface ContextListener manages the SecurityContext persistence through a session. Methods __construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null) handle(GetResponseEvent $event) Reads the Security Token from the session. onKernelResponse(FilterResponseEvent $event) Writes

ContextInterface::isSecure()

bool isSecure() Checks whether the request is secure or not. Return Value bool true if the request is secure, false otherwise

ContextInterface::getBasePath()

string getBasePath() Gets the base path. Return Value string The base path

ContextInterface

interface ContextInterface Holds information about the current request. Methods string getBasePath() Gets the base path. bool isSecure() Checks whether the request is secure or not. Details string getBasePath() Gets the base path. Return Value string The base path bool isSecure() Checks whether the request is secure or not. Return Value bool true if the request is secure, false otherwise

ContextErrorException

class ContextErrorException extends ErrorException Error Exception with Variable Context. Methods __construct($message, $code, $severity, $filename, $lineno, $context = array()) array getContext() Details __construct($message, $code, $severity, $filename, $lineno, $context = array()) Parameters $message $code $severity $filename $lineno $context array getContext() Return Value array

ContainerInterface::setParameter()

setParameter(string $name, mixed $value) Sets a parameter. Parameters string $name The parameter name mixed $value The parameter value

ContainerInterface::initialized()

bool initialized(string $id) Check for whether or not a service has been initialized. Parameters string $id Return Value bool true if the service has been initialized, false otherwise

ContainerInterface::hasParameter()

bool hasParameter(string $name) Checks if a parameter exists. Parameters string $name The parameter name Return Value bool The presence of parameter in container

ContainerInterface::has()

bool has(string $id) Returns true if the given service is defined. Parameters string $id The service identifier Return Value bool true if the service is defined, false otherwise

ContainerInterface::getParameter()

mixed getParameter(string $name) Gets a parameter. Parameters string $name The parameter name Return Value mixed The parameter value Exceptions InvalidArgumentException if the parameter is not defined