[wp-trac] [WordPress Trac] #23912: Add Composer package description
WordPress Trac
noreply at wordpress.org
Fri May 24 16:01:55 UTC 2013
#23912: Add Composer package description
------------------------------------+------------------------------
Reporter: Rarst | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.5
Severity: trivial | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by bpetty):
Replying to [comment:13 Rarst]:
> Not quite. The problem is that package needs to opt in to use
`composer/installers` or otherwise Composer will not allow user to choose
where core (used as dependency) goes and it will mandatory go into
`vendor` dir, which does not quite fit WP core.
When used as a dependency, yes. In fact, there is no "logical default
location" for WordPress core at all. WordPress core isn't the only package
with this issue - that goes for all PHP applications that need a docroot.
The Composer issue you opened isn't likely to go anywhere because that's
simply not how Composer (or composer/installers) is designed to work.
There isn't a new installer type for every PHP application that requires a
docroot.
However, when talking about the "vendor-dir" configuration, I wasn't
talking about the package when used as a dependency. In that case, the
"vendor-dir" configuration option is completely ignored by Composer, so it
doesn't matter what it is. It's only used when the package is used as the
root package, and there is some validity to customizing it for some
applications, but like I said, it doesn't matter anyway because WordPress
isn't one of those applications.
The "vendor-dir" setting (core composer) and the "type" setting
(composer/installers) are two completely different settings with very
different behaviors.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23912#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list