getPath() публичный Метод

public getPath ( )
Пример #1
0
 public function removePackage(Package $package)
 {
     // Ensure paths are loaded
     $this->getPaths();
     $path = $package->getPath();
     if (($key = array_search($path, $this->paths)) !== false) {
         unset($this->paths[$key]);
         $this->dump();
     }
 }
Пример #2
0
 /**
  * @param OutputInterface $output
  * @param Package $package
  * @return void
  */
 protected function refreshAutoloads(OutputInterface $output, Package $package)
 {
     if (file_exists(getcwd() . '/' . $package->getPath() . '/composer.json')) {
         $output->writeln("<comment>Dumping autoloads...</comment>");
         Shell::run('composer dump-autoload', $package->getPath());
         $output->writeln("<info>Autoloads successfully generated.</info>");
     }
 }