Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 715 Bytes

0-2-zend2.md

File metadata and controls

22 lines (18 loc) · 715 Bytes

Integrating with frameworks - Zend Framework 2 and 3

Replacing the default repository type

Doctrine integration with Zend Framework 2 can be achieved using the DoctrineORM bundle. This bundle contains configuration options for the repository. To replace the default repository type, provide a class name of Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository.

// Application configuration
use Happyr\DoctrineSpecification\Repository\EntitySpecificationRepository;

return [
    'doctrine' => [
        'configuration' => [
            'orm_default' => [
                'default_repository_class' => EntitySpecificationRepository::class,
            ],
        ],
    ],
];