My PSR4 structure isn't registering when I composer dump-autoload
. This my composer, the entry is src/Booksmart :
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
"app/controllers/Api",
]
},
"psr-4": {
"Booksmart\\": "src/Booksmart"
},
and this is my directory structure:
src/
Booksmart/
Advance/
Advance.php
The Advance.php looks like this:
<?php
namespace Booksmart\Advance
class Advance
{
}
My vendor/composer/autoload_psr4.php
doesn't show the new entry for my Booksmart namespace though, and is definitely not loading the Advance.php class. This seems so simple to screw up, what am I missing?