createRepositoryManager() public method

Creates a new RepositoryManager (Adapter object) with the given configuration.
public createRepositoryManager ( string $name, array $adapterConfig, Config $globalConfig ) : Gush\Adapter\Adapter
$name string
$adapterConfig array
$globalConfig Gush\Config
return Gush\Adapter\Adapter
コード例 #1
0
ファイル: AdapterFactoryTest.php プロジェクト: gushphp/gush
 public function testCannotCreateUnregisteredAdapter()
 {
     $this->setExpectedException('InvalidArgumentException', 'No Adapter with name "test2" is registered.');
     $this->adapterFactory->createRepositoryManager('test2', [], $this->config);
 }