class TranslationServiceProvider implements ServiceProviderInterface (View source)

Register Embed documents services for dependency injection container.

Methods

Container
register(Container $container)

Initialize translator services.

addResourcesForLocale(string $locale, Translator $translator, array $classes)

No description

addTranslatorResource(Translator $translator, string $path, string $extension, string $locale)

No description

Details

Container register(Container $container)

Initialize translator services.

Parameters

Container $container

Return Value

Container

protected addResourcesForLocale(string $locale, Translator $translator, array $classes)

Parameters

string $locale
Translator $translator
array $classes

protected addTranslatorResource(Translator $translator, string $path, string $extension, string $locale)

Parameters

Translator $translator
string $path
string $extension
string $locale