1
0
Fork 0

Clean up properties that belong in PackageDiscoveryTrait

pull/10545/head
Jordi Boggiano 2022-02-18 08:26:59 +01:00
parent 40de07569d
commit 2e40cdf2dc
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
3 changed files with 5 additions and 13 deletions

View File

@ -48,12 +48,6 @@ class InitCommand extends BaseCommand
{ {
use PackageDiscoveryTrait; use PackageDiscoveryTrait;
// Properties for PackageDiscoveryTrait
/** @var ?CompositeRepository */
protected $repos;
/** @var RepositorySet[] */
private $repositorySets;
/** @var array<string, string> */ /** @var array<string, string> */
private $gitConfig; private $gitConfig;
@ -71,7 +65,6 @@ class InitCommand extends BaseCommand
new InputOption('name', null, InputOption::VALUE_REQUIRED, 'Name of the package'), new InputOption('name', null, InputOption::VALUE_REQUIRED, 'Name of the package'),
new InputOption('description', null, InputOption::VALUE_REQUIRED, 'Description of package'), new InputOption('description', null, InputOption::VALUE_REQUIRED, 'Description of package'),
new InputOption('author', null, InputOption::VALUE_REQUIRED, 'Author name of package'), new InputOption('author', null, InputOption::VALUE_REQUIRED, 'Author name of package'),
// new InputOption('version', null, InputOption::VALUE_NONE, 'Version of package'),
new InputOption('type', null, InputOption::VALUE_OPTIONAL, 'Type of package (e.g. library, project, metapackage, composer-plugin)'), new InputOption('type', null, InputOption::VALUE_OPTIONAL, 'Type of package (e.g. library, project, metapackage, composer-plugin)'),
new InputOption('homepage', null, InputOption::VALUE_REQUIRED, 'Homepage of package'), new InputOption('homepage', null, InputOption::VALUE_REQUIRED, 'Homepage of package'),
new InputOption('require', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Package to require with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'), new InputOption('require', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Package to require with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'),

View File

@ -24,6 +24,11 @@ use Symfony\Component\Console\Output\OutputInterface;
*/ */
trait PackageDiscoveryTrait trait PackageDiscoveryTrait
{ {
/** @var ?CompositeRepository */
private $repos;
/** @var RepositorySet[] */
private $repositorySets;
/** /**
* @return CompositeRepository * @return CompositeRepository
*/ */

View File

@ -43,12 +43,6 @@ class RequireCommand extends BaseCommand
{ {
use PackageDiscoveryTrait; use PackageDiscoveryTrait;
// Properties for PackageDiscoveryTrait
/** @var ?CompositeRepository */
protected $repos;
/** @var RepositorySet[] */
private $repositorySets;
/** @var bool */ /** @var bool */
private $newlyCreated; private $newlyCreated;
/** @var bool */ /** @var bool */