public static function tearDownAfterClass()
 {
     $target = __DIR__ . '/../../../tmp/TestContentArchive';
     $fs = new Filesystem();
     $fs->remove($target);
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $fileManager = new DirectoryBasedFilesAccess(__DIR__ . '/../../resources/Files');
     $fileManager->enableImageSizeCalculation();
     $this->fileManager = $fileManager;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordsFileConfiguration();
     $configuration->addContentType('temp', __DIR__ . '/../../resources/RecordsFileExample/temp.cmdl', __DIR__ . '/../../resources/RecordsFileExample/temp.json');
     $connection = $configuration->createReadWriteConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new ContentArchiveConfiguration();
     $configuration->setContentArchiveFolder(__DIR__ . '/../../resources/ContentArchiveExample1');
     $connection = $configuration->createReadOnlyConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordsFileHttpConfiguration();
     $configuration->addContentType('profiles', 'https://s3-eu-west-1.amazonaws.com/backup01.contentbox.io/da08517dc866617a075c0c2d38c5fb95/profiles.default.default.json', 'https://s3-eu-west-1.amazonaws.com/backup01.contentbox.io/da08517dc866617a075c0c2d38c5fb95/profiles.cmdl');
     $connection = $configuration->createReadOnlyConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordFilesConfiguration();
     $configuration->addContentType('profiles', __DIR__ . '/../../resources/RecordsFileExample/profiles.cmdl', __DIR__ . '/../..//resources/RecordFilesExample/records/profiles');
     $connection = $configuration->createReadOnlyConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     if (defined('S3_KEY')) {
         $fileManager = new S3FilesAccess(S3_KEY, S3_SECRET, S3_BUCKET, S3_BASEPATH, S3_REGION);
         $this->fileManager = $fileManager;
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public function setUp()
 {
     $target = __DIR__ . '/../../../tmp/ExampleContentArchive';
     $configuration = new ContentArchiveConfiguration();
     $configuration->setContentArchiveFolder($target);
     $connection = $configuration->createReadWriteConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $target = __DIR__ . '/../../../tmp/RecordFilesReadWriteConnection';
     $configuration = new RecordFilesConfiguration();
     $configuration->addContentType('profiles', $target . '/profiles.cmdl', $target . '/records/profiles');
     $configuration->addContentType('test', $target . '/test.cmdl', $target . '/records/test');
     $connection = $configuration->createReadWriteConnection();
     $this->connection = $connection;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordsFileGitConfiguration();
     $configuration->setDirectory(__DIR__ . '/../../../tmp/git')->setPrivateKey('/var/www/github/gitrepos/id_rsa');
     $configuration->setRemoteUrl('git@bitbucket.org:nhagemann/anycontent-git-repository.git');
     $configuration->setUniqueConnection(300);
     $configuration->addContentType('profiles', 'profiles.cmdl', 'profiles.json');
     $this->connection = $configuration->createReadWriteConnection();
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     $configuration = new RecordsFileFirebaseConfiguration();
     if (defined('PHPUNIT_CREDENTIALS_FIREBASE_URL')) {
         $configuration->setFirebase(PHPUNIT_CREDENTIALS_FIREBASE_URL, PHPUNIT_CREDENTIALS_FIREBASE_TOKEN, 'phpunit');
         $configuration->addContentType('profiles', 'profiles/cmdl', 'profiles/data');
         $connection = $configuration->createReadOnlyConnection();
         $this->connection = $connection;
     }
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     if (defined('PHPUNIT_CREDENTIALS_RESTLIKE_URL1')) {
         $configuration = new RestLikeConfiguration();
         $configuration->setUri(PHPUNIT_CREDENTIALS_RESTLIKE_URL1);
         $connection = $configuration->createReadOnlyConnection();
         $configuration->addContentTypes();
         $this->connection = $connection;
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public static function setUpBeforeClass()
 {
     $target = __DIR__ . '/../../../tmp/ExampleContentArchive';
     $source = __DIR__ . '/../../resources/ContentArchiveExample2';
     $fs = new Filesystem();
     if (file_exists($target)) {
         $fs->remove($target);
     }
     $fs->mirror($source, $target);
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     if (defined('PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_HOST')) {
         $configuration = new MySQLSchemalessConfiguration();
         $configuration->initDatabase(PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_HOST, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_DBNAME, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_USERNAME, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_PASSWORD);
         $configuration->setCMDLFolder(__DIR__ . '/../../resources/ContentArchiveExample1/cmdl');
         $configuration->addContentTypes('phpunit');
         $connection = $configuration->createReadWriteConnection();
         $this->connection = $connection;
         $repository = new Repository('phpunit', $connection);
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public function setUp()
 {
     if (defined('PHPUNIT_CREDENTIALS_RESTLIKE_URL2')) {
         $configuration = new RestLikeConfiguration();
         $configuration->setUri(PHPUNIT_CREDENTIALS_RESTLIKE_URL1);
         $connection = $configuration->createReadWriteConnection();
         $configuration->addContentTypes();
         $configuration->addConfigTypes();
         $this->connection = $connection;
         $fileManager = new RestLikeFilesAccess($configuration);
         $this->fileManager = $fileManager;
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public function setUp()
 {
     $configuration = new RecordsFileConfiguration();
     $configuration->addContentType('profiles', __DIR__ . '/../../resources/RecordsFileExample/profiles.cmdl', __DIR__ . '/../../resources/RecordsFileExample/profiles.json');
     $connection = $configuration->createReadOnlyConnection();
     $repository = new CachingRepository('phpunit', $connection);
     $fs = new Filesystem();
     $fs->remove(__DIR__ . '/../../../tmp/phpfilecache');
     $fs->mkdir(__DIR__ . '/../../../tmp/phpfilecache');
     $cache = new PhpFileCache(__DIR__ . '/../../../tmp/phpfilecache');
     $repository->setCacheProvider($cache);
     $this->repository = $repository;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function setUp()
 {
     if (defined('PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_HOST')) {
         $target = __DIR__ . '/../../../tmp/MySqlSchemaLessCMDL';
         $configuration = new MySQLSchemalessConfiguration();
         $configuration->initDatabase(PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_HOST, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_DBNAME, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_USERNAME, PHPUNIT_CREDENTIALS_MYSQL_SCHEMALESS_PASSWORD);
         $configuration->setRepositoryName('phpunit');
         $configuration->addContentTypes();
         $configuration->addConfigTypes();
         $connection = $configuration->createReadWriteConnection();
         $this->connection = $connection;
         $this->repository = new Repository('phpunit', $connection);
         KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
     }
 }
 public function setUp()
 {
     $target = __DIR__ . '/../../../tmp/RecordsFileExample';
     $configuration = new RecordsFileConfiguration();
     $configuration->addContentType('profiles', $target . '/profiles.cmdl', $target . '/profiles.json');
     $connection = $configuration->createReadWriteConnection();
     $this->connection = $connection;
     $repository = new CachingRepository('phpunit', $connection);
     $repository->selectLastModifiedCacheStrategy();
     $fs = new Filesystem();
     $fs->remove(__DIR__ . '/../../../tmp/phpfilecache');
     $fs->mkdir(__DIR__ . '/../../../tmp/phpfilecache');
     $cache = new PhpFileCache(__DIR__ . '/../../../tmp/phpfilecache');
     $repository->setCacheProvider($cache);
     $this->repository = $repository;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\TextFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\LinkFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\EmailFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\PartitionFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\RichtextTinyMCEFormElements', ['cdn' => false]);
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\SourceCodeFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\SelectionFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\NumberFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\RangeFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\DateTimeFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\FileFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\SequenceFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\InsertFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\ReferenceFormElements');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\GeoLocationFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\TableFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\ColorFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\PasswordFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\EmailFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\LinkFormElement');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Edit\\Exchange');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Libs\\jQueryAutosize');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Libs\\jQueryMiniColors');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\Admin\\CMDL');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\View\\Glossary');
$app->registerModule('AnyContent\\CMCK\\Modules\\Backend\\View\\CustomList');
$app->registerModule('AnyContent\\Dev');
\KVMLogger\KVMLoggerFactory::createWithKLogger('../');
//\KVMLogger\KVMLoggerFactory::instance()->logRequest();
//\KVMLogger\KVMLoggerFactory::instance()->enablePHPExceptionLogging();
//\KVMLogger\KVMLoggerFactory::instance()->enablePHPErrorLogging();