Rename namespace "Theming" to "ThemeManagement"

This commit is contained in:
Nestor Soriano 2020-06-26 10:53:01 +02:00
parent 3fcf0fbcb2
commit ff7f95e496
18 changed files with 26 additions and 26 deletions

View File

@ -6,7 +6,7 @@
* @package WooCommerce
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -6,7 +6,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
*/
use Automattic\Jetpack\Constants;
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
*/
use Automattic\Jetpack\Constants;
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -6,7 +6,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -6,7 +6,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
* @package WooCommerce/Classes
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -7,7 +7,7 @@
*/
use Automattic\Jetpack\Constants;
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
defined( 'ABSPATH' ) || exit;

View File

@ -9,7 +9,7 @@
*/
use Automattic\Jetpack\Constants;
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
if ( ! defined( 'ABSPATH' ) ) {
exit;

View File

@ -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,
);
/**

View File

@ -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.

View File

@ -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 {

View File

@ -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';

View File

@ -5,7 +5,7 @@
* @package WooCommerce\Tests\ThemeSupport
*/
use Automattic\WooCommerce\Theming\ThemeSupport;
use Automattic\WooCommerce\ThemeManagement\ThemeSupport;
/**
* Tests for the theme support classes.

View File

@ -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.