Themsaid\Langman\Manager::setPathToVendorPackage PHP 메소드

setPathToVendorPackage() 공개 메소드

Sets the path to a vendor package translation files.
public setPathToVendorPackage ( string $packageName ) : void
$packageName string
리턴 void
    public function setPathToVendorPackage($packageName)
    {
        $this->path = $this->path . '/vendor/' . $packageName;
    }

Usage Example

예제 #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     if ($package = $this->option('package')) {
         $this->manager->setPathToVendorPackage($package);
     }
     $this->files = $this->manager->files();
     if (empty($this->files)) {
         $this->warn('No language files were found!');
     }
     $languages = $this->manager->languages();
     $this->table(array_merge(['key'], $languages), $this->tableRows());
 }
All Usage Examples Of Themsaid\Langman\Manager::setPathToVendorPackage