Skip to content

Commit

Permalink
Register the correct thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed Jun 14, 2015
1 parent 97c20e3 commit a12c8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public static function registerPsr(\Composer\Autoload\ClassLoader $loader) {
'psr-4' => 'addPsr4',
);
foreach ($psrs as $psr => $loader_method) {
foreach (static::$psrClassMap[$psr] as $partial_namespace) {
foreach (static::$psrClassMap[$psr] as $partial_namespace => $tokenized_path) {
try {
$resolver = new TokenResolver($partial_namespace);
$resolver = new TokenResolver($tokenized_path);
$finder = $resolver->resolve();
// Get the real path of the prefix.
$real_path = $finder->find(static::$seed);
Expand Down

0 comments on commit a12c8a9

Please sign in to comment.