[add] Applications added to auto load
This commit is contained in:
parent
816b1e356a
commit
1a4440a99f
@ -27,7 +27,8 @@
|
|||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"App\\Service\\": "src/service"
|
"App\\Service\\": "src/service",
|
||||||
|
"App\\Application\\": "src/application"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
|
16
api-payroll/composer.lock
generated
16
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",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "0057ecef520d7a1c12ceed653a4a5b2a",
|
"hash": "9f4397e11cb2603e7754216c4f59c7ad",
|
||||||
"content-hash": "5e16cb7781829836a704bd8767830833",
|
"content-hash": "5e16cb7781829836a704bd8767830833",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
@ -733,16 +733,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpspec/prophecy",
|
"name": "phpspec/prophecy",
|
||||||
"version": "1.7.6",
|
"version": "1.8.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpspec/prophecy.git",
|
"url": "https://github.com/phpspec/prophecy.git",
|
||||||
"reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712"
|
"reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
|
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
|
||||||
"reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
|
"reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -754,12 +754,12 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpspec/phpspec": "^2.5|^3.2",
|
"phpspec/phpspec": "^2.5|^3.2",
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5"
|
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.7.x-dev"
|
"dev-master": "1.8.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@ -792,7 +792,7 @@
|
|||||||
"spy",
|
"spy",
|
||||||
"stub"
|
"stub"
|
||||||
],
|
],
|
||||||
"time": "2018-04-18 13:57:24"
|
"time": "2018-08-05 17:53:17"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace App\Application;
|
||||||
|
|
||||||
class SessionApplication{
|
class SessionApplication{
|
||||||
private $pdo;
|
private $pdo;
|
||||||
|
@ -55,7 +55,6 @@ $container['cryptographyService'] = function ($c) {
|
|||||||
|
|
||||||
// The session application
|
// The session application
|
||||||
$container['sessionApplication'] = function ($c) {
|
$container['sessionApplication'] = function ($c) {
|
||||||
require dirname(__FILE__) . "/../src/application/SessionApplication.php";
|
$sessionApplication = new App\Application\SessionApplication($c['mysql'], $c['cryptographyService']);
|
||||||
$sessionApplication = new SessionApplication($c['mysql'], $c['cryptographyService']);
|
|
||||||
return $sessionApplication;
|
return $sessionApplication;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user