Initial commit

This commit is contained in:
Chris Smith
2025-02-19 14:51:16 +01:00
commit d82a6cad96
198 changed files with 13819 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
return yii\helpers\ArrayHelper::merge(
require __DIR__ . '/main.php',
require __DIR__ . '/main-local.php',
require __DIR__ . '/test.php',
require __DIR__ . '/test-local.php',
[
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '',
],
],
]
);

View File

@@ -0,0 +1,23 @@
<?php
return [
'components' => [
'db' => [
'class' => \yii\db\Connection::class,
'dsn' => 'mysql:host=mysql;dbname=app',
'username' => 'app',
'password' => '123',
'charset' => 'utf8',
],
'queue' => [
'class' => \yii\queue\sync\Queue::class,
'handle' => true, // whether tasks should be executed immediately
],
'mailer' => [
'class' => \yii\symfonymailer\Mailer::class,
'viewPath' => '@common/mail',
// send all mails to a file by default.
'useFileTransport' => true,
],
],
];

View File

@@ -0,0 +1,8 @@
<?php
return [
'company_name' => 'Five Devs',
'product_name' => 'Calorie',
'sonar.url' => 'https://yourname.sonar.software', # no trailing slash
'sonar.bearerToken' => '',
];

View File

@@ -0,0 +1,9 @@
<?php
return [
'components' => [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2advanced_test',
],
],
];