[mod] Falling back to requiere

The namespace autoload was removed for the application to fix the error loading pdo
This commit is contained in:
Jose Pabl Domingo Aramburo Sanchez 2018-08-05 03:55:55 -06:00
parent 8b09f75d3a
commit 52a77c9029
4 changed files with 4 additions and 5 deletions

View File

@ -27,8 +27,7 @@
},
"autoload": {
"psr-4": {
"App\\Service\\": "src/service",
"App\\Application\\": "src/application"
"App\\Service\\": "src/service"
}
},
"config": {

View File

@ -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": [
{

View File

@ -1,5 +1,4 @@
<?php
namespace App\Application;
class SessionApplication{
// The to be connection

View File

@ -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;
};