SvnCommit::getDate()

string getDate() Returns the date of the commit. Return Value string The commit date

SvnCommit

class SvnCommit An SVN commit. Methods __construct(SimpleXMLElement $svnInfo) Creates a commit from the given "svn info" data. string getRevision() Returns the revision of the commit. string getAuthor() Returns the author of the commit. string getDate() Returns the date of the commit. Details __construct(SimpleXMLElement $svnInfo) Creates a commit from the given "svn info" data. Parameters SimpleXMLElement $svnInfo The XML res

SvnCommit::getRevision()

string getRevision() Returns the revision of the commit. Return Value string The revision of the commit

SurrogateListener::onKernelResponse()

onKernelResponse(FilterResponseEvent $event) Filters the Response. Parameters FilterResponseEvent $event A FilterResponseEvent instance

SurrogateListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

SurrogateListener

class SurrogateListener implements EventSubscriberInterface SurrogateListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for Surrogates. Methods __construct(SurrogateInterface $surrogate = null) Constructor. onKernelResponse(FilterResponseEvent $event) Filters the Response. static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details __construct(SurrogateInterface $

SurrogateInterface::needsParsing()

bool needsParsing(Response $response) Checks that the Response needs to be parsed for Surrogate tags. Parameters Response $response A Response instance Return Value bool true if the Response needs to be parsed, false otherwise

SurrogateInterface::process()

Response process(Request $request, Response $response) Replaces a Response Surrogate tags with the included resource content. Parameters Request $request A Request instance Response $response A Response instance Return Value Response

SurrogateInterface::renderIncludeTag()

string renderIncludeTag(string $uri, string $alt = null, bool $ignoreErrors = true, string $comment = '') Renders a Surrogate tag. Parameters string $uri A URI string $alt An alternate URI bool $ignoreErrors Whether to ignore errors or not string $comment A comment to add as an esi:include tag Return Value string

SurrogateInterface::handle()

string handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors) Handles a Surrogate from the cache. Parameters HttpCache $cache An HttpCache instance string $uri The main URI string $alt An alternative URI bool $ignoreErrors Whether to ignore errors or not Return Value string Exceptions RuntimeException Exception