Skip to content

[BREAKING] Unify Infrastructure layer and add Gateway/Presenter componentsΒ #3

@kadevland

Description

@kadevland

🎯 Issue Summary

Unify all Infrastructure layer components under consistent paths for Clean Architecture compliance. Move Database components to Infrastructure for coherence and add Gateway/Presenter support.

πŸ’₯ Breaking Change Details

Current Behavior (v1.0.x)

'migration' => 'Database/Migrations',
'factory' => 'Database/Factories',
'seeder' => 'Database/Seeders',

New Behavior (v1.1.x)

'migration' => 'Infrastructure/Migrations',
'factory' => 'Infrastructure/Factories',
'seeder' => 'Infrastructure/Seeders',

πŸ†• New Infrastructure Components

folders_to_generate

'Infrastructure/Migrations',    // moved from Database/Migrations
'Infrastructure/Factories',     // moved from Database/Factories
'Infrastructure/Seeders',       // moved from Database/Seeders
'Infrastructure/Gateways',      // new component
'Presentation/Presenters',      // new component

paths

'gateway' => 'Infrastructure/Gateways',
'presenter' => 'Presentation/Presenters',

suffixes

'gateway' => 'Gateway',
'presenter' => 'Presenter',

stubs

'gateway' => 'easymodules/gateway.stub',
'presenter' => 'easymodules/presenter.stub',

Test Updates

Update tests to validate Infrastructure layer unification and new Gateway/Presenter component generation

Metadata

Metadata

Assignees

Projects

Status

Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions