RequestContext::setHttpPort()

RequestContext setHttpPort(int $httpPort) Sets the HTTP port. Parameters int $httpPort The HTTP port Return Value RequestContext The current instance, implementing a fluent interface

ModelChoiceList::getChoicesForValues()

array getChoicesForValues(array $values) Returns the choices corresponding to the given values. The choices can have any data type. The choices must be returned with the same keys and in the same order as the corresponding values in the given array. Parameters array $values An array of choice values. Not existing values in this array are ignored Return Value array An array of choices with ascending, 0-based numeric keys

PropelDataCollector::collect()

collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An Exception instance

FormTypeGuesserChain

class FormTypeGuesserChain implements FormTypeGuesserInterface Methods __construct(array $guessers) Constructor. TypeGuess|null guessType(string $class, string $property) Returns a field guess for a property name of a class. ValueGuess guessRequired(string $class, string $property) Returns a guess whether a property of a class is required. ValueGuess|null guessMaxLength(string $class, string $property) Returns a guess about the field's maximum length. ValueGuess|null gu

FormConfigBuilder::setType()

FormConfigBuilderInterface setType(ResolvedFormTypeInterface $type) Set the types. Parameters ResolvedFormTypeInterface $type The type of the form Return Value FormConfigBuilderInterface The configuration object

ContainerInterface

interface ContainerInterface ContainerInterface is the interface implemented by service container classes. Constants EXCEPTION_ON_INVALID_REFERENCE NULL_ON_INVALID_REFERENCE IGNORE_ON_INVALID_REFERENCE Methods set(string $id, object $service) Sets a service. object get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) Gets a service. bool has(string $id) Returns true if the given service is defined. bool initialized(string $id) Check fo

PropertyAccessorBuilder

class PropertyAccessorBuilder A configurable builder to create a PropertyAccessor. Methods PropertyAccessorBuilder enableMagicCall() Enables the use of "__call" by the PropertyAccessor. PropertyAccessorBuilder disableMagicCall() Disables the use of "__call" by the PropertyAccessor. bool isMagicCallEnabled() PropertyAccessorBuilder enableExceptionOnInvalidIndex() Enables exceptions when reading a non-existing index. PropertyAccessorBuilder disableExceptionOnInvalidInd

ClassNotFoundFatalErrorHandler

class ClassNotFoundFatalErrorHandler implements FatalErrorHandlerInterface ErrorHandler for classes that do not exist. Methods FatalErrorException|null handleError(array $error, FatalErrorException $exception) Attempts to convert an error into an exception. Details FatalErrorException|null handleError(array $error, FatalErrorException $exception) Attempts to convert an error into an exception. Parameters array $error An array as returned by e

CompilationContext::getCompiler()

BundleCompilerInterface getCompiler() Returns a resource bundle compiler. Return Value BundleCompilerInterface The loaded resource bundle compiler.

Forms

class Forms Entry point of the Form component. Use this class to conveniently create new form factories: use Symfony\Component\Form\Forms; $formFactory = Forms::createFormFactory(); $form = $formFactory->createBuilder() ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType') ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType') ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType') ->add('gender', 'Symfony\Component\Form\Ex