Locale

class Locale Replacement for PHP's native {@link \Locale} class. The only method supported in this class is {@link getDefault}. This method will always return "en". All other methods will throw an exception when used. Constants DEFAULT_LOCALE ACTUAL_LOCALE VALID_LOCALE LANG_TAG EXTLANG_TAG SCRIPT_TAG REGION_TAG VARIANT_TAG GRANDFATHERED_LANG_TAG PRIVATE_TAG Methods static string acceptFromHttp(string $header) Not supported. Returns the best avail

Locale

class Locale extends Locale Provides access to locale-related data. Methods static setDefaultFallback(string $locale) Sets the default fallback locale. static string getDefaultFallback() Returns the default fallback locale. static string|null getFallback(string $locale) Returns the fallback locale for a given locale. Details static setDefaultFallback(string $locale) Sets the default fallback locale. The default fallback locale is used

LoaderResolverInterface

interface LoaderResolverInterface LoaderResolverInterface selects a loader for a given resource. Methods LoaderInterface|false resolve(mixed $resource, string|null $type = null) Returns a loader able to load the resource. Details LoaderInterface|false resolve(mixed $resource, string|null $type = null) Returns a loader able to load the resource. Parameters mixed $resource A resource string|null $type The resource type or null if unknown Return

LoaderResolver

class LoaderResolver implements LoaderResolverInterface LoaderResolver selects a loader for a given resource. A resource can be anything (e.g. a full path to a config file or a Closure). Each loader determines whether it can load a resource and how. Methods __construct(array $loaders = array()) Constructor. LoaderInterface|false resolve(mixed $resource, string|null $type = null) Returns a loader able to load the resource. addLoader(LoaderInterface $loader) Adds a loader. Loa

LoaderInterface

interface LoaderInterface Loads validation metadata into {@link ClassMetadata} instances. Methods bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Details bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Parameters ClassMetadata $metadata The metadata to load Return Value bool Whether the loader succeeded

LoaderInterface

interface LoaderInterface LoaderInterface is the interface implemented by all translation loaders. 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 MessageCata

LoaderInterface

interface LoaderInterface LoaderInterface is the interface all loaders must implement. Methods Storage|bool load(TemplateReferenceInterface $template) Loads a template. bool isFresh(TemplateReferenceInterface $template, int $time) Returns true if the template is still fresh. Details Storage|bool load(TemplateReferenceInterface $template) Loads a template. Parameters TemplateReferenceInterface $template A template Return Value Storage|bo

LoaderInterface

interface LoaderInterface Loads {@link ClassMetadataInterface}. Methods bool loadClassMetadata(ClassMetadataInterface $classMetadata) Load class metadata. Details bool loadClassMetadata(ClassMetadataInterface $classMetadata) Load class metadata. Parameters ClassMetadataInterface $classMetadata A metadata Return Value bool

LoaderInterface

interface LoaderInterface LoaderInterface is the interface implemented by all loader classes. Methods load(mixed $resource, string|null $type = null) Loads a resource. bool supports(mixed $resource, string|null $type = null) Returns whether this class supports the given resource. LoaderResolverInterface getResolver() Gets the loader resolver. setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. Details load(mixed $resour

LoaderChain

class LoaderChain implements LoaderInterface Loads validation metadata from multiple {@link LoaderInterface} instances. Pass the loaders when constructing the chain. Once {@link loadClassMetadata()} is called, that method will be called on all loaders in the chain. Methods __construct(array $loaders) bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Details __construct(array $loaders)