LazyLoadingMetadataFactory

class LazyLoadingMetadataFactory implements MetadataFactoryInterface Creates new {@link ClassMetadataInterface} instances. Whenever {@link getMetadataFor()} is called for the first time with a given class name or object of that class, a new metadata instance is created and returned. On subsequent requests for the same class, the same metadata instance will be returned. You can optionally pass a {@link LoaderInterface} instance to the constructor. Whenever a new metadata instance is created,

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

LazyLoadingFragmentHandler::addRendererService()

addRendererService(string $name, string $renderer) Adds a service as a fragment renderer. Parameters string $name The service name string $renderer The render service id

LazyLoadingFragmentHandler

class LazyLoadingFragmentHandler extends FragmentHandler Lazily loads fragment renderers from the dependency injection container. Methods __construct(ContainerInterface $container, RequestStack $requestStack, bool $debug = false) Constructor. addRenderer(FragmentRendererInterface $renderer) Adds a renderer. from FragmentHandler string|null render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content

LazyChoiceList::getValuesForChoices()

string[] getValuesForChoices(array $choices) Returns the values corresponding to the given choices. The values are returned with the same keys and in the same order as the corresponding choices in the given array. Parameters array $choices An array of choices. Non-existing choices in this array are ignored Return Value string[] An array of choice values

LazyChoiceList::getValues()

string[] getValues() Returns the values for the choices. The values are strings that do not contain duplicates. Return Value string[] The choice values

LazyChoiceList::getStructuredValues()

string[] getStructuredValues() Returns the values in the structure originally passed to the list. Contrary to {@link getValues()}, the result is indexed by the original keys of the choices. If the original array contained nested arrays, these nested arrays are represented here as well: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array('Yes' => true, 'No' => false), 'Undecided' => array('Maybe' => null), ), ));

LazyChoiceList::getOriginalKeys()

int[]|string[] getOriginalKeys() Returns the original keys of the choices. The original keys are the keys of the choice array that was passed in the "choice" option of the choice type. Note that this array may contain duplicates if the "choice" option contained choice groups: $form->add('field', 'choice', array( 'choices' => array( 'Decided' => array(true, false), 'Undecided' => array(null), ), )); In this example, the original key 0 appears t

LazyChoiceList::getChoicesForValues()

array getChoicesForValues(array $values) Returns the choices corresponding to the given values. The choices are returned with the same keys and in the same order as the corresponding values in the given array. Parameters array $values An array of choice values. Non-existing values in this array are ignored Return Value array An array of choices

LazyChoiceList::getChoices()

array getChoices() Returns all selectable choices. Return Value array The selectable choices indexed by the corresponding values