I'm developing on a project which uses Monolog, which requires Psr/log. When I use Monolog by autoload, it then complains about missing Psr\Log\LoggerInterface. So I look through the composer generated autoload_namespaces.php, and I couldn't find Psr being registered.
Here's the contents of my vendor/autoload_namespaces.php
return array(
'Symfony\\Component\\Process' => $vendorDir . '/symfony/process/',
'Monolog' => $vendorDir . '/monolog/monolog/src/',
'Imagine' => $vendorDir . '/imagine/Imagine/lib/',
'Gedmo' => $vendorDir . '/gedmo/doctrine-extensions/lib/',
'Gaufrette' => $vendorDir . '/knplabs/gaufrette/src/',
'Evenement' => $vendorDir . '/evenement/evenement/src',
'Doctrine\\ORM' => $vendorDir . '/doctrine/orm/lib/',
'Doctrine\\DBAL' => $vendorDir . '/doctrine/dbal/lib/',
'Doctrine\\Common' => $vendorDir . '/doctrine/common/lib/',
'Assetic' => $vendorDir . '/kriswallsmith/assetic/src/',
'Analog' => $vendorDir . '/analog/analog/lib/',
);
Is composer supposed to register namespaces for all projects which has {autoload} defined in their composer.json files? (I checked both Monolog and Psr/Log, they both have {autoload} defined.)
Or am I getting the wrong idea about composer?