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

public locate ( string $workingDir, Composer\Package\PackageInterface $package = null ) : string
$workingDir string
$package Composer\Package\PackageInterface
Результат string
Пример #1
0
 /**
  * @return string
  */
 protected function getDefaultConfigPath()
 {
     if ($this->configDefaultPath) {
         return $this->configDefaultPath;
     }
     $locator = new ConfigurationFile($this->filesystem);
     $this->configDefaultPath = $locator->locate(getcwd(), $this->initializeComposerHelper()->getRootPackage());
     return $this->configDefaultPath;
 }