1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11150] Makes minimum-stability configurable

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-16 15:01:26 +02:00
committed by Tristan Darricau
parent 6bbd8486b2
commit 317c90cf48
6 changed files with 66 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ class installer
*/
protected $packages_vendor_dir = 'vendor-ext/';
/**
* @var string Minimum stability
*/
protected $minimum_stability = 'stable';
/**
* @var string phpBB root path
*/
@@ -88,6 +93,7 @@ class installer
$this->packagist = (bool) $config['exts_composer_packagist'];
$this->composer_filename = $config['exts_composer_json_file'];
$this->packages_vendor_dir = $config['exts_composer_vendor_dir'];
$this->minimum_stability = $config['exts_composer_minimum_stability'];
}
$this->root_path = $root_path;
@@ -484,6 +490,7 @@ class installer
'cache-dir' => 'store/composer',
'vendor-dir'=> $this->packages_vendor_dir,
],
'minimum-stability' => $this->minimum_stability,
];
$this->ext_json_file_backup = null;

View File

@@ -263,6 +263,18 @@ class manager implements manager_interface
return $this->available_packages;
}
/**
* {@inheritdoc}
*/
public function reset_cache()
{
$this->cache->destroy('_composer_' . $this->package_type . '_available');
$this->available_packages = null;
$this->managed_packages = null;
$this->all_managed_packages = null;
}
/**
* {@inheritdoc}
*/

View File

@@ -78,6 +78,11 @@ interface manager_interface
*/
public function get_available_packages();
/**
* Reset the cache
*/
public function reset_cache();
/**
* Start managing a manually installed package
*