feat: composer autoload

This commit is contained in:
Victor Westerlund 2023-01-05 15:39:00 +01:00
parent 5f38cf572f
commit c639d302e9
3 changed files with 6 additions and 1 deletions

2
client
View file

@ -4,7 +4,7 @@
die("Must be run from command line\n"); die("Must be run from command line\n");
} }
require_once __DIR__ . "/SocketClient.php"; require_once __DIR__ . "/src/SocketClient.php";
// Require 3 to 4 arguments // Require 3 to 4 arguments
if ($argc < 4 || $argc > 4) { if ($argc < 4 || $argc > 4) {

View file

@ -10,5 +10,10 @@
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",
"autoload": {
"psr-4": {
"Reflect\\": "src/"
}
},
"require": {} "require": {}
} }