Skip to content

Consider using the PSR-4 autoloader #75

Open

Description

@peter279k

As title, it seems that this class still uses the classmap approach to load the Browser class in composer.json.

I think we can consider using the PSR-4 autoloader and the advantages are as follows:

  • The PSR-4 approach will have the namespace and it can avoid the class name collision.

Once this issue is accepted, I can help this issue :).

Activity

  1. cbschuld commented on Jul 8, 2019

    @cbschuld
    Owner

    @peter279k - I am completely fine with this; we could issue a 2.x version that has this breaking change for those importing it w/ the classmap model

  2. peter279k commented on Sep 16, 2019

    @peter279k
    Author

    @cbschuld, thanks for your reply and concern.

    I think we can mark the 2.x milestone for this issue and it can let us know that it will be the psr-4 compliant autoloader since the package version is 2.x.

  3. cbschuld commented on Sep 1, 2025

    @cbschuld
    Owner

    this is FINALLY done in #102 - if anyone has input I'd love it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions