\phpDocumentor\TranslatorServiceProvider

Registers all components for the translator to work.

This provider registers the following service:

  • translator, provides translation services

In addition to the above service the following parameters are registered as well:

  • translator.locale, contains the current locale.

Summary

Methods
Properties
Constants
register()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register(\Cilex\Application  $app) 

Registers the translator using the currently active locale.

Parameters

\Cilex\Application $app