9 register_shutdown_function(
"fatalErrorHandler");
12 require
__DIR__ .
'/../app/bootstrap.php';
21 }
catch (\Exception $e) {
22 http_response_code(500);
27 foreach (
$deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTIONS) as $connectionData) {
31 \
Magento\Framework\DB\Adapter\Pdo\Mysql::class,
32 [
'config' => $connectionData]
34 $dbAdapter->getConnection();
35 }
catch (\Exception $e) {
36 http_response_code(500);
37 $logger->error(
"MySQL connection failed: " . $e->getMessage());
46 if (!isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND]) ||
47 !isset($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS])) {
48 http_response_code(500);
49 $logger->error(
"Cache configuration is invalid");
52 $cacheBackendClass = $cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND];
55 $backend =
new $cacheBackendClass($cacheConfig[ConfigOptionsListConstants::CONFIG_PATH_BACKEND_OPTIONS]);
56 $backend->test(
'test_cache_id');
57 }
catch (\Exception $e) {
58 http_response_code(500);
59 $logger->error(
"Cache storage is not accessible");
72 $error = error_get_last();
73 if ($error !==
null) {
74 http_response_code(500);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
if($cacheConfigs) fatalErrorHandler()
static createObjectManagerFactory($rootDir, array $initParams)
catch(\Exception $e) foreach($deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_DB_CONNECTIONS) as $connectionData) $cacheConfigs