Composer: Be 2.0 compatible by fixing namespaces
This commit is contained in:
parent
82e28cba87
commit
e5be440f06
|
@ -53,11 +53,16 @@
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Engelsystem\\": "src/",
|
"Engelsystem\\": "src/"
|
||||||
"Engelsystem\\Migrations\\": "db/migrations"
|
|
||||||
},
|
},
|
||||||
|
"classmap": ["db/migrations"],
|
||||||
"files": [
|
"files": [
|
||||||
"src/helpers.php"
|
"src/helpers.php"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"Engelsystem\\Test\\": "tests/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Composer\Autoload\ClassLoader;
|
|
||||||
|
|
||||||
require_once __DIR__ . '/../includes/autoload.php';
|
require_once __DIR__ . '/../includes/autoload.php';
|
||||||
|
|
||||||
/** @var ClassLoader $loader */
|
|
||||||
$loader->addPsr4('Engelsystem\\Test\\', __DIR__ . '/');
|
|
||||||
|
|
Loading…
Reference in New Issue