mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
The WP containers don't seem to be used anywhere. There were imports, but they are not actually used it seems.
27 lines
788 B
PHP
27 lines
788 B
PHP
<?php
|
|
/**
|
|
* The services of the admin notice module.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce\Button
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\AdminNotices;
|
|
|
|
use WooCommerce\PayPalCommerce\AdminNotices\Renderer\Renderer;
|
|
use WooCommerce\PayPalCommerce\AdminNotices\Renderer\RendererInterface;
|
|
use WooCommerce\PayPalCommerce\AdminNotices\Repository\Repository;
|
|
use WooCommerce\PayPalCommerce\AdminNotices\Repository\RepositoryInterface;
|
|
|
|
return array(
|
|
'admin-notices.renderer' => static function ( $container ): RendererInterface {
|
|
|
|
$repository = $container->get( 'admin-notices.repository' );
|
|
return new Renderer( $repository );
|
|
},
|
|
'admin-notices.repository' => static function ( $container ): RepositoryInterface {
|
|
|
|
return new Repository();
|
|
},
|
|
);
|