inpsyde / modularity

A PSR-11 implementation for WordPress Plugins, Themes or Libraries.
https://inpsyde.github.io/modularity/
GNU General Public License v2.0
44 stars 4 forks source link

Feature/library props url #7

Closed gmazzap closed 3 years ago

gmazzap commented 3 years ago

Feature.

LibraryProperties always has a null base URL, with no way to set the URL. If it makes sense because normally one does not know the URL of a library from the library itself, it is possble that the URL is known at a later time.

For example, when using WP App Container, thanks to $config->locations()->vendorUrl() it is possible to know the vendor URL and so also determine the library full URL.

The PR introduces:

No.

--