deprecations icon indicating copy to clipboard operation
deprecations copied to clipboard

Libraries path is hardcoded to `/vendor`

Open julpar opened this issue 4 years ago • 1 comments

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] `https://github.com/doctrine/deprecations/blob/d12b33583aa1d591d8c45d31812df46d8d19e579/lib/Doctrine/Deprecations/Deprecation.php#L129

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

julpar avatar Apr 20 '21 15:04 julpar

Related comment: https://github.com/doctrine/deprecations/pull/21#discussion_r592725942

greg0ire avatar May 01 '21 08:05 greg0ire