public function __construct(Repository $configRepository) { // Inject this command just to have access to writeLine, writeError, etc... methods $this->manager = new Localization($this); parent::__construct(); }
/** * Create a new command instance. * * @param \Illuminate\Config\Repository $configRepository */ public function __construct(Repository $configRepository) { parent::__construct($configRepository); $this->folders = Config::get(Localization::PREFIX_LARAVEL_CONFIG . 'folders'); $this->trans_methods = Config::get(Localization::PREFIX_LARAVEL_CONFIG . 'trans_methods'); }