1
0
Fork 0

Update minimum-stability documentation

pull/873/head
Rob Loach 2012-07-04 10:37:28 -04:00
parent 6573fd3f77
commit 4f922ffa28
2 changed files with 6 additions and 5 deletions

View File

@ -472,16 +472,17 @@ Optional.
### minimum-stability <span>(root-only)</span> ### minimum-stability <span>(root-only)</span>
This defines the default behavior for filtering packages by stability. This This defines the default behavior for filtering packages by stability. This
defaults to `dev` but in the future will be switched to `stable`. As such if defaults to `stable`, so if you rely on a `dev` package, you should specify
you rely on a default of `dev` you should specify it in your file to avoid it in your file to avoid surprises.
surprises.
All versions of each package is checked for stability, and those that are less All versions of each package are checked for stability, and those that are less
stable than the `minimum-stability` setting will be ignored when resolving stable than the `minimum-stability` setting will be ignored when resolving
your project dependencies. Specific changes to the stability requirements of your project dependencies. Specific changes to the stability requirements of
a given package can be done in `require` or `require-dev` (see a given package can be done in `require` or `require-dev` (see
[package links](#package-links)). [package links](#package-links)).
Available options are `dev`, `alpha`, `beta`, and `stable`.
### repositories <span>(root-only)</span> ### repositories <span>(root-only)</span>
Custom package repositories to use. Custom package repositories to use.

View File

@ -36,7 +36,7 @@ class SolverProblemsException extends \RuntimeException
} }
if (strpos($text, 'could not be found') || strpos($text, 'no matching package found')) { if (strpos($text, 'could not be found') || strpos($text, 'no matching package found')) {
$text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.\n"; $text .= "\nPotential causes:\n - A typo in the package name\n - The package is not available in a stable-enough version according to your minimum-stability setting\n see http://getcomposer.org/doc/04-schema.md#minimum-stability for more details.\n";
} }
return $text; return $text;