ServiceProvider

Implements \Cilex\ServiceProviderInterface

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.
package

Default

Methods

Registers the translator using the currently active locale.

register(\Cilex\Application $app) 

Arguments

$app

\Cilex\Application