Skip to content

feat: move season domain to modular convention#70

Closed
gvieira18 wants to merge 7 commits into3.xfrom
feat/move-season-to-modular
Closed

feat: move season domain to modular convention#70
gvieira18 wants to merge 7 commits into3.xfrom
feat/move-season-to-modular

Conversation

@gvieira18
Copy link
Member

This pull request migrates the Season module to a new PSR-4-compliant structure under the app-modules/season directory, updating namespaces, file locations, and autoloading accordingly. It also introduces a new composer.json for modular loading, updates service providers, and refactors model, factory, and seeder locations. The changes modernize the module, improve maintainability, and ensure compatibility with Laravel's package discovery.

Module Restructuring and Namespace Updates:

  • Migrated all Season module files from the Heart\Season namespace to He4rt\Season, updating all class references and file locations to match PSR-4 standards.

  • Replaced the old service provider and route provider with a new SeasonServiceProvider in the correct namespace and location, and moved route definitions to a dedicated routes/season-routes.php file.

Autoloading and Composer Integration:

  • Added a new composer.json in app-modules/season to define PSR-4 autoloading for source, tests, factories, and seeders, and to enable Laravel package discovery for the new service provider.

Factories and Seeders Refactoring:

  • Relocated and updated the SeasonFactory and SeasonSeeder to the new structure and namespaces, ensuring compatibility with the new model location and autoloading.

Testing Improvements:

  • Added a new feature test GetCurrentSeasonTest to verify the endpoint for fetching the current season, improving test coverage.

Domain Layer Cleanup:

  • Removed obsolete files from the old domain, infrastructure, and provider layers, consolidating the module into the new structure.

adds pest-plugin-drift to streamline refactoring to pest testing
- add he4rt/season as a new dependency
- update dependency he4rt/badge to 1.0.0
- update dependency laravel/framework to 12.36.1
- move season-related classes to a modular structure
- update ns for SeasonFactory, SeasonRepository, and related classes
- add season routes for retrieving current and all seasons
@gvieira18 gvieira18 self-assigned this Oct 31, 2025
@gvieira18 gvieira18 closed this Oct 31, 2025
@gvieira18 gvieira18 deleted the feat/move-season-to-modular branch October 31, 2025 20:22
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