[mod] Falling back to requiere
The namespace autoload was removed for the application to fix the error loading pdo
This commit is contained in:
parent
8b09f75d3a
commit
52a77c9029
@ -27,8 +27,7 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\Service\\": "src/service",
|
||||
"App\\Application\\": "src/application"
|
||||
"App\\Service\\": "src/service"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
2
api-payroll/composer.lock
generated
2
api-payroll/composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "9f4397e11cb2603e7754216c4f59c7ad",
|
||||
"hash": "0057ecef520d7a1c12ceed653a4a5b2a",
|
||||
"content-hash": "5e16cb7781829836a704bd8767830833",
|
||||
"packages": [
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
namespace App\Application;
|
||||
|
||||
class SessionApplication{
|
||||
// The to be connection
|
||||
|
@ -31,6 +31,7 @@ $container['sessionApplication'] = function ($c) {
|
||||
$cryptographyService = new App\Service\CryptographyService($cryptographySettings);
|
||||
|
||||
$mysqlSettings = $c->get('settings')['mysql'];
|
||||
$sessionApplication = new App\Application\SessionApplication($mysqlSettings, $cryptographyService);
|
||||
require dirname(__FILE__) . "/../src/application/cryptographyService.php";
|
||||
$sessionApplication = new cryptographyService($mysqlSettings, $cryptographyService);
|
||||
return $sessionApplication;
|
||||
};
|
Loading…
Reference in New Issue
Block a user