public function createPool()
    {
        $pool = new RepositoryPool();

        foreach ($this->definitions as $definition) {
            $pool->addRepositoryDefinition($definition);
        }

        return $pool;
    }
public function createPool()
    {
        $pool = new RepositoryPool();

        foreach ($this->definitions as $definition) {
            $pool->addRepositoryDefinition($definition);
        }

        return $pool;
    }
public function createPool ( ) { $ pool = new RepositoryPool ( ) ; foreach ( $ this -> definitions as $ definition ) { $ pool -> addRepositoryDefinition ( $ definition ) ; } return $ pool ; }
Factory method for the EntityPool

@return RepositoryPoolInterface
Factory method for the EntityPool