OutputStyle::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

CodeExtension::getFileLink()

string getFileLink(string $file, int $line) Returns the link for a given file/line pair. Parameters string $file An absolute file path int $line The line number Return Value string A link of false

PropertyPath

class PropertyPath Contains utility methods for dealing with property paths. For more extensive functionality, use Symfony's PropertyAccess component. Methods static string append(string $basePath, string $subPath) Appends a path to a given property path. Details static string append(string $basePath, string $subPath) Appends a path to a given property path. If the base path is empty, the appended path will be returned unchanged. If the base pat

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|

Finder::exclude()

Finder|SplFileInfo[] exclude(string|array $dirs) Excludes directories. Parameters string|array $dirs A directory path or an array of directories Return Value Finder|SplFileInfo[] The current Finder instance See also ExcludeDirectoryFilterIterator

RequestDataCollector::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

CheckboxListMapper

class CheckboxListMapper implements DataMapperInterface Maps choices to/from checkbox forms. A {@link ChoiceListInterface} implementation is used to find the corresponding string values for the choices. Each checkbox form whose "value" option corresponds to any of the selected values is marked as selected. Methods mapDataToForms($choices, $checkboxes) Maps properties of some data to a list of forms. mapFormsToData($checkboxes, $choices) Maps the data of a list of forms into the prop

TwigEngine::render()

string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance array $parameters An array of parameters to pass to the template Return Value string The evaluated template as a string Exceptions RuntimeException if the template cannot be rendered

OrderedHashMap::offsetGet()

offsetGet($key) {@inheritdoc} Parameters $key

FragmentHandler::render()

string|null render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. Available options: ignore_errors: true to return an empty string in case of an error Parameters string|ControllerReference $uri A URI as a string or a ControllerReference instance string $renderer The renderer name array $options An array of options Return Value string|null The Response content or null when the Response is s