What is the difference on autoload of property classmap vs. files.
They both makes the same thing and work the same way?
{
"autoload": {
"psr-4": {
"App\\": "app/",
"Computer\\Automobile\\": "automobile/"
},
"classmap": [
"classes/automobile.php"
],
"files": [
"files/automobile.php"
]
}
}
I know the PSR-4 standard requires of you a strict filesystem structure based on namespaces. Say you have an app directory in the src directory with App namespace, then all sub-namespaces will mirror sub-directories and class names will be the same as file names without the .php extension.