AdminNoticesServiceProvider.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Give\VendorOverrides\AdminNotices; |
| 6 | |
| 7 | use Give\ServiceProviders\ServiceProvider; |
| 8 | use Give\Vendors\StellarWP\AdminNotices\AdminNotices; |
| 9 | |
| 10 | /** |
| 11 | * Registers and boots the Admin Notices library |
| 12 | * |
| 13 | * @since 3.21.0 |
| 14 | * |
| 15 | * @see https://github.com/stellarwp/admin-notices |
| 16 | */ |
| 17 | class AdminNoticesServiceProvider implements ServiceProvider { |
| 18 | /** |
| 19 | * {@inheritDoc} |
| 20 | * |
| 21 | * @since 3.21.0 |
| 22 | */ |
| 23 | public function register() |
| 24 | { |
| 25 | AdminNotices::initialize('givewp', GIVE_PLUGIN_URL . 'vendor/vendor-prefixed/stellarwp/admin-notices/'); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * {@inheritDoc} |
| 30 | * |
| 31 | * @since 3.21.0 |
| 32 | */ |
| 33 | public function boot() |
| 34 | { |
| 35 | } |
| 36 | } |
| 37 |