BinaryFileResponse::create()

static Response create(SplFileInfo|string $file = null, int $status = 200, array $headers = array(), bool $public = true, null|string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true) Parameters SplFileInfo|string $file The file to stream int $status The response status code array $headers An array of response headers bool $public Files are public by default null|string $contentDisposition The type of Content-Disposition to set automat

Application::setTerminalDimensions()

Application setTerminalDimensions(int $width, int $height) Sets terminal dimensions. Can be useful to force terminal dimensions for functional tests. Parameters int $width The width int $height The height Return Value Application The current application

MergeBuilder::allowUnset()

MergeBuilder allowUnset(bool $allow = true) Sets whether the node can be unset. Parameters bool $allow Return Value MergeBuilder

RedirectableUrlMatcher

class RedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInterface Constants REQUIREMENT_MATCH REQUIREMENT_MISMATCH ROUTE_MATCH Methods __construct(RouteCollection $routes, RequestContext $context) Constructor. from UrlMatcher setContext(RequestContext $context) Sets the request context. from UrlMatcher RequestContext getContext() Gets the request context. from UrlMatcher array match(string $pathinfo) Tries to match a URL path with a set of

SessionInterface::getMetadataBag()

MetadataBag getMetadataBag() Gets session meta. Return Value MetadataBag

ContainerAware deprecated

class ContainerAware implements ContainerAwareInterface deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead. A simple implementation of ContainerAwareInterface. Methods setContainer(ContainerInterface $container = null) Sets the container. Details setContainer(ContainerInterface $container = null) Sets the container. Parameters ContainerInterface $container A ContainerInterface instance or null

MessageCatalogueInterface::has()

bool has(string $id, string $domain = 'messages') Checks if a message has a translation. Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

FormTypeHttpFoundationExtension

class FormTypeHttpFoundationExtension extends AbstractTypeExtension Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the view. from AbstractTypeExtension finishView(FormView $view, FormInterface $form, array $options) Finishes the view. from AbstractTypeExtension configureOptions(OptionsResolver $resolver) Configures the options for this type. from AbstractTypeExtension _

ContainerBuilder::addObjectResource()

ContainerBuilder addObjectResource(object $object) Adds the object class hierarchy as resources. Parameters object $object An object instance Return Value ContainerBuilder The current instance

NativeSessionStorage::getBag()

SessionBagInterface getBag(string $name) Gets a SessionBagInterface by name. Parameters string $name Return Value SessionBagInterface Exceptions InvalidArgumentException If the bag does not exist