Skip to content

Idea: prune flagged autoload files #1

@ChrisLightfootWild

Description

@ChrisLightfootWild

Hey 👋

I wanted to propose additional functionality to prune any composer autoload files which become redundant if the spi plugin is allowed to run. I suspect that isn't always the case, but for certain packages we could remove the (usually minor) overhead of the autoload file which would otherwise be loaded at every runtime.

A couple of examples which OpenTelemetry packages may benefit from:


I started an implementation which I was playing with as a proof-of-concept:

ChrisLightfootWild/opentelemetry-php@6125b71

However, it seems like behaviour which would make more sense to reside within the SPI package directly.

Thanks!

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