|
|
|
@ -23,9 +23,22 @@ use Composer\Semver\Constraint\ConstraintInterface;
|
|
|
|
|
*/
|
|
|
|
|
class Request
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Identifies a partial update for listed packages only, all dependencies will remain at locked versions
|
|
|
|
|
*/
|
|
|
|
|
const UPDATE_ONLY_LISTED = 0;
|
|
|
|
|
const UPDATE_TRANSITIVE_DEPENDENCIES = 1;
|
|
|
|
|
const UPDATE_TRANSITIVE_ROOT_DEPENDENCIES = 2;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Identifies a partial update for listed packages and recursively all their dependencies, however dependencies
|
|
|
|
|
* also directly required by the root composer.json and their dependencies will remain at the locked version.
|
|
|
|
|
*/
|
|
|
|
|
const UPDATE_LISTED_WITH_TRANSITIVE_DEPS_NO_ROOT_REQUIRE = 1;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Identifies a partial update for listed packages and recursively all their dependencies, even dependencies
|
|
|
|
|
* also directly required by the root composer.json will be updated.
|
|
|
|
|
*/
|
|
|
|
|
const UPDATE_LISTED_WITH_TRANSITIVE_DEPS = 2;
|
|
|
|
|
|
|
|
|
|
protected $lockedRepository;
|
|
|
|
|
protected $requires = array();
|
|
|
|
@ -83,7 +96,7 @@ class Request
|
|
|
|
|
|
|
|
|
|
public function getUpdateAllowTransitiveRootDependencies()
|
|
|
|
|
{
|
|
|
|
|
return $this->updateAllowTransitiveDependencies === self::UPDATE_TRANSITIVE_ROOT_DEPENDENCIES;
|
|
|
|
|
return $this->updateAllowTransitiveDependencies === self::UPDATE_LISTED_WITH_TRANSITIVE_DEPS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getRequires()
|
|
|
|
|