BundleWriterInterface

interface BundleWriterInterface Writes resource bundle files. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Parameters string $path The path to the resource bundle string $locale The locale to (over-)write mixed $data The data to write

SessionStorageInterface::registerBag()

registerBag(SessionBagInterface $bag) Registers a SessionBagInterface for use. Parameters SessionBagInterface $bag

AbstractProxy::isSessionHandlerInterface()

bool isSessionHandlerInterface() Is this proxy handler and instance of \SessionHandlerInterface. Return Value bool

GenericMetadata::findConstraints()

Constraint[] findConstraints(string $group) Returns all constraints for a given validation group. Parameters string $group The validation group Return Value Constraint[] A list of constraint instances

ChoiceToBooleanArrayTransformer deprecated

class ChoiceToBooleanArrayTransformer implements DataTransformerInterface deprecated since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\LazyChoiceList} instead. Methods __construct(ChoiceListInterface $choiceList, bool $placeholderPresent) Constructor. mixed transform(mixed $choice) Transforms a single choice to a format appropriate for the nested checkboxes/radio buttons. mixed reverseTransform(array $values) Transforms a checkbox/radio bu

FormConfigBuilderInterface::setDataMapper()

FormConfigBuilderInterface setDataMapper(DataMapperInterface $dataMapper = null) Sets the data mapper used by the form. Parameters DataMapperInterface $dataMapper Return Value FormConfigBuilderInterface The configuration object

ProcessBuilder::setEnv()

ProcessBuilder setEnv(string $name, null|string $value) Sets an environment variable. Setting a variable overrides its previous value. Use null to unset a defined environment variable. Parameters string $name The variable name null|string $value The variable value Return Value ProcessBuilder

CheckboxType::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

FormExtension::isSelectedChoice()

bool isSelectedChoice(ChoiceView $choice, string|array $selectedValue) Returns whether a choice is selected for a given form value. Unfortunately Twig does not support an efficient way to execute the "is_selected" closure passed to the template by ChoiceType. It is faster to implement the logic here (around 65ms for a specific form). Directly implementing the logic here is also faster than doing so in ChoiceView (around 30ms). The worst option tested so far is to implement the lo

DnsMock

class DnsMock Methods static withMockedHosts(array $hosts) Configures the mock values for DNS queries. static checkdnsrr($hostname, $type = 'MX') static getmxrr($hostname, $mxhosts, $weight = null) static gethostbyaddr($ipAddress) static gethostbyname($hostname) static gethostbynamel($hostname) static dns_get_record($hostname, $type = DNS_ANY, $authns = null, $addtl = null, $raw = false) static register($class) Details static