Commit Graph

4 Commits

Author SHA1 Message Date
Nestor Soriano 62aaa3f73a De-refactor the output function in scripts 2020-10-08 09:28:05 +02:00
Nestor Soriano d687c0c919 Improvements on prefix-vendor-namespaces.sh
- Prefix also Container's composer.json
- Use one single variant for sed, creating a backup file and
  later deleting it
2020-10-08 09:28:05 +02:00
Nestor Soriano fcd9b115ca Adjust the namespace prefixing script to macOS/Linux
Both OSes have a slightly different syntax for "sed -i" and therefore
two versions of the command are needed.
2020-10-08 09:28:05 +02:00
Nestor Soriano 97618d8fad Reintroduce the League's Container package, and prefix it.
All the classes in the package are re-namespaced from
"Leage\Container" to "Automattic\WooCommerce\Vendor\League\Container"
to prevent conflicts with extensions using the same plugin.

The re-namespacing is done by using a simple text substitution
on all the code files (see prefix-vendor-namespaces.sh), for this
particular case this approach is enough.
2020-10-08 09:28:01 +02:00