ServiceProvider.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Give\Framework\WordPressShims; |
| 6 | |
| 7 | use Give\ServiceProviders\ServiceProvider as BaseServiceProvider; |
| 8 | |
| 9 | class ServiceProvider implements BaseServiceProvider |
| 10 | { |
| 11 | /** |
| 12 | * Autoload all the shim files in the same directory as this file. |
| 13 | * |
| 14 | * @since 2.20.0 |
| 15 | * |
| 16 | * @inheritDoc |
| 17 | */ |
| 18 | public function register() |
| 19 | { |
| 20 | $files = glob(__DIR__ . '/*.php'); |
| 21 | foreach ($files as $file) { |
| 22 | require_once $file; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * @inheritDoc |
| 28 | */ |
| 29 | public function boot() |
| 30 | { |
| 31 | } |
| 32 | } |
| 33 |