InputOption

class InputOption Represents a command line option. Constants VALUE_NONE VALUE_REQUIRED VALUE_OPTIONAL VALUE_IS_ARRAY Methods __construct(string $name, string|array $shortcut = null, int $mode = null, string $description = '', mixed $default = null) Constructor. string getShortcut() Returns the option shortcut. string getName() Returns the option name. bool acceptValue() Returns true if the option accepts a value. bool isValueRequired() Returns true

MessageCatalogue::getFallbackCatalogue()

MessageCatalogueInterface|null getFallbackCatalogue() Gets the fallback catalogue. Return Value MessageCatalogueInterface|null A MessageCatalogueInterface instance or null when no fallback has been set

DefaultTranslator deprecated

class DefaultTranslator implements TranslatorInterface deprecated since version 2.7, to be removed in 3.0. Use Symfony\Component\Translation\IdentityTranslator instead. Simple translator implementation that simply replaces the parameters in the message IDs. Example usage: $translator = new DefaultTranslator(); echo $translator->trans( 'This is a {{ var }}.', array('{{ var }}' => 'donkey') ); // -> This is a donkey. echo $translator->transChoice( 'This is {{ cou

ChoiceToValueTransformer::transform()

mixed transform($choice) Transforms a value from the original representation to a transformed representation. This method is called on two occasions inside a form field: When the form field is initialized with the data attached from the datasource (object or array). When data from a request is submitted using {@link Form::submit()} to transform the new input data back into the renderable format. For example if you have a date field and submit '2009-10-10' you might accept this va

FormConfigBuilder::setDataLocked()

FormConfigBuilderInterface setDataLocked(bool $locked) Locks the form's data to the data passed in the configuration. A form with locked data is restricted to the data passed in this configuration. The data can only be modified then by submitting the form. Parameters bool $locked Whether to lock the default data Return Value FormConfigBuilderInterface The configuration object

AnnotationFileLoader

class AnnotationFileLoader extends FileLoader AnnotationFileLoader loads routing information from annotations set on a PHP class and its methods. Methods LoaderResolverInterface getResolver() Gets the loader resolver. from Loader setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. from Loader mixed import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null) Imports a resource. from FileLoader LoaderInter

Definition

class Definition Definition represents a service definition. Methods __construct(string|null $class = null, array $arguments = array()) Definition setFactory(string|array $factory) Sets a factory. string|array getFactory() Gets the factory. Definition setDecoratedService(null|string $id, null|string $renamedId = null, int $priority) Sets the service that this service is decorating. null|array getDecoratedService() Gets the service that decorates this service. Defi

ProgressHelper deprecated::display()

display(bool $finish = false) Outputs the current progress string. Parameters bool $finish Forces the end result Exceptions LogicException

XmlDescriptor::getCommandDocument()

DOMDocument getCommandDocument(Command $command) Parameters Command $command Return Value DOMDocument

CommandTester::execute()

int execute(array $input, array $options = array()) Executes the command. Available execution options: interactive: Sets the input interactive flag decorated: Sets the output decorated flag verbosity: Sets the output verbosity flag Parameters array $input An array of command arguments and options array $options An array of execution options Return Value int The command exit code