Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Installing the ClassLoader component with Composer makes installing the ClassLoader component largely irrelevant #5949

Copy link
Copy link
Closed
@hpierce1102

Description

@hpierce1102
Issue body actions

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 use require_once '/path/to/src/Symfony/Component/ClassLoader/ClassLoader.php'; instead of require_once vendor/autoload.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.