FormHelper::widget()

string widget(FormView $view, array $variables = array()) Renders the HTML for a given view. Example usage: <?php echo $view['form']->widget($form) ?> You can pass options during the call: <?php echo $view['form']->widget($form, array('attr' => array('class' => 'foo'))) ?> <?php echo $view['form']->widget($form, array('separator' => '+++++')) ?> Parameters FormView $view The view for which to render the widget array $variables Additional v

FormConfigBuilder::getOption()

mixed getOption(string $name, mixed $default = null) Returns the value of a specific option. Parameters string $name The option name mixed $default The value returned if the option does not exist Return Value mixed The option value

MimeTypeGuesser::guess()

string guess(string $path) Tries to guess the mime type of the given file. The file is passed to each registered mime type guesser in reverse order of their registration (last registered is queried first). Once a guesser returns a value that is not NULL, this method terminates and returns the value. Parameters string $path The path to the file Return Value string The mime type or NULL, if none could be guessed Exceptions LogicException FileNotFoundException AccessDeniedExcept

SurrogateListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

FormRegistryInterface::getType()

ResolvedFormTypeInterface getType(string $name) Returns a form type by name. This methods registers the type extensions from the form extensions. Parameters string $name The name of the type Return Value ResolvedFormTypeInterface The type Exceptions InvalidArgumentException if the type can not be retrieved from any extension

Application::register()

Command register(string $name) Registers a new command. Parameters string $name The command name Return Value Command The newly created command

SymfonyStyle::writeln()

writeln(string|array $messages, $type = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the end. Parameters string|array $messages The message as an array of lines of a single string $type

Command::getNativeDefinition()

InputDefinition getNativeDefinition() Gets the InputDefinition to be used to create representations of this Command. Can be overridden to provide the original command representation when it would otherwise be changed by merging with the application InputDefinition. This method is not part of public API and should not be used directly. Return Value InputDefinition An InputDefinition instance

StreamedResponse::setContent()

Response setContent(mixed $content) Sets the response content. Valid types are strings, numbers, null, and objects that implement a __toString() method. Parameters mixed $content Content that can be cast to string Return Value Response Exceptions UnexpectedValueException

FormField::getName()

string getName() Returns the name of the field. Return Value string The name of the field