Commit 650187b1 authored by Tobias Munk's avatar Tobias Munk

more readable config

parent f2e108d6
Pipeline #76546 passed with stages
in 4 minutes and 20 seconds
......@@ -90,12 +90,12 @@ if (getenv('APP_ASSET_USE_BUNDLED')) {
);
}
// set convenience variables
$boxLayout = '@backend/views/layouts/box';
$isHttps = getenv('HTTPS') === 'on';
$dbAttributes = [
PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT => 0
];
if (getenv('MYSQL_ATTR_SSL_CA')) {
$dbAttributes[PDO::MYSQL_ATTR_SSL_CA] = getenv('MYSQL_ATTR_SSL_CA');
}
......@@ -117,8 +117,6 @@ SQL;
return $event;
});
$boxLayout = '@backend/views/layouts/box';
// Basic configuration, used in web and console applications
return [
'id' => 'app',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment