Sleimanx2\Plastic\Mappings\Mappings::setSource PHP Méthode

setSource() public méthode

Set the information source to gather data.
public setSource ( string $name ) : void
$name string
Résultat void
    public function setSource($name)
    {
        $this->connection = $name;
    }

Usage Example

Exemple #1
0
 /**
  * Execute the console command.
  */
 public function handle()
 {
     if (!$this->confirmToProceed()) {
         return;
     }
     $this->mappings->setSource($this->option('database'));
     $this->mappings->reset();
     $this->comment('Mapping repository reset successfully');
 }
All Usage Examples Of Sleimanx2\Plastic\Mappings\Mappings::setSource