ProgressBar::setBarWidth()

setBarWidth(int $size) Sets the progress bar width. Parameters int $size The progress bar size

Stopwatch::getEvent()

StopwatchEvent getEvent(string $name) Returns a specific event by name. Parameters string $name The event name Return Value StopwatchEvent A StopwatchEvent instance

Component\Locale

Namespaces Symfony\Component\Locale\ExceptionSymfony\Component\Locale\Stub Classes Locale deprecated Helper class for dealing with locale strings.

Route::setHost()

setHost($pattern) Parameters $pattern

StringUtils deprecated::safeStrlen()

static int safeStrlen(string $string) Returns the number of bytes in a string. Parameters string $string The string whose length we wish to obtain Return Value int

ArrayChoiceList::getValuesForChoices()

string[] getValuesForChoices(array $choices) Returns the values corresponding to the given choices. The values are returned with the same keys and in the same order as the corresponding choices in the given array. Parameters array $choices An array of choices. Non-existing choices in this array are ignored Return Value string[] An array of choice values

SessionInterface::getId()

string getId() Returns the session ID. Return Value string The session ID

OptionsResolverInterface deprecated::isKnown()

bool isKnown(string $option) Returns whether an option is known. An option is known if it has been passed to either {@link setDefaults()}, {@link setRequired()} or {@link setOptional()} before. Parameters string $option The name of the option. Return Value bool Whether the option is known.

SortableIterator

class SortableIterator implements IteratorAggregate SortableIterator applies a sort on a given Iterator. Constants SORT_BY_NAME SORT_BY_TYPE SORT_BY_ACCESSED_TIME SORT_BY_CHANGED_TIME SORT_BY_MODIFIED_TIME Methods __construct(Traversable $iterator, int|callable $sort) Constructor. getIterator() Details __construct(Traversable $iterator, int|callable $sort) Constructor. Parameters Traversable $iterator The Iterator

Form::isRequired()

bool isRequired() Returns whether the form is required to be filled out. If the form has a parent and the parent is not required, this method will always return false. Otherwise the value set with setRequired() is returned. Return Value bool