1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/11150] Do not override extensions installed manually

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-09 23:35:14 +02:00
committed by Tristan Darricau
parent fbb85e2f4f
commit ac129f34d3
9 changed files with 180 additions and 18 deletions

View File

@@ -0,0 +1,69 @@
<?php
/**
* Created by IntelliJ IDEA.
* User: tristan.darricau
* Date: 09/09/15
* Time: 23:12
*/
namespace phpbb\composer;
use phpbb\composer\exception\runtime_exception;
/**
* Class to manage packages through composer.
*/
interface manager_interface
{
/**
* Installs (if necessary) a set of packages
*
* @param array $packages Packages to install.
* Each entry may be a name or an array associating a version constraint to a name
*
* @throws runtime_exception
*/
public function install(array $packages);
/**
* Updates or installs a set of packages
*
* @param array $packages Packages to update.
* Each entry may be a name or an array associating a version constraint to a name
*
* @throws runtime_exception
*/
public function update(array $packages);
/**
* Removes a set of packages
*
* @param array $packages Packages to remove.
* Each entry may be a name or an array associating a version constraint to a name
*
* @throws runtime_exception
*/
public function remove(array $packages);
/**
* Tells whether or not a package is managed by Composer.
*
* @param string $packages Package name
*
* @return bool
*/
public function is_managed($packages);
/**
* Returns the list of managed packages
*
* @return array The managed packages associated to their version.
*/
public function get_managed_packages();
/**
* Returns the list of available packages
*
* @return array The name of the available packages, associated to their definition. Ordered by name.
*/
public function get_available_packages();
}