Skip to content

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.

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.

2 participants