/**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $package = $this->input->getArgument('package');
     if (!is_null($path = $this->getPath())) {
         $this->config->publish($package, $path);
     } else {
         $this->config->publishPackage($package);
     }
     $this->output->writeln('<info>Configuration published for package:</info> ' . $package);
 }
 /**
  * Register the configuration publisher class and command.
  *
  * @return void
  */
 protected function registerConfigPublisher()
 {
     $this->registerConfigPublishCommand();
     $this->app->bindShared('config.publisher', function ($app) {
         $path = $app['path'] . '/config';
         // Once we have created the configuration publisher, we will set the default
         // package path on the object so that it knows where to find the packages
         // that are installed for the application and can move them to the app.
         $publisher = new ConfigPublisher($app['files'], $path);
         $publisher->setPackagePath($app['path.base'] . '/vendor');
         return $publisher;
     });
 }
 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $package = $this->input->getArgument('package');
     $proceed = $this->confirmToProceed('Config Already Published!', function () use($package) {
         return $this->config->alreadyPublished($package);
     });
     if (!$proceed) {
         return;
     }
     if (!is_null($path = $this->getPath())) {
         $this->config->publish($package, $path);
     } else {
         $this->config->publishPackage($package);
     }
     $this->output->writeln('<info>Configuration published for package:</info> ' . $package);
 }