Rename namespace "Theming" to "ThemeManagement"
This commit is contained in:
parent
3fcf0fbcb2
commit
ff7f95e496
|
@ -6,7 +6,7 @@
|
|||
* @package WooCommerce
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Automattic\WooCommerce;
|
|||
|
||||
use Automattic\WooCommerce\DependencyManagement\ServiceProviders\ProxiesServiceProvider;
|
||||
use Automattic\WooCommerce\DependencyManagement\ExtendedContainer;
|
||||
use Automattic\WooCommerce\DependencyManagement\ServiceProviders\ThemingServiceProvider;
|
||||
use Automattic\WooCommerce\DependencyManagement\ServiceProviders\ThemeManagementServiceProvider;
|
||||
|
||||
/**
|
||||
* PSR11 compliant dependency injection container for WooCommerce.
|
||||
|
@ -42,7 +42,7 @@ final class Container implements \Psr\Container\ContainerInterface {
|
|||
*/
|
||||
private $service_providers = array(
|
||||
ProxiesServiceProvider::class,
|
||||
ThemingServiceProvider::class,
|
||||
ThemeManagementServiceProvider::class,
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
/**
|
||||
* Theming class file.
|
||||
* ThemeManagementServiceProvider class file.
|
||||
*
|
||||
* @package Automattic/WooCommerce/Tools/DependencyManagement/ServiceProviders
|
||||
*/
|
||||
|
||||
namespace Automattic\WooCommerce\DependencyManagement\ServiceProviders;
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
use Automattic\WooCommerce\DependencyManagement\AbstractServiceProvider;
|
||||
|
||||
/**
|
||||
* Service provider for the classes in the Automattic\WooCommerce\Theming namespace.
|
||||
* Service provider for the classes in the Automattic\WooCommerce\ThemeManagement namespace.
|
||||
*/
|
||||
class ThemingServiceProvider extends AbstractServiceProvider {
|
||||
class ThemeManagementServiceProvider extends AbstractServiceProvider {
|
||||
|
||||
/**
|
||||
* The classes/interfaces that are serviced by this service provider.
|
|
@ -2,18 +2,16 @@
|
|||
/**
|
||||
* ThemeSupport class file.
|
||||
*
|
||||
* @package WooCommerce\Theming
|
||||
* @package Automattic\WooCommerce\ThemeManagement
|
||||
*/
|
||||
|
||||
namespace Automattic\WooCommerce\Theming;
|
||||
namespace Automattic\WooCommerce\ThemeManagement;
|
||||
|
||||
use Automattic\WooCommerce\Proxies\LegacyProxy;
|
||||
use Automattic\WooCommerce\Utils\ArrayUtils;
|
||||
|
||||
/**
|
||||
* Provides methods for theme support.
|
||||
*
|
||||
* @package Automattic\WooCommerce\Theming
|
||||
*/
|
||||
class ThemeSupport {
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
// This comment is needed to prevent a code sniffer error.
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
|
||||
require_once ABSPATH . WPINC . '/class-wp-customize-control.php';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* @package WooCommerce\Tests\ThemeSupport
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
/**
|
||||
* Tests for the theme support classes.
|
||||
|
|
|
@ -5,12 +5,14 @@
|
|||
* @package Automattic\WooCommerce\Tests\ThemeSupport
|
||||
*/
|
||||
|
||||
use Automattic\WooCommerce\Theming\ThemeSupport;
|
||||
namespace Automattic\WooCommerce\Tests\ThemeManagement;
|
||||
|
||||
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
|
||||
|
||||
/**
|
||||
* Tests for ThemeSupport
|
||||
*/
|
||||
class ThemeSupportTests extends WC_Unit_Test_Case {
|
||||
class ThemeSupportTests extends \WC_Unit_Test_Case {
|
||||
|
||||
/**
|
||||
* The system under test.
|
Loading…
Reference in New Issue