Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Doctrine Repository Factory with PHP-DI injection support

License

Notifications You must be signed in to change notification settings

autorusltd/doctrine-repository-factory

Repository files navigation

Doctrine Repository Factory with PHP-DI injection support

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License

Installation (via composer)

composer require arus/doctrine-repository-factory

How to use?

use Arus\Doctrine\RepositoryFactory\InjectableRepositoryFactory;

/** @var $config \Doctrine\ORM\Configuration */
/** @var $container \DI\Container */

$config->setRepositoryFactory(new InjectableRepositoryFactory($container));

Test run

composer test

Useful links