PhpExtractor

class PhpExtractor extends AbstractFileExtractor implements ExtractorInterface PhpExtractor extracts translation messages from a PHP template. Constants MESSAGE_TOKEN Methods extract(string|array $resource, MessageCatalogue $catalog) Extracts translation messages from files, a file or a directory to the catalogue. setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Details extract(string|array $resource, Messag

Client::enableProfiler()

enableProfiler() Enables the profiler for the very next request. If the profiler is not enabled, the call to this method does nothing.

ChainUserProvider::loadUserByUsername()

UserInterface loadUserByUsername(string $username) Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. Parameters string $username The username Return Value UserInterface Exceptions UsernameNotFoundException if the user is not found

CurrencyBundleInterface::getRoundingIncrement()

float|int|null getRoundingIncrement(string $currency) Returns the rounding increment of a currency. The rounding increment indicates to which number a currency is rounded. For example, 1230 rounded to the nearest 50 is 1250. 1.234 rounded to the nearest 0.65 is 1.3. Parameters string $currency A currency code (e.g. "EUR") Return Value float|int|null The rounding increment or NULL if not found

PreviewErrorController

class PreviewErrorController PreviewErrorController can be used to test error pages. It will create a test exception and forward it to another controller. Methods __construct(HttpKernelInterface $kernel, $controller) previewErrorPageAction(Request $request, $code) Details __construct(HttpKernelInterface $kernel, $controller) Parameters HttpKernelInterface $kernel $controller previewErrorPageAction(Reque

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

HelperInterface

interface HelperInterface HelperInterface is the interface all helpers must implement. Methods setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. HelperSet getHelperSet() Gets the helper set associated with this helper. string getName() Returns the canonical name of this helper. Details setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. Parameters Helpe

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