Closed thekid closed 2 years ago
https://github.com/sebastianbergmann/php-code-coverage/blob/master/composer.json is an example of a library using classmap
https://github.com/sebastianbergmann/php-code-coverage/blob/master/composer.json is an example of a library using classmap
This now works:
<?php namespace test;
use SebastianBergmann\CodeCoverage\Version from 'phpunit/php-code-coverage';
use util\cmd\Console;
Console::writeLine(Version::id());
Made obsolete by xp-runners/reference#85
This pull request enables support for PSR-0, PSR-4 and class map autoloaders as well as extensions being specified via composer.json for XP scripts. The following now works:
The reason we don't simply use Composer's autoloading mechanism here is that we cannot prevent it from loading XP Framework twice, which currently does not work.