RequestContext::setHost()

RequestContext setHost(string $host) Sets the HTTP host. Parameters string $host The HTTP host Return Value RequestContext The current instance, implementing a fluent interface

MessageCatalogue::has()

bool has(string $id, string $domain = 'messages') Checks if a message has a translation. Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

PercentToLocalizedStringTransformer

class PercentToLocalizedStringTransformer implements DataTransformerInterface Transforms between a normalized format (integer or float) and a percentage value. Constants FRACTIONAL INTEGER Methods __construct(int $scale = null, string $type = null) Constructor. mixed transform(mixed $value) Transforms between a normalized format (integer or float) into a percentage value. mixed reverseTransform(mixed $value) Transforms between a percentage value into a normalized form

FormFactoryBuilderInterface

interface FormFactoryBuilderInterface A builder for FormFactoryInterface objects. Methods FormFactoryBuilderInterface setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory) Sets the factory for creating ResolvedFormTypeInterface instances. FormFactoryBuilderInterface addExtension(FormExtensionInterface $extension) Adds an extension to be loaded by the factory. FormFactoryBuilderInterface addExtensions(array $extensions) Adds a list of extensions to be loa

DefaultLogoutSuccessHandler

class DefaultLogoutSuccessHandler implements LogoutSuccessHandlerInterface Default logout success handler will redirect users to a configured path. Methods __construct(HttpUtils $httpUtils, string $targetUrl = '/') Response onLogoutSuccess(Request $request) Creates a Response object to send upon a successful logout. Details __construct(HttpUtils $httpUtils, string $targetUrl = '/') Parameters HttpUtils $httpUtils string $targetUrl

PasswordEncoderInterface::isPasswordValid()

bool isPasswordValid(string $encoded, string $raw, string $salt) Checks a raw password against an encoded password. Parameters string $encoded An encoded password string $raw A raw password string $salt The salt Return Value bool true if the password is valid, false otherwise

CollectionType

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

FormEvents

class FormEvents To learn more about how form events work check the documentation entry at {@link https://symfony.com/doc/any/components/form/form_events.html}. To learn how to dynamically modify forms using events check the cookbook entry at {@link https://symfony.com/doc/any/cookbook/form/dynamicformmodification.html}. Constants PRE_SUBMIT The PRE_SUBMIT event is dispatched at the beginning of the Form::submit() method. It can be used to: - Change data from the request, before submitting

FormBuilder::create()

FormBuilderInterface create(string $name, string|null $type = null, array $options = array()) Creates a form builder. Parameters string $name The name of the form or the name of the property string|null $type The type of the form or null if name is a property array $options The options Return Value FormBuilderInterface The created builder

History::add()

add(Request $request) Adds a Request to the history. Parameters Request $request A Request instance