Skip to content

Add frosh-tools:health-check-json command#312

Merged
shyim merged 2 commits intomainfrom
shyim/add-health-check-json-command
Jan 14, 2026
Merged

Add frosh-tools:health-check-json command#312
shyim merged 2 commits intomainfrom
shyim/add-health-check-json-command

Conversation

@shyim
Copy link
Member

@shyim shyim commented Feb 6, 2025

Add a new command frosh-tools:health-check-json to return a JSON with all health check checkers result merged like with /health/status route.

  • Create HealthCheckJsonCommand class in src/Command/HealthCheckJsonCommand.php
    • Implement the Command class from Symfony\Component\Console\Command\Command
    • Inject health checkers in the constructor
    • Implement the execute method to collect health check results and return as JSON
    • Register the command with the name frosh-tools:health-check-json
  • Modify src/Resources/config/services.xml
    • Register the new HealthCheckJsonCommand class as a service

For more details, open the Copilot Workspace session.

Add a new command `frosh-tools:health-check-json` to return a JSON with all health check checkers result merged like with `/health/status` route.

* Create `HealthCheckJsonCommand` class in `src/Command/HealthCheckJsonCommand.php`
  - Implement the `Command` class from `Symfony\Component\Console\Command\Command`
  - Inject health checkers in the constructor
  - Implement the `execute` method to collect health check results and return as JSON
  - Register the command with the name `frosh-tools:health-check-json`
* Modify `src/Resources/config/services.xml`
  - Register the new `HealthCheckJsonCommand` class as a service

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/FriendsOfShopware/FroshTools?shareId=XXXX-XXXX-XXXX-XXXX).
@shyim
Copy link
Member Author

shyim commented Feb 6, 2025

@frosh-automation create-instance

@frosh-automation
Copy link
Contributor

Hey 👋,

I have created for you an Shopware Instalation with the current changes made here.

You can access the Shop here: https://t7ee118-gtnvu9gs3alg0.zrh1.namespaced.app

The URL is only for FriendsOfShopware members.

@shyim
Copy link
Member Author

shyim commented Jan 14, 2026

@frosh-automation fix-cs

@shyim shyim force-pushed the shyim/add-health-check-json-command branch 3 times, most recently from 047e606 to 744181b Compare January 14, 2026 13:36
@shyim shyim force-pushed the shyim/add-health-check-json-command branch from 744181b to c7d1274 Compare January 14, 2026 13:38
@shyim shyim merged commit 809222c into main Jan 14, 2026
3 checks passed
@shyim shyim deleted the shyim/add-health-check-json-command branch January 14, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant