Commit ede03140 authored by Daniel Hürtgen's avatar Daniel Hürtgen

[FEATURE] migration PSR-0 autoloading to PSR-4

parent b92e54b1
......@@ -14,7 +14,7 @@ function includeIfExists($file)
return file_exists($file) ? include $file : false;
}
if ((!$autoLoader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$autoLoader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
if ((!$autoLoader = includeIfExists(__DIR__.'/vendor/autoload.php')) && (!$autoLoader = includeIfExists(__DIR__.'/../../../autoload.php'))) {
echo 'You must set up the project dependencies, run the following command from the project root:'.PHP_EOL.
'php composer.phar install'.PHP_EOL;
exit(1);
......
......@@ -39,13 +39,13 @@
},
"minimum-stability": "stable",
"autoload": {
"psr-0": {
"T3ExtCli": "src/"
"psr-4": {
"T3ExtCli\\": "src/"
}
},
"autoload-dev": {
"psr-0": {
"T3ExtCli\\Test": "tests/src/"
"psr-4": {
"T3ExtCli\\Test\\": "tests/src/"
}
},
"require-dev": {
......
......@@ -8,7 +8,7 @@
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="tests/src/bootstrap.php"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="Project Test Suite">
......@@ -19,9 +19,6 @@
<filter>
<whitelist>
<directory>./src/</directory>
<exclude>
<file>./src/bootstrap.php</file>
</exclude>
</whitelist>
</filter>
......
......@@ -15,4 +15,4 @@ if (function_exists('date_default_timezone_set') && function_exists('date_defaul
date_default_timezone_set(@date_default_timezone_get());
}
$autoloader = require __DIR__.'/../../src/bootstrap.php';
$autoloader = require __DIR__.'/../bootstrap.php';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment