FormConfigBuilder::setPropertyPath()

FormConfigBuilderInterface setPropertyPath(null|string|PropertyPathInterface $propertyPath) Sets the property path that the form should be mapped to. Parameters null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set automatically based on the form's name. Return Value FormConfigBuilderInterface The configuration object

JsonResponse::setJson()

JsonResponse setJson(string $json) Sets a raw string containing a JSON document to be sent. Parameters string $json Return Value JsonResponse Exceptions InvalidArgumentException

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.

NotNull

class NotNull extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. IS_NULL_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods static string

Component\Config\Loader

Classes DelegatingLoader DelegatingLoader delegates loading to other loaders using a loader resolver. FileLoader FileLoader is the abstract class used by all built-in loaders that are file based. Loader Loader is the abstract class used by all built-in loaders. LoaderResolver LoaderResolver selects a loader for a given resource. Interfaces LoaderInterface LoaderInterface is the interface implemented by all loader classes. LoaderResolverInterface LoaderResolverInterface

ButtonType

class ButtonType extends BaseType implements ButtonTypeInterface A form button. Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from BaseType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from BaseType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBl

NullDumper

class NullDumper implements DumperInterface Null dumper, negates any proxy code generation for any given service definition. Methods bool isProxyCandidate(Definition $definition) Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. string getProxyFactoryCode(Definition $definition, string $id) Generates the code to be used to instantiate a proxy in the dumped factory code. string getProxyCode(Definition $definition) Generates

LocaleType

class LocaleType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of th

PropertyAccessorInterface::getValue()

mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns the value at the end of the property path of the object graph. Example: use Symfony\Component\PropertyAccess\PropertyAccess; $propertyAccessor = PropertyAccess::createPropertyAccessor(); echo $propertyAccessor->getValue($object, 'child.name); // equals echo $object->getChild()->getName(); This method first tries to find a public getter for each property in the path. The nam

FormFactoryBuilderInterface::addExtension()

FormFactoryBuilderInterface addExtension(FormExtensionInterface $extension) Adds an extension to be loaded by the factory. Parameters FormExtensionInterface $extension The extension Return Value FormFactoryBuilderInterface The builder