`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:
parent
b53fc512bf
commit
03bcf515c1
|
@ -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.
|
||||
|
|
|
@ -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;
|
|
@ -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 );
|
||||
}
|
||||
}
|
|
@ -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.
|
|
@ -5,7 +5,7 @@
|
|||
* @package Automattic/WooCommerce/Tools/Proxies
|
||||
*/
|
||||
|
||||
namespace Automattic\WooCommerce\Tools\Proxies;
|
||||
namespace Automattic\WooCommerce\Proxies;
|
||||
|
||||
use \Psr\Container\ContainerInterface as Container;
|
||||
|
Loading…
Reference in New Issue