You are here

public function CakePHPInstaller::getLocations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php \Composer\Installers\CakePHPInstaller::getLocations()

Change the default plugin location when cakephp >= 3.0

Overrides BaseInstaller::getLocations

File

vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php, line 38

Class

CakePHPInstaller

Namespace

Composer\Installers

Code

public function getLocations() {
  if ($this
    ->matchesCakeVersion('>=', '3.0.0')) {
    $this->locations['plugin'] = $this->composer
      ->getConfig()
      ->get('vendor-dir') . '/{$vendor}/{$name}/';
  }
  return $this->locations;
}