Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
DependencyManagement
/
ServiceProviders
:
AdminSuggestionsServiceProvider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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 ); } }