Clean up properties that belong in PackageDiscoveryTrait
parent
40de07569d
commit
2e40cdf2dc
|
@ -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"'),
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue