`DependencyManagement` and `Proxies` directories moved.

They have been moved out of the `Tools` directory to the root
`src` directory, `Tools` doesn't exist anymore.
This commit is contained in:
Nestor Soriano 2020-06-22 12:20:12 +02:00
parent b53fc512bf
commit 03bcf515c1
5 changed files with 12 additions and 11 deletions

View File

@ -7,7 +7,7 @@
namespace Automattic\WooCommerce;
use Automattic\WooCommerce\Tools\DependencyManagement\ServiceProviders\ProxiesServiceProvider;
use Automattic\WooCommerce\DependencyManagement\ServiceProviders\ProxiesServiceProvider;
/**
* PSR11 compliant dependency injection container for WooCommerce.

View File

@ -5,7 +5,7 @@
* @package Automattic/WooCommerce/Tools/DependencyManagement
*/
namespace Automattic\WooCommerce\Tools\DependencyManagement;
namespace Automattic\WooCommerce\DependencyManagement;
use League\Container\Argument\RawArgument;
use League\Container\Definition\DefinitionInterface;

View File

@ -5,10 +5,11 @@
* @package Automattic/WooCommerce/Tools/DependencyManagement/ServiceProviders
*/
namespace Automattic\WooCommerce\Tools\DependencyManagement\ServiceProviders;
namespace Automattic\WooCommerce\DependencyManagement\ServiceProviders;
use Automattic\WooCommerce\Tools\DependencyManagement\AbstractServiceProvider;
use Automattic\WooCommerce\Tools\Proxies as ProxyClasses;
use Automattic\WooCommerce\DependencyManagement\AbstractServiceProvider;
use Automattic\WooCommerce\Proxies\LegacyProxy;
use Automattic\WooCommerce\Proxies\ActionsProxy;
/**
* Service provider for the classes in the Automattic\WooCommerce\Tools\Proxies namespace.
@ -21,15 +22,15 @@ class ProxiesServiceProvider extends AbstractServiceProvider {
* @var array
*/
protected $provides = array(
ProxyClasses\LegacyProxy::class,
ProxyClasses\ActionsProxy::class,
LegacyProxy::class,
ActionsProxy::class,
);
/**
* Register the classes.
*/
public function register() {
$this->share( ProxyClasses\ActionsProxy::class );
$this->shareWithAutoArguments( ProxyClasses\LegacyProxy::class );
$this->share( ActionsProxy::class );
$this->shareWithAutoArguments( LegacyProxy::class );
}
}

View File

@ -5,7 +5,7 @@
* @package Automattic/WooCommerce/Tools/Proxies
*/
namespace Automattic\WooCommerce\Tools\Proxies;
namespace Automattic\WooCommerce\Proxies;
/**
* Proxy for interacting with WordPress actions and filters.

View File

@ -5,7 +5,7 @@
* @package Automattic/WooCommerce/Tools/Proxies
*/
namespace Automattic\WooCommerce\Tools\Proxies;
namespace Automattic\WooCommerce\Proxies;
use \Psr\Container\ContainerInterface as Container;