Skip to content

v0.10.0

Compare
Choose a tag to compare
@jaspertey jaspertey released this 23 Mar 21:02
· 47 commits to main since this release
bce9ab5

[0.10.0] - 2024-03-23

Added

  • Add ddd.domain_path and ddd.domain_namespace to config, to specify the path to the domain layer and root domain namespace more explicitly (replaces the previous ddd.paths.domains config).
  • Implement Lunarstorm\LaravelDDD\Factories\HasDomainFactory trait which can be used on domain models that are unable to extend the base domain model.

Changed

  • Default base-model.php.stub now utilizes the HasDomainFactory trait.

Deprecated

  • Config ddd.paths.domains deprecated in favour of ddd.domain_path and ddd.domain_namespace. Existing config files published prior to this release should remove ddd.paths.domains and add ddd.domain_path and ddd.domain_namespace accordingly.
    /*
    |--------------------------------------------------------------------------
    | Domain Path
    |--------------------------------------------------------------------------
    |
    | The path to the domain folder relative to the application root.
    |
    */
    'domain_path' => 'src/Domain',

    /*
    |--------------------------------------------------------------------------
    | Domain Namespace
    |--------------------------------------------------------------------------
    |
    | The root domain namespace.
    |
    */
    'domain_namespace' => 'Domain',

    // Deprecated:
    // 'paths' => [
    //     //
    //     // Path to the Domain layer.
    //     //
    //     'domains' => 'src/Domain',
    // ],

What's Changed

  • Refactor domain path and namespace configuration. by @jaspertey in #43
  • HasDomainFactory trait implementation. by @jaspertey in #44

Full Changelog: v0.9.0...v0.10.0