e-oz / Memory

PHP Memory Cacher - best cachers in one interface, with nice features
134 stars 40 forks source link

Fixes broken composer autoloading #11

Closed rajiteh closed 9 years ago

rajiteh commented 9 years ago

Composer's autoloader points to the wrong directory for autoloading with the current config.

<?php

// autoload_namespaces.php @generated by Composer

$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);

return array(
    'Jamm\\Memory' => array($vendorDir . '/jamm/memory/lib/Jamm/Memory'), 
    // must be like 'Jamm\\Memory' => array($vendorDir . '/jamm/memory/Jamm/Memory/lib'), 
);

The pull request will solve the compatibility issue by pointing to the correct folder.

Issue observed on composer version,

Composer version 1.0-dev (c291b07abde1d01323b07db06ab4227ff98c0191) 2015-02-23 22:41:42
e-oz commented 9 years ago

Thank you!