change the namespace of the WC Admin Package class

This commit is contained in:
Ron Rennick 2020-02-18 15:53:37 -04:00
parent c3d5b36474
commit 22d5dce682
3 changed files with 30 additions and 80 deletions

View File

@ -16,7 +16,7 @@
"woocommerce/action-scheduler": "3.0.1",
"woocommerce/woocommerce-blocks": "2.5.12",
"woocommerce/woocommerce-rest-api": "1.0.7",
"woocommerce/woocommerce-admin": "0.25.1"
"woocommerce/woocommerce-admin": "0.26"
},
"require-dev": {
"phpunit/phpunit": "7.5.20",

106
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c674cf272eafa6cfdb1bf5d82004c974",
"content-hash": "a1cc4a00c54e48a593ff0eeb19c322b9",
"packages": [
{
"name": "automattic/jetpack-autoloader",
@ -418,16 +418,16 @@
},
{
"name": "woocommerce/woocommerce-admin",
"version": "v0.25.1",
"version": "v0.26.0",
"source": {
"type": "git",
"url": "https://github.com/woocommerce/woocommerce-admin.git",
"reference": "f101b8bf355f9bd22034322d865e083749a0fc3c"
"reference": "d867c31664ff1178520bd5d62b0e7542d3bba4fd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/woocommerce/woocommerce-admin/zipball/f101b8bf355f9bd22034322d865e083749a0fc3c",
"reference": "f101b8bf355f9bd22034322d865e083749a0fc3c",
"url": "https://api.github.com/repos/woocommerce/woocommerce-admin/zipball/d867c31664ff1178520bd5d62b0e7542d3bba4fd",
"reference": "d867c31664ff1178520bd5d62b0e7542d3bba4fd",
"shasum": ""
},
"require": {
@ -461,7 +461,7 @@
],
"description": "A modern, javascript-driven WooCommerce Admin experience.",
"homepage": "https://github.com/woocommerce/woocommerce-admin",
"time": "2020-02-07T18:57:51+00:00"
"time": "2020-02-24T02:10:40+00:00"
},
{
"name": "woocommerce/woocommerce-blocks",
@ -552,50 +552,6 @@
}
],
"packages-dev": [
{
"name": "cweagans/composer-patches",
"version": "1.6.7",
"source": {
"type": "git",
"url": "https://github.com/cweagans/composer-patches.git",
"reference": "2e6f72a2ad8d59cd7e2b729f218bf42adb14f590"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/cweagans/composer-patches/zipball/2e6f72a2ad8d59cd7e2b729f218bf42adb14f590",
"reference": "2e6f72a2ad8d59cd7e2b729f218bf42adb14f590",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0",
"php": ">=5.3.0"
},
"require-dev": {
"composer/composer": "~1.0",
"phpunit/phpunit": "~4.6"
},
"type": "composer-plugin",
"extra": {
"class": "cweagans\\Composer\\Patches"
},
"autoload": {
"psr-4": {
"cweagans\\Composer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Cameron Eagans",
"email": "me@cweagans.net"
}
],
"description": "Provides a way to patch Composer packages.",
"time": "2019-08-29T20:11:49+00:00"
},
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
"version": "v0.5.0",
@ -2509,16 +2465,16 @@
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.13.1",
"version": "v1.14.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3"
"reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
"reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
"reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
"shasum": ""
},
"require": {
@ -2530,7 +2486,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.13-dev"
"dev-master": "1.14-dev"
}
},
"autoload": {
@ -2563,7 +2519,7 @@
"polyfill",
"portable"
],
"time": "2019-11-27T13:56:44+00:00"
"time": "2020-01-13T11:15:53+00:00"
},
{
"name": "theseer/tokenizer",
@ -2607,16 +2563,16 @@
},
{
"name": "webmozart/assert",
"version": "1.6.0",
"version": "1.7.0",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925"
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925",
"reference": "573381c0a64f155a0d9a23f4b0c797194805b925",
"url": "https://api.github.com/repos/webmozart/assert/zipball/aed98a490f9a8f78468232db345ab9cf606cf598",
"reference": "aed98a490f9a8f78468232db345ab9cf606cf598",
"shasum": ""
},
"require": {
@ -2651,7 +2607,7 @@
"check",
"validate"
],
"time": "2019-11-24T13:36:37+00:00"
"time": "2020-02-14T12:15:55+00:00"
},
{
"name": "woocommerce/woocommerce-sniffs",
@ -2695,16 +2651,16 @@
},
{
"name": "wp-cli/i18n-command",
"version": "v2.2.1",
"version": "v2.2.2",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/i18n-command.git",
"reference": "6a0582103ecf4a28b3086eac55a9fe590bd3dc96"
"reference": "2804c5246d9338da59951737b03c54d257be8e47"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/6a0582103ecf4a28b3086eac55a9fe590bd3dc96",
"reference": "6a0582103ecf4a28b3086eac55a9fe590bd3dc96",
"url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/2804c5246d9338da59951737b03c54d257be8e47",
"reference": "2804c5246d9338da59951737b03c54d257be8e47",
"shasum": ""
},
"require": {
@ -2748,7 +2704,7 @@
],
"description": "Provides internationalization tools for WordPress projects.",
"homepage": "https://github.com/wp-cli/i18n-command",
"time": "2019-11-12T06:57:35+00:00"
"time": "2019-12-13T09:00:43+00:00"
},
{
"name": "wp-cli/mustangostang-spyc",
@ -2850,22 +2806,21 @@
},
{
"name": "wp-cli/wp-cli",
"version": "v2.4.0",
"version": "v2.4.1",
"source": {
"type": "git",
"url": "https://github.com/wp-cli/wp-cli.git",
"reference": "74c949c74708e3a88ad0add70f3236c8675dfd85"
"reference": "ceb18598e79befa9b2a37a51efbb34910628988b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/74c949c74708e3a88ad0add70f3236c8675dfd85",
"reference": "74c949c74708e3a88ad0add70f3236c8675dfd85",
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/ceb18598e79befa9b2a37a51efbb34910628988b",
"reference": "ceb18598e79befa9b2a37a51efbb34910628988b",
"shasum": ""
},
"require": {
"cweagans/composer-patches": "^1.6",
"ext-curl": "*",
"mustache/mustache": "~2.4",
"mustache/mustache": "~2.13",
"php": "^5.4 || ^7.0",
"rmccue/requests": "~1.6",
"symfony/finder": ">2.7",
@ -2892,11 +2847,6 @@
"extra": {
"branch-alias": {
"dev-master": "2.4.x-dev"
},
"patches": {
"mustache/mustache": {
"Avoid notices on PHP 7.4+": "https://patch-diff.githubusercontent.com/raw/bobthecow/mustache.php/pull/349.patch"
}
}
},
"autoload": {
@ -2914,7 +2864,7 @@
"cli",
"wordpress"
],
"time": "2019-11-12T15:26:05+00:00"
"time": "2020-02-18T08:15:37+00:00"
},
{
"name": "wp-coding-standards/wpcs",

View File

@ -29,7 +29,7 @@ class Packages {
protected static $packages = array(
'woocommerce-blocks' => '\\Automattic\\WooCommerce\\Blocks\\Package',
'woocommerce-rest-api' => '\\Automattic\\WooCommerce\\RestApi\\Package',
'woocommerce-admin' => '\\Automattic\\WooCommerce\\Admin\\Package',
'woocommerce-admin' => '\\Automattic\\WooCommerce\\Admin\\Composer\\Package',
);
/**