PHP code example of arus / doctrine-repository-factory

1. Go to this page and download the library: Download arus/doctrine-repository-factory library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arus / doctrine-repository-factory example snippets


use Arus\Doctrine\RepositoryFactory\InjectableRepositoryFactory;

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

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