Merge pull request #13 from monarc-project/feature/remove-db-abstract

Refactored the backend code
master
Ruslan Baidan 2024-10-04 19:15:41 +02:00 committed by GitHub
commit ac7ccee478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 1448 additions and 618 deletions

View File

@ -1 +1 @@
{"major":2, "minor":12, "hotfix":6}
{"major":2, "minor":13, "hotfix":1}

View File

@ -40,18 +40,21 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"ext-json": "*",
"ext-pdo": "*",
"monarc/backoffice": "^2.12.6",
"monarc/core": "^v2.12.6",
"ext-openssl": "*",
"monarc/backoffice": "^2.13.1",
"monarc/core": "^2.13.1",
"laminas/laminas-mvc": "^3.1",
"laminas/laminas-di": "^3.1",
"laminas/laminas-permissions-rbac": "^3.0",
"laminas/laminas-log": "^2.11",
"laminas/laminas-i18n": "^2.9",
"laminas/laminas-dependency-plugin": "^2.0",
"endroid/qr-code": "^4.4"
"laminas/laminas-mvc-middleware": "^2.2",
"endroid/qr-code": "^4.4",
"laminas/laminas-i18n-resources": "^2.9"
},
"require-dev": {
"roave/security-advisories": "dev-latest"

2005
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,7 @@ return array(
'Laminas\Mail',
'Laminas\Validator',
'Laminas\I18n',
'Laminas\Mvc\Middleware',
'DoctrineModule',
'DoctrineORMModule',
'Monarc\Core',

View File

@ -28,7 +28,7 @@ return array(
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDO\MySQL\Driver',
'driverClass' => Doctrine\DBAL\Driver\PDO\MySQL\Driver::class,
'params' => array(
'host' => 'localhost',
'port' => 3306,
@ -42,7 +42,7 @@ return array(
),
),
'orm_cli' => array(
'driverClass' => 'Doctrine\DBAL\Driver\PDO\MySQL\Driver',
'driverClass' => Doctrine\DBAL\Driver\PDO\MySQL\Driver::class,
'params' => array(
'host' => 'localhost',
'port' => 3306,

View File

@ -11,27 +11,29 @@
* credentials from accidentally being committed into version control.
*/
return array(
'doctrine' => array(
'connection' => array(
'orm_default' => array(
'params' => array(
$package_json = json_decode(file_get_contents('./package.json'), true);
return [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => [
'host' => 'localhost',
'user' => 'root',
'password' => 'password',
'dbname' => 'monarc_common',
),
),
'orm_cli' => array(
'params' => array(
],
],
'orm_cli' => [
'params' => [
'host' => 'localhost',
'user' => 'root',
'password' => 'password',
'dbname' => 'monarc_master',
),
),
),
),
],
],
],
],
/* Link with (ModuleCore)
config['languages'] = [
@ -49,10 +51,13 @@ return array(
),
]
*/
'activeLanguages' => array('fr','en','de','nl'),
'monarc' => array(
'appVersion' => $package_json['version'],
'activeLanguages' => ['fr','en','de','nl'],
'monarc' => [
'ttl' => 20, // timeout
'salt' => '', // salt privé pour chiffrement pwd
),
);
],
];

View File

@ -1,6 +1,6 @@
{
"name": "MONARC Back Office",
"version": "2.12.6",
"version": "2.13.1",
"description": "MONARC Back Office",
"private": true,
"repository": {

2
vagrant/Vagrantfile vendored
View File

@ -55,7 +55,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#
# # Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--name", "MONARC BO - Ubuntu 22.04 - DEV"]
vb.customize ["modifyvm", :id, "--name", "MONARC BO - Ubuntu 22.04 - New"]
end
#
# View the documentation for the provider you're using for more