File "AdminSuggestionsServiceProvider.php"
Full Path: /home/amervokv/ecomlive.net/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ServiceProviders/AdminSuggestionsServiceProvider.php
File size: 1.14 KB
MIME-type: text/x-php
Charset: utf-8
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders;
use Automattic\WooCommerce\Internal\Admin\Suggestions\PaymentExtensionSuggestionIncentives;
use Automattic\WooCommerce\Internal\Admin\Suggestions\PaymentExtensionSuggestions;
use Automattic\WooCommerce\Internal\DependencyManagement\AbstractServiceProvider;
/**
* Service provider for the suggestions controller classes in the Automattic\WooCommerce\Internal\Admin\Suggestions namespace.
*/
class AdminSuggestionsServiceProvider extends AbstractServiceProvider {
/**
* List services provided by this class.
*
* @var string[]
*/
protected $provides = array(
PaymentExtensionSuggestions::class,
PaymentExtensionSuggestionIncentives::class,
// The individual incentive providers are provided by the PaymentExtensionSuggestionIncentives class.
);
/**
* Registers services provided by this class.
*
* @return void
*/
public function register() {
$this->share( PaymentExtensionSuggestionIncentives::class );
$this->share( PaymentExtensionSuggestions::class )->addArgument( PaymentExtensionSuggestionIncentives::class );
}
}