public function add(string $name, RepositoryFactoryInterface $factory): void
    {
        $this->factories[$name] = $factory;
    }
public function add(string $name, RepositoryFactoryInterface $factory): void
    {
        $this->factories[$name] = $factory;
    }
public function add ( string $ name , RepositoryFactoryInterface $ factory ) : void { $ this -> factories [ $ name ] = $ factory ; }
Add repository factory.

@param string                     $name    factory name
@param RepositoryFactoryInterface $factory
Add repository factory .