Bridge\Doctrine\DependencyInjection\CompilerPass

Classes DoctrineValidationPass Registers additional validators RegisterEventListenersAndSubscribersPass Registers event listeners and subscribers to the available doctrine connections. RegisterMappingsPass Base class for the doctrine bundles to provide a compiler pass class that helps to register doctrine mappings.

HeaderBag::getDate()

null|DateTime getDate(string $key, DateTime $default = null) Returns the HTTP header value converted to a date. Parameters string $key The parameter key DateTime $default The default value Return Value null|DateTime The parsed DateTime or the default value if the header does not exist Exceptions RuntimeException When the HTTP header is not parseable

RequestContext::setScheme()

RequestContext setScheme(string $scheme) Sets the HTTP scheme. Parameters string $scheme The HTTP scheme Return Value RequestContext The current instance, implementing a fluent interface

EsiListener deprecated

class EsiListener extends SurrogateListener deprecated since version 2.6, to be removed in 3.0. Use SurrogateListener instead EsiListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for ESI. Methods __construct(SurrogateInterface $surrogate = null) Constructor. from SurrogateListener onKernelResponse(FilterResponseEvent $event) Filters the Response. from SurrogateListener static array getSubscribedEvents() Returns an array of event names this sub

FormFactory::createBuilder()

FormBuilderInterface createBuilder(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form builder. Parameters string $type The type of the form mixed $data The initial data array $options The options Return Value FormBuilderInterface The form builder Exceptions InvalidOptionsException if any given option is not applicable to the given type

BaseDateTimeTransformer

class BaseDateTimeTransformer implements DataTransformerInterface Methods __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. Details __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. Parameters string $inputTimezone The name of the input timezone string $outputTimezone The name of the output timezone Exceptions UnexpectedTypeException if a timezone is not a string InvalidAr

UnexpectedTypeException

class UnexpectedTypeException extends InvalidArgumentException Thrown when a method argument had an unexpected type. Methods __construct($value, $expectedType) Details __construct($value, $expectedType) Parameters $value $expectedType

AutowireServiceResource

class AutowireServiceResource implements SelfCheckingResourceInterface, Serializable Methods __construct($class, $path, array $autowiringMetadata) bool isFresh(int $timestamp) Returns true if the resource has not been updated since the given timestamp. string __toString() Returns a string representation of the Resource. serialize() unserialize($serialized) getResource() deprecated Details __construct($class, $path, array $autowi

PdoSessionHandler::write()

write($sessionId, $data) {@inheritdoc} Parameters $sessionId $data

MutableAclProvider::propertyChanged()

propertyChanged(mixed $sender, string $propertyName, mixed $oldValue, mixed $newValue) Implementation of PropertyChangedListener This allows us to keep track of which values have been changed, so we don't have to do a full introspection when ->updateAcl() is called. Parameters mixed $sender string $propertyName mixed $oldValue mixed $newValue Exceptions InvalidArgumentException