Stevebauman\Translation\Translation::__construct PHP Method

__construct() public method

public __construct ( Illuminate\Contracts\Foundation\Application $app )
$app Illuminate\Contracts\Foundation\Application
    public function __construct(Application $app)
    {
        $this->config = $app->make('config');
        $this->cache = $app->make('cache');
        $this->request = $app->make('request');
        $this->localeModel = $app->make($this->getConfigLocaleModel());
        $this->translationModel = $app->make($this->getConfigTranslationModel());
        $this->client = $app->make($this->getConfigClient());
        // Set the default locale to the current application locale
        $this->setLocale($this->getConfigDefaultLocale());
        // Set the cache time from the configuration
        $this->setCacheTime($this->getConfigCacheTime());
    }