public function registerFetchCommand() { // add fetch command to artisan $this->app['l4gettext.fetch'] = $this->app->share(function ($app) { return new Commands\FetchCommand(new ProcessBuilder()); }); $this->commands('l4gettext.fetch'); }