agentsclimarketplace

Register cqrs services

Skill jeffsenso/prestashop-skills/skills/prestashop-module-development/ps9-core-ai/Component/CQRS/skills/register-cqrs-services

Prestashop Developer Skills

Install
npx -y skills add jeffsenso/prestashop-skills --skill register-cqrs-services

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Register all domain handlers and the repository in the Symfony DI container. Handlers are auto-discovered via #[AsCommandHandler] / #[AsQueryHandler] attributes. Trigger: "register CQRS services for {Domain}".

SKILL.md

1.3 KB, as published. Nobody here has run it

register-cqrs-services

Instructions

  1. Find the correct YAML file (check where other domain services are registered — typically per-domain or grouped by layer).
  2. Register {Domain}Repository with autowire: true and autoconfigure: true.
  3. Bind handler interfaces to their concrete implementations.
  4. Handlers with #[AsCommandHandler] / #[AsQueryHandler] attributes are automatically registered with the Symfony Messenger bus — no manual tags needed. Just ensure autoconfigure: true is set.
  5. Run php bin/console debug:container | grep {domain} to verify registration.

Rules

Handler auto-registration via attributes is documented in CQRS/CONTEXT.md. Skill-specific reminders:

  • Register handler interface → concrete class bindings so DI can resolve them
  • Each handler must have exactly one attribute — duplicate registration causes errors

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.