Installing the ClassLoader component with Composer makes installing the ClassLoader component largely irrelevant #5949
Labels
hasPR
A Pull Request has already been submitted for this issue.
8000
Installing the ClassLoader component by using Composer brings in Composer's own ClassLoader, which has significant overlap with Symfony's ClassLoader.
There's a note on The PSR-4 Class Loader page suggesting that the loader should only be used when Composer is not available - but it looks like this is relevant to the PSR-0 and ClassMap loaders too. I think it would be more clear if this note were moved to the introduction page.
It would also make things more clear if we tweaked the install instructions to promote
$ git clone
rather than using$ composer require symfony/class-loader
. This would be more consistent with the documentation pages that follow that userequire_once '/path/to/src/Symfony/Component/ClassLoader/ClassLoader.php';
instead ofrequire_once vendor/autoload.php
The text was updated successfully, but these errors were encountered: