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

[1.x] Refactor and expand generator commands #45

Merged
merged 19 commits into from
Mar 24, 2024
Merged

Conversation

JasperTey
Copy link
Member

@JasperTey JasperTey commented Mar 24, 2024

Added

  • ddd:list to show a summary of current domains in the domain folder.
  • Additional generator commands that extend Laravel's generators and funnel the generated objects into the domain layer:
    • ddd:cast {domain}:{name}
    • ddd:channel {domain}:{name}
    • ddd:command {domain}:{name}
    • ddd:enum {domain}:{name} (Laravel 11 only)
    • ddd:event {domain}:{name}
    • ddd:exception {domain}:{name}
    • ddd:job {domain}:{name}
    • ddd:listener {domain}:{name}
    • ddd:mail {domain}:{name}
    • ddd:notification {domain}:{name}
    • ddd:observer {domain}:{name}
    • ddd:policy {domain}:{name}
    • ddd:provider {domain}:{name}
    • ddd:resource {domain}:{name}
    • ddd:rule {domain}:{name}
    • ddd:scope {domain}:{name}

Changed

  • BREAKING: ddd:* commands no longer receive a dedicated domain argument (e.g., ddd:action Invoicing CreateInvoice). The domain is instead specified in two ways:
    • As an option: ddd:action CreateInvoice --domain=Invoicing (this will take precedence).
    • Shorthand prefix within the name: ddd:action Invoicing:CreateInvoice.

@JasperTey JasperTey changed the title Refactor and expand generator commands [1.x] Refactor and expand generator commands Mar 24, 2024
@JasperTey JasperTey marked this pull request as ready for review March 24, 2024 22:47
@JasperTey JasperTey merged commit 43fa48d into next Mar 24, 2024
23 checks passed
@JasperTey JasperTey deleted the proxy-generators branch March 24, 2024 23:53
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