Chris@0: '{$name}/', Chris@0: 'theme' => 'themes/{$name}/', Chris@0: ); Chris@0: Chris@0: /** Chris@0: * Return the install path based on package type. Chris@0: * Chris@0: * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework Chris@0: * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0 Chris@0: * Chris@0: * @param PackageInterface $package Chris@0: * @param string $frameworkType Chris@0: * @return string Chris@0: */ Chris@0: public function getInstallPath(PackageInterface $package, $frameworkType = '') Chris@0: { Chris@0: if ( Chris@0: $package->getName() == 'silverstripe/framework' Chris@0: && preg_match('/^\d+\.\d+\.\d+/', $package->getVersion()) Chris@0: && version_compare($package->getVersion(), '2.999.999') < 0 Chris@0: ) { Chris@0: return $this->templatePath($this->locations['module'], array('name' => 'sapphire')); Chris@0: } Chris@0: Chris@12: return parent::getInstallPath($package, $frameworkType); Chris@0: } Chris@0: }