woocommerce-paypal-payments/modules/ppcp-admin-notices/services.php
Anton Ukhanev b8cc98e9cd Remove unused dependency
The WP containers don't seem to be used anywhere. There were
imports, but they are not actually used it seems.
2021-08-26 11:01:42 +02:00

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();
},
);