Inline::dump()

static string dump(mixed $value, int $flags) Dumps a given PHP variable to a YAML string. Parameters mixed $value The PHP variable to convert int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string Return Value string The YAML string representing the PHP array Exceptions DumpException When trying to dump PHP resource

Button::count()

int count() Unsupported method. Return Value int Always returns 0

TwigExtractor::extract()

extract(string|array $resource, MessageCatalogue $catalogue) Extracts translation messages from files, a file or a directory to the catalogue. Parameters string|array $resource files, a file or a directory MessageCatalogue $catalogue The catalogue

AddRequestFormatsListener::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

CollectionToArrayTransformer

class CollectionToArrayTransformer implements DataTransformerInterface CollectionToArrayTransformer class. Methods mixed transform($collection) Transforms a value from the original representation to a transformed representation. mixed reverseTransform($array) Transforms a value from the transformed representation to its original representation. Details mixed transform($collection) Transforms a value from the original representation to a tr

XmlEncoder

class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface, NormalizationAwareInterface Encodes XML data. Methods setSerializer(SerializerInterface $serializer) Sets the owning Serializer object. from SerializerAwareEncoder __construct(string $rootNodeName = 'response', int|null $loadOptions = null) Construct new XmlEncoder and allow to change the root node element name. scalar encode(mixed $data, string $format, array $context = array()) Encod

UploadedFile::getClientMimeType()

string|null getClientMimeType() Returns the file mime type. The client mime type is extracted from the request from which the file was uploaded, so it should not be considered as a safe value. For a trusted mime type, use getMimeType() instead (which guesses the mime type based on the file content). Return Value string|null The mime type See also getMimeType()

MoneyToLocalizedStringTransformer::transform()

mixed transform(mixed $value) Transforms a normalized format into a localized money string. Parameters mixed $value The value in the original representation Return Value mixed The value in the transformed representation Exceptions TransformationFailedException If the given value is not numeric or if the value can not be transformed.

ChoiceFormField::hasValue()

bool hasValue() Returns true if the field should be included in the submitted values. Return Value bool true if the field should be included in the submitted values, false otherwise

AppVariable::setTokenStorage()

setTokenStorage(TokenStorageInterface $tokenStorage) Parameters TokenStorageInterface $tokenStorage