Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libraries path is hardcoded to /vendor #29

Open
julpar opened this issue Apr 20, 2021 · 1 comment
Open

Libraries path is hardcoded to /vendor #29

julpar opened this issue Apr 20, 2021 · 1 comment

Comments

@julpar
Copy link

julpar commented Apr 20, 2021

On Deprecation#L129 it assumes vendor dir is always /vendor [1]. As per composer config [2] that behaviour can be changed. In a project i'm working on it happen to be this way:

    "config": {
        "vendor-dir": "libraries"
    },

Any chance that path can be fetched from config or specified on Deprecation::enableWithTriggerError();?

[1]
`

$path = DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . $package . DIRECTORY_SEPARATOR;

[2] https://getcomposer.org/doc/06-config.md#vendor-dir

@greg0ire
Copy link
Member

greg0ire commented May 1, 2021

Related comment: #21 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants