IcuResFileLoader

class IcuResFileLoader implements LoaderInterface IcuResFileLoader loads translations from a resource bundle. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Return Value MessageCatalogue A

IcuResFileDumper

class IcuResFileDumper extends FileDumper IcuResDumper generates an ICU ResourceBundle formatted string representation of a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messa

IcuDatFileLoader

class IcuDatFileLoader extends IcuResFileLoader IcuResFileLoader loads translations from a resource bundle. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Return Value MessageCatalogue A Me

IbanValidator

class IbanValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details initiali

Iban

class Iban extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. INVALID_COUNTRY_CODE_ERROR INVALID_CHARACTERS_ERROR CHECKSUM_FAILED_ERROR INVALID_FORMAT_ERROR NOT_SUPPORTED_COUNTRY_CODE_ERROR Properties mixed $payload Domain-specific data attached to a constraint.

HttpUtils::generateUri()

string generateUri(Request $request, string $path) Generates a URI, based on the given path or absolute URL. Parameters Request $request A Request instance string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) Return Value string An absolute URL Exceptions LogicException

HttpUtils::createRequest()

Request createRequest(Request $request, string $path) Creates a Request. Parameters Request $request The current Request instance string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) Return Value Request A Request instance

HttpUtils::createRedirectResponse()

RedirectResponse createRedirectResponse(Request $request, string $path, int $status = 302) Creates a redirect Response. Parameters Request $request A Request instance string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) int $status The status code Return Value RedirectResponse A RedirectResponse instance

HttpUtils::checkRequestPath()

bool checkRequestPath(Request $request, string $path) Checks that a given path matches the Request. Parameters Request $request A Request instance string $path A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo)) Return Value bool true if the path is the same as the one from the Request, false otherwise

HttpUtils

class HttpUtils Encapsulates the logic needed to create sub-requests, redirect the user, and match URLs. Methods __construct(UrlGeneratorInterface $urlGenerator = null, UrlMatcherInterface|RequestMatcherInterface $urlMatcher = null) Constructor. RedirectResponse createRedirectResponse(Request $request, string $path, int $status = 302) Creates a redirect Response. Request createRequest(Request $request, string $path) Creates a Request. bool checkRequestPath(Request $request