I have
"autoload": {
"psr-4": {
"ACME": "src/",
},
"classmap": ["src/"],
"files": ["mapper.php"],
"exclude-from-classmap": ["mapper.php"]
},
in mapper.php
I'm trying to give different namespaces for some legacy stuff.
<?php
class_alias(Some_Class::class, 'Cool\NameSpaced\Class');
I think this fails to build because mapper.php
is using classes in src/
and they have not been loaded by composer yet. Is there a way to do this?
Command that I run is composer install --optimize-autoloader --no-dev