alexandrebulete / ddd-doctrine-bundle
Symfony Bundle for DDD Doctrine Bridge - Service wiring and configuration
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/alexandrebulete/ddd-doctrine-bundle
Requires
- php: ^8.2
- alexandrebulete/ddd-doctrine-bridge: ^1.0
- symfony/config: ^7.0
- symfony/dependency-injection: ^7.0
- symfony/framework-bundle: ^7.0
README
Symfony Bundle for the DDD Doctrine Bridge. Provides service wiring and configuration for Doctrine integration.
Installation
composer require alexandrebulete/ddd-doctrine-bundle
Configuration
Add the bundle to your config/bundles.php:
return [ // ... AlexandreBulete\DddDoctrineBundle\DddDoctrineBundle::class => ['all' => true], ];
Features
This bundle automatically registers services from ddd-doctrine-bridge:
DoctrineRepositorybase class available for autowiringDoctrinePaginatoravailable for autowiring
Doctrine Types Registration
Register your custom Doctrine types in config/packages/doctrine.yaml:
doctrine: dbal: types: post_id: App\Post\Infrastructure\Doctrine\Type\PostIdType post_title: App\Post\Infrastructure\Doctrine\Type\PostTitleType