addRendererService(string $name, string $renderer) Adds a service as a fragment renderer. Parameters string $name The service name string $renderer The render service id
string getHost() Returns the host name. This method can read the client host name from the "X-Forwarded-Host" header when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-Host" header must contain the client host name. If your reverse proxy uses a different header name than "X-Forwarded-Host", configure it via "setTrustedHeaderName()" with the "client-host" key. Return Value string Exceptions UnexpectedValueException when the host name is invalid
string parse(string $controller) Converts a short notation a:b:c to a class::method. Parameters string $controller A short notation controller (a:b:c) Return Value string A string in the class::method notation Exceptions InvalidArgumentException when the specified bundle is not enabled or the controller cannot be found
static cutInternals($obj, array $a, Stub $stub, $isNested) Parameters $obj array $a Stub $stub $isNested
static castCurl($h, array $a, Stub $stub, $isNested) Parameters $h array $a Stub $stub $isNested
string getUrl() Returns the URL of the repository. Return Value string The URL of the repository
bool hasSurrogateCapability(Request $request) Checks that at least one surrogate has Surrogate capability. Parameters Request $request A Request instance Return Value bool true if one surrogate has Surrogate capability, false otherwise
class ControllerNameParser ControllerNameParser converts controller from the short notation a:b:c (BlogBundle:Post:index) to a fully-qualified class::method string (Bundle\BlogBundle\Controller\PostController::indexAction). Methods __construct(KernelInterface $kernel) Constructor. string parse(string $controller) Converts a short notation a:b:c to a class::method. string build(string $controller) Converts a class::method notation to a short one (a:b:c). Details
ResponseCacheStrategyInterface createCacheStrategy() Returns a new cache strategy instance. Return Value ResponseCacheStrategyInterface A ResponseCacheStrategyInterface instance
Profile read(string $token) Reads data associated with the given token. The method returns false if the token does not exist in the storage. Parameters string $token A token Return Value Profile The profile associated with token
Page 41 of 787