Rubén D
2ccce01acb
chore: Fix unitary tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 17:34:32 +01:00
Rubén D
6a71fe3372
chore: Remove unused methods
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:38:05 +01:00
Rubén D
8ef229f8ed
chore: AccountHistoryRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 16:29:33 +01:00
Rubén D
752d7863c1
chore: Fix interfaces implementation
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 12:10:19 +01:00
Rubén D
4db6bcfcf6
chore: Complete AccountRepository tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 11:56:41 +01:00
Rubén D
0e4e92d7db
chore: Fix properties visibility
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-06 10:06:20 +01:00
Rubén D
fde6e60bd1
chore: Fix tests
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-05 19:34:56 +01:00
Rubén D
8a2bbc8283
chore: Use Aura.SqlQuery for building queries.
...
Refactor AccountRepository and AccountSearchRepository to use Aura.SqlQuery. This will allow to mock queries when testing.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-11-05 09:58:57 +01:00
Rubén D
08ce35a837
chore: Use constants for queries.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-10-31 10:03:59 +01:00
Rubén D
8fe49d064e
chore: Update PHPDoc blocks
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-10-31 09:25:59 +01:00
Rubén D
de06ff5b0f
chore: Move account data models and unit test for account repository.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-07-02 18:01:56 +02:00
Rubén D
11a2509bbb
chore: Setup definitions for adapters.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-26 13:10:32 +02:00
Rubén D
f56bfc22f4
chore: Bootstrap refactoring.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-26 12:30:22 +02:00
Rubén D
fd0de58a23
chore: Move adapters to Domain.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-25 11:13:41 +02:00
Rubén D
ffae1d9426
chore: Allow 0 items on XML export file.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-20 08:31:26 +02:00
Rubén D
9e92093f0e
chore: Skip login controller from session closing.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-20 00:24:36 +02:00
Rubén D
433ff46d3b
fix: Use existing config instead of new one during install
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 23:29:57 +02:00
Rubén D
3c0b3b726a
chore: Use constants for config properties.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 23:00:53 +02:00
Rubén D
8bfff2170f
chore: Avoid handlers and database initialization when not yet installed
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 22:33:27 +02:00
Rubén D
b0a0170860
chore: Move definitions to core package.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 11:55:00 +02:00
Rubén D
ff745a0cd5
feat: Installer refactoring to inject all dependencies at build time.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-19 11:39:59 +02:00
Rubén D
f134a53d55
fix: Missing installer definition and naming.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-18 19:51:38 +02:00
Rubén D
408a44880d
chore: Remove mcrypt dependency.
...
Any sysPass exported file prior to v2.1.0 won't be able to be imported.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-18 19:39:18 +02:00
Rubén D
66dcab2cd0
refactor: Fix initialization errors.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-16 07:54:44 +02:00
Rubén D
ef73720d2b
refactor: Fix initialization errors.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-13 08:02:42 +02:00
Rubén D
0a6f7e4853
refactor: Use helper class to provide dependencies to simple controller.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-12 17:12:04 +02:00
Rubén D
94fdfcede9
refactor: Remove unneeded code form base controllers and improve traits decoupling.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-12 17:00:19 +02:00
Rubén D
7cd18ab2c7
refactor: [WIP] Migrate user pass reset controller.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-12 15:33:11 +02:00
Rubén D
843783d302
refactor: [WIP] Migrate publiclink controller.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-12 10:41:30 +02:00
Rubén D
ad1f0aa2b1
refactor: [WIP] Migrate custom field controller.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-11 21:04:48 +02:00
Rubén D
4a7c4c317b
refactor: [WIP] Migrate access and item manager controllers.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-06 18:11:05 +02:00
Rubén D
10827cf56c
refactor: [WIP] Optimize code.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-06 08:30:53 +02:00
Rubén D
bc8e128138
refactor: [WIP] Remove circular dependency.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-06 08:24:13 +02:00
Rubén D
1c8fb0ea1a
refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.
...
Controllers are being splited into commands to better dependency management.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-06-06 08:17:34 +02:00
Rubén D
a6e34f7b25
chore: Use Application on constructor.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-28 09:14:37 +02:00
Rubén D
41fcc98da7
chore: Minor code tweaks.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-28 09:05:53 +02:00
Rubén D
de0bc2a15b
fix: wrong property declaration.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-24 08:05:41 +02:00
Rubén D
8cef67edbc
chore: Fix wrong syntax.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-22 22:22:00 +02:00
Rubén D
489684f08c
chore: Added MySQL setup class tests.
...
These tests implement a mocked PDO class that behaves like the original one.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-22 22:17:30 +02:00
Rubén D
23672a52b2
chore: Check database connection and use interface for mocking.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 07:36:48 +02:00
Rubén D
2796ef578b
chore: Refactor Installer's constructor signature.
...
This will provide connection data when running instead of building time (object wiring).
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 07:11:24 +02:00
Rubén D
5d3a40961f
chore: Simplify expression.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 06:48:56 +02:00
Rubén D
96b643c6f5
ci: Run core and unitary tests separately and IoC dependency resolution fix.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-20 06:23:28 +02:00
Rubén D
f0e5be2c52
chore: Build mock test for FileBackupService class.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-19 08:25:34 +02:00
Rubén D
f22145b389
chore: Use Application helper class and externalize UpgradeConfigChecker.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 22:04:08 +02:00
Rubén D
98ffc311cf
chore: Refactoring of Bootstrap class into an abstract class.
...
This allows to implement bootstrap classes for each module and simplifies the bootstrap code.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 19:01:28 +02:00
Rubén D
fe349cb6f9
chore: Inject dependencies into modules.
...
Avoid to inject de IoC container and inject required dependencies. A few helper modules have been created to provide common dependencies.
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 18:02:35 +02:00
Rubén D
0b3d6e6bf1
chore: Minor code changes.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 11:49:48 +02:00
Rubén D
4715cb2b8e
chore: Minor code changes.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 11:37:50 +02:00
Rubén D
9f4af8c28e
chore: Remove final because lazy injection is required.
...
Signed-off-by: Rubén D <nuxsmin@syspass.org >
2022-05-16 11:36:37 +02:00