composer/composer — pull request #961 by vicb (2012-07-31 18:24:24+00:00)
Title: [Autoload] remove closures because of a bug in APC

This PR intend to fix #959

The 2 closures are replaced by static methods of a `ComposerAutoloaderInit` class.

I had to add an optional suffix for the test (i.e. `ComposerAutoloaderInit_1`) because otherwise the first declared class would prevent further tests from running as the class could not be re-declared.

I have tested the PR with Symfony and the generated autoloader is working fine.

@schmittjoh, @fabpot, @epicwhale Any feedback ?

_(related issue: symfony/symfony#1541)_