ValidatorInterface::inContext()

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

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

FormConfigBuilder::setInheritData()

FormConfigBuilderInterface setInheritData(bool $inheritData) Sets whether the form should read and write the data of its parent. Parameters bool $inheritData Whether the form should inherit its parent's data Return Value FormConfigBuilderInterface The configuration object

InMemoryUserProvider::supportsClass()

bool supportsClass(string $class) Whether this provider supports the given user class. Parameters string $class Return Value bool

Output::getFormatter()

OutputFormatterInterface getFormatter() Returns current output formatter instance. Return Value OutputFormatterInterface

MessageCatalogue::defines()

bool defines(string $id, string $domain = 'messages') Checks if a message has a translation (it does not take into account the fallback mechanism). Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

SymfonyTestsListener

class SymfonyTestsListener extends PHPUnit_Framework_BaseTestListener Collects and replays skipped tests. Methods __construct(array $mockedNamespaces = array()) __destruct() startTestSuite(PHPUnit_Framework_TestSuite $suite) addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) startTest(PHPUnit_Framework_Test $test) endTest(PHPUnit_Framework_Test $test, $time) Details __construct(array $mockedNamespaces = array(

FormConfigBuilderInterface::setEmptyData()

FormConfigBuilderInterface setEmptyData(mixed $emptyData) Sets the data used for the client data when no value is submitted. Parameters mixed $emptyData The empty data Return Value FormConfigBuilderInterface The configuration object

DataCollectorTranslator::getCatalogue()

MessageCatalogueInterface getCatalogue(string|null $locale = null) Gets the catalogue by locale. Parameters string|null $locale The locale or null to use the default Return Value MessageCatalogueInterface Exceptions InvalidArgumentException If the locale contains invalid characters

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