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

Convert old CLI standalone commands to laminas-cli commands #176

Merged
merged 6 commits into from
Apr 5, 2023

Conversation

boesing
Copy link
Member

@boesing boesing commented Feb 21, 2023

Q A
Documentation no
Bugfix no
BC Break yes
New Feature yes

Description

This converts the existing CLI commands to symfony commands which can be used with laminas-cli.
These should get automatically registered to upstream projects once symfony/console is available.

@froschdesign
Copy link
Member

froschdesign commented Feb 21, 2023

@boesing
I will take over the documentation. See #177

This avoids us to mock method return values due to the lack of native return types.

Signed-off-by: Maximilian Bösing <[email protected]>
@boesing boesing force-pushed the qa/laminas-cli-commands branch from 7efd5e7 to 0fe2d78 Compare February 21, 2023 19:28
…sumed

This also marks the existing CLI commands as internal as these are not meant to be instantiated from any project.

Signed-off-by: Maximilian Bösing <[email protected]>
@boesing boesing force-pushed the qa/laminas-cli-commands branch from 771bbcb to 7bd2668 Compare March 30, 2023 19:25
src/ConfigProvider.php Outdated Show resolved Hide resolved
src/Command/ConfigDumperCommand.php Show resolved Hide resolved
…atic

There can be too many side-effects, i.e. by having cached configs, etc. and thus, we decided to drop this.

Signed-off-by: Maximilian Bösing <[email protected]>
@boesing boesing merged commit 4a9c01b into laminas:4.0.x Apr 5, 2023
@boesing boesing deleted the qa/laminas-cli-commands branch April 5, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert commands to laminas-cli symfony commands
4 participants