public function createRestLikeRepository($name, $baseUrl, $options = [], $cache = true)
 {
     $this->options = $options;
     $configuration = new RestLikeConfiguration();
     $configuration->setUri($baseUrl);
     $connection = $configuration->createReadOnlyConnection();
     $configuration->addContentTypes();
     $configuration->addConfigTypes();
     $fileManager = null;
     $repository = $this->createRepository($name, $connection, $fileManager, $this->getOption('title', null), $cache);
     return $repository;
 }
 public function setUp()
 {
     if (defined('PHPUNIT_CREDENTIALS_RESTLIKE_URL2')) {
         $configuration = new RestLikeConfiguration();
         $configuration->setUri(PHPUNIT_CREDENTIALS_RESTLIKE_URL2);
         $connection = $configuration->createReadWriteConnection();
         $configuration->addContentTypes();
         $configuration->addConfigTypes();
         $this->connection = $connection;
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public function createRestLikeRepository($name, $baseUrl, $options = [], $cache = true, $files = true)
 {
     $this->options = $options;
     $configuration = new RestLikeConfiguration();
     $configuration->setUri($baseUrl);
     $connection = $configuration->createReadWriteConnection();
     $contentTypeNames = false;
     if ($this->hasOption('contenttypes')) {
         $contentTypeNames = $this->getOption('contenttypes');
     }
     $configuration->addContentTypes($contentTypeNames);
     $configTypeNames = false;
     if ($this->hasOption('configtypes')) {
         $configTypeNames = $this->getOption('configtypes');
     }
     $configuration->addConfigTypes($configTypeNames);
     $fileManager = null;
     if ($files) {
         $fileManager = new RestLikeFilesAccess($configuration);
     }
     $repository = $this->createRepository($name, $connection, $fileManager, $this->getOption('title', null), $cache);
     return $repository;
 }