Vsch\TranslationManager\Manager::__construct PHP Method

__construct() public method

public __construct ( Illuminate\Foundation\Application $app, Illuminate\Filesystem\Filesystem $files, Illuminate\Events\Dispatcher $events, Translation $translation )
$app Illuminate\Foundation\Application
$files Illuminate\Filesystem\Filesystem
$events Illuminate\Events\Dispatcher
$translation Vsch\TranslationManager\Models\Translation
    public function __construct(Application $app, Filesystem $files, Dispatcher $events, Translation $translation)
    {
        $this->app = $app;
        $this->package = ManagerServiceProvider::PACKAGE;
        $this->config = $this->app['config'][$this->package];
        $this->files = $files;
        $this->events = $events;
        $this->translation = $translation;
        $this->default_connection = $translation->getConnectionName();
        $this->default_translation_connection = $this->config(self::DEFAULT_DB_CONNECTION_KEY, null);
        if (!$this->default_translation_connection) {
            $this->default_translation_connection = $this->default_connection;
        } else {
            $this->setConnectionName($this->default_translation_connection);
        }
        $this->preloadedGroupKeys = null;
        $this->preloadedGroup = null;
        $this->persistentPrefix = null;
        $this->cache = null;
        $this->usageCache = null;
        $this->indatabase_publish = $this->getConnectionInDatabasePublish($this->default_translation_connection);
        $this->groupList = null;
        $this->augmentedGroupList = null;
    }