mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
introduce admin-notices
This commit is contained in:
parent
1b9b206c14
commit
6793d7217a
15 changed files with 303 additions and 56 deletions
31
modules.local/ppcp-admin-notices/services.php
Normal file
31
modules.local/ppcp-admin-notices/services.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Inpsyde\PayPalCommerce\Button;
|
||||
|
||||
use Dhii\Data\Container\ContainerInterface;
|
||||
use Inpsyde\PayPalCommerce\AdminNotices\Renderer\Renderer;
|
||||
use Inpsyde\PayPalCommerce\AdminNotices\Renderer\RendererInterface;
|
||||
use Inpsyde\PayPalCommerce\AdminNotices\Repository\Repository;
|
||||
use Inpsyde\PayPalCommerce\AdminNotices\Repository\RepositoryInterface;
|
||||
use Inpsyde\PayPalCommerce\Button\Assets\DisabledSmartButton;
|
||||
use Inpsyde\PayPalCommerce\Button\Assets\SmartButton;
|
||||
use Inpsyde\PayPalCommerce\Button\Assets\SmartButtonInterface;
|
||||
use Inpsyde\PayPalCommerce\Button\Endpoint\ApproveOrderEndpoint;
|
||||
use Inpsyde\PayPalCommerce\Button\Endpoint\ChangeCartEndpoint;
|
||||
use Inpsyde\PayPalCommerce\Button\Endpoint\CreateOrderEndpoint;
|
||||
use Inpsyde\PayPalCommerce\Button\Endpoint\RequestData;
|
||||
use Inpsyde\PayPalCommerce\Button\Exception\RuntimeException;
|
||||
|
||||
return [
|
||||
'admin-notices.renderer' => function(ContainerInterface $container) : RendererInterface {
|
||||
|
||||
$repository = $container->get('admin-notices.repository');
|
||||
return new Renderer($repository);
|
||||
},
|
||||
'admin-notices.repository' => function(ContainerInterface $container) : RepositoryInterface {
|
||||
|
||||
return new Repository();
|
||||
}
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue