Answer the question
In order to leave comments, you need to log in
Do these settings match the PSR-4?
for my mini project I use the following settings for auto-launching in composer
"autoload": {
"psr-4": {"App\\": "src/App"}
},
src/App/Player/Player.class.php
namespace App\Player;
src/App/Game/Game.class.php
namespace App\Game;
Answer the question
In order to leave comments, you need to log in
Almost, you just need to remove the word class from the class name. The file must be named the same as the class, but with the .php extension. And the class name itself must be capitalized
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question