Session

class Session implements SessionInterface, IteratorAggregate, Countable Session. Methods __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null) Constructor. bool start() Starts the session storage. bool has(string $name) Checks if an attribute is defined. mixed get(string $name, mixed $default = null) Returns an attribute. set(string $name, mixed $value) Sets an attribute. array all() Retu

AclCacheInterface::clearCache()

clearCache() Removes all ACLs from the cache

ArrayInput::getFirstArgument()

string getFirstArgument() Returns the first argument from the raw parameters (not parsed). Return Value string The value of the first argument or null otherwise

UnsupportedMediaTypeHttpException

class UnsupportedMediaTypeHttpException extends HttpException UnsupportedMediaTypeHttpException. Methods __construct($message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct($message = null, Exception $previous = null, $code) Constructor. Parameters $message Exception $previous

ResolvedFormTypeInterface::getOptionsResolver()

OptionsResolver getOptionsResolver() Returns the configured options resolver used for this type. Return Value OptionsResolver The options resolver

FormInterface::getName()

string getName() Returns the name by which the form is identified in forms. Return Value string The name of the form

TemplateReference::getPath()

string getPath() Returns the path to the template - as a path when the template is not part of a bundle - as a resource when the template is part of a bundle. Return Value string A path to the template or a resource

PathPackage deprecated

class PathPackage extends Package deprecated since 2.7, will be removed in 3.0. Use the Asset component instead. The path packages adds a version and a base path to asset URLs. Methods __construct(string $basePath = null, string $version = null, string $format = null) Constructor. string getVersion() Returns the asset package version. from Package string getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. string getBa

JsonFileDumper

class JsonFileDumper extends FileDumper JsonFileDumper generates an json formatted string representation of a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $d

ArrayNode::setAddIfNotSet()

setAddIfNotSet(bool $boolean) Sets whether to add default values for this array if it has not been defined in any of the configuration files. Parameters bool $boolean