LoggingTranslator::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Translates the given message. Parameters string $id The message id (may also be an object that can be cast to string) array $parameters An array of parameters for the message string|null $domain The domain for the message or null to use the default string|null $locale The locale or null to use the default Return Value string The translated string Exceptions InvalidArgum

PackageInterface

interface PackageInterface Asset package interface. Methods string getVersion(string $path) Returns the asset version for an asset. string getUrl(string $path) Returns an absolute or root-relative public path. Details string getVersion(string $path) Returns the asset version for an asset. Parameters string $path A path Return Value string The version string string getUrl(string $path) Returns an

AcceptHeader::fromString()

static AcceptHeader fromString(string $headerValue) Builds an AcceptHeader instance from a string. Parameters string $headerValue Return Value AcceptHeader

Serializer::decode()

final mixed decode(string $data, string $format, array $context = array()) Decodes a string into PHP data. Parameters string $data Data to decode string $format Format name array $context options that decoders have access to. The format parameter specifies which format the data is in; valid values depend on the specific implementation. Authors implementing this interface are encouraged to document which formats they support in a non-inherited phpdoc comment.

GuardAuthenticatorHandler

class GuardAuthenticatorHandler A utility class that does much of the work during the guard authentication process. By having the logic here instead of the listener, more of the process can be called directly (e.g. for manual authentication) or overridden. Methods __construct(TokenStorageInterface $tokenStorage, EventDispatcherInterface $eventDispatcher = null) authenticateWithToken(TokenInterface $token, Request $request) Authenticates the given token in the system. null|Respon

AddRequestFormatsListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

MimeTypeExtensionGuesser

class MimeTypeExtensionGuesser implements ExtensionGuesserInterface Provides a best-guess mapping of mime type to file extension. Methods string guess(string $mimeType) Makes a best guess for a file extension, given a mime type. Details string guess(string $mimeType) Makes a best guess for a file extension, given a mime type. Parameters string $mimeType The mime type Return Value string The guessed extension or NULL, if none could be guessed

RepeatedType

class RepeatedType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template bloc

FormThemeTokenParser

class FormThemeTokenParser extends Twig_TokenParser Token Parser for the 'form_theme' tag. Methods Twig_Node parse(Twig_Token $token) Parses a token and returns a node. string getTag() Gets the tag name associated with this token parser. Details Twig_Node parse(Twig_Token $token) Parses a token and returns a node. Parameters Twig_Token $token A Twig_Token instance Return Value Twig_Node A Twig_Node instance stri

Extension::getConfiguration()

ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container) Returns extension configuration. Parameters array $config An array of configuration values ContainerBuilder $container A ContainerBuilder instance Return Value ConfigurationInterface|null The configuration or null