Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #46: Support static $defaultDescription property #124

Merged
merged 5 commits into from
Sep 1, 2021

Conversation

samdark
Copy link
Member

@samdark samdark commented Aug 31, 2021

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues #46

@samdark samdark added type:enhancement Enhancement status:code review The pull request needs review. labels Aug 31, 2021
@samdark samdark requested a review from a team August 31, 2021 18:20
@samdark
Copy link
Member Author

samdark commented Aug 31, 2021

@BoShurik does it look alright to you?

src/CommandLoader.php Outdated Show resolved Hide resolved

return new LazyCommand(
$name,
[],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about aliases? In Symfony they stored in default name with | separator:

protected static $defaultName = 'app:my-command|project:my-command|legacy:foo';

It may be useful while refactoring

Copy link
Member Author

@samdark samdark Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added that and hidden commands. It doesn't work too well though. Aliases are displayed but commands could not be accessed using aliases.

@samdark samdark merged commit 1d2cc1e into master Sep 1, 2021
@samdark samdark deleted the 46-lazy-load-commands branch September 1, 2021 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review. type:enhancement Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants