Namespace and structure improvements
This commit is contained in:
parent
2eff709060
commit
732eb4b453
|
@ -14,6 +14,13 @@
|
||||||
"woocommerce/woocommerce-sniffs": "0.0.6"
|
"woocommerce/woocommerce-sniffs": "0.0.6"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": ["src"]
|
"classmap": [
|
||||||
|
"src/Controllers/Version1",
|
||||||
|
"src/Controllers/Version2",
|
||||||
|
"src/Controllers/Version3"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"WooCommerce\\RestApi\\": "src/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
4
init.php
4
init.php
|
@ -6,6 +6,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return function() {
|
return function() {
|
||||||
require __DIR__ . '/src/RestApi.php';
|
require __DIR__ . '/src/Server.php';
|
||||||
\WooCommerce\RestApi::instance()->init();
|
\WooCommerce\RestApi\Server::instance()->init();
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* @package WooCommerce/RestApi
|
* @package WooCommerce/RestApi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace WooCommerce\RestApi\Version4\Controllers;
|
namespace WooCommerce\RestApi\Controllers\Version4;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @package WooCommerce/RestApi
|
* @package WooCommerce/RestApi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace WooCommerce\RestApi\Version4\Controllers;
|
namespace WooCommerce\RestApi\Controllers\Version4;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* @package WooCommerce/RestApi
|
* @package WooCommerce/RestApi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace WooCommerce\RestApi\Version4\Controllers;
|
namespace WooCommerce\RestApi\Controllers\Version4;
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue