35 lines
820 B
PHP
35 lines
820 B
PHP
<?php
|
|
/**
|
|
* ProxiesServiceProvider class file.
|
|
*/
|
|
|
|
namespace Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders;
|
|
|
|
use Automattic\WooCommerce\Internal\DependencyManagement\AbstractServiceProvider;
|
|
use Automattic\WooCommerce\Proxies\LegacyProxy;
|
|
use Automattic\WooCommerce\Proxies\ActionsProxy;
|
|
|
|
/**
|
|
* Service provider for the classes in the Automattic\WooCommerce\Proxies namespace.
|
|
*/
|
|
class ProxiesServiceProvider extends AbstractServiceProvider {
|
|
|
|
/**
|
|
* The classes/interfaces that are serviced by this service provider.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $provides = array(
|
|
LegacyProxy::class,
|
|
ActionsProxy::class,
|
|
);
|
|
|
|
/**
|
|
* Register the classes.
|
|
*/
|
|
public function register() {
|
|
$this->share( ActionsProxy::class );
|
|
$this->share_with_auto_arguments( LegacyProxy::class );
|
|
}
|
|
}
|