EntityChoiceList deprecated::getIndicesForChoices()

array getIndicesForChoices(array $entities) deprecated deprecated since version 2.4, to be removed in 3.0. Returns the indices corresponding to the given entities. Parameters array $entities Return Value array An array of indices with ascending, 0-based numeric keys See also ChoiceListInterface

EntityChoiceList deprecated::getChoicesForValues()

array getChoicesForValues(array $values) Returns the entities corresponding to the given values. 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 See also ChoiceListInterface

EntityChoiceList deprecated::getChoices()

array getChoices() Returns the list of entities. Return Value array The choices with their indices as keys See also ChoiceListInterface

EntityChoiceList deprecated

class EntityChoiceList extends ObjectChoiceList deprecated Deprecated since Symfony 2.7, to be removed in Symfony 3.0. Use {@link DoctrineChoiceLoader} instead. A choice list presenting a list of Doctrine entities as choices. Methods __construct(ObjectManager $manager, string $class, string $labelPath = null, EntityLoaderInterface $entityLoader = null, array|Traversable|null $entities = null, array $preferredEntities = array(), string $groupPath = null, PropertyAccessorInterface $pro

EngineInterface::supports()

bool supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if this class supports the given template, false otherwise

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

EngineInterface::exists()

bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value bool true if the template exists, false otherwise Exceptions RuntimeException if the engine cannot handle the template name

EngineInterface

interface EngineInterface EngineInterface is the interface each engine must implement. All methods rely on a template name. A template name is a "logical" name for the template, and as such it does not refer to a path on the filesystem (in fact, the template can be stored anywhere, like in a database). The methods should accept any name. If the name is not an instance of TemplateReferenceInterface, a TemplateNameParserInterface should be used to convert the name to a TemplateReferenceInterfa

EngineInterface

interface EngineInterface implements EngineInterface EngineInterface is the interface each engine must implement. Methods string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. from EngineInterface bool exists(string|TemplateReferenceInterface $name) Returns true if the template exists. from EngineInterface bool supports(string|TemplateReferenceInterface $name) Returns true if this class is able to render the given template. from

EncoderInterface::supportsEncoding()

bool supportsEncoding(string $format) Checks whether the serializer can encode to given format. Parameters string $format format name Return Value bool