Remove setter/getter that isnt needed, refs #4933
parent
4df7ade801
commit
1375f8e60a
|
@ -139,7 +139,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'reference' => sha1($json),
|
'reference' => sha1($json),
|
||||||
);
|
);
|
||||||
$package['transport-options'] = $this->getOptions();
|
$package['transport-options'] = $this->options;
|
||||||
|
|
||||||
if (!isset($package['version'])) {
|
if (!isset($package['version'])) {
|
||||||
$package['version'] = $this->versionGuesser->guessVersion($package, $path) ?: 'dev-master';
|
$package['version'] = $this->versionGuesser->guessVersion($package, $path) ?: 'dev-master';
|
||||||
|
@ -166,20 +166,4 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
||||||
return str_replace(DIRECTORY_SEPARATOR, '/', $val);
|
return str_replace(DIRECTORY_SEPARATOR, '/', $val);
|
||||||
}, glob($this->url, GLOB_MARK | GLOB_ONLYDIR));
|
}, glob($this->url, GLOB_MARK | GLOB_ONLYDIR));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getOptions()
|
|
||||||
{
|
|
||||||
return $this->options;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array $options
|
|
||||||
*/
|
|
||||||
public function setOptions($options)
|
|
||||||
{
|
|
||||||
$this->options = $options;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue