ServiceProvider.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Give\Framework\Database; |
| 6 | |
| 7 | use Give\Framework\Database\Actions\EnableBigSqlSelects; |
| 8 | use Give\Helpers\Hooks; |
| 9 | use Give\ServiceProviders\ServiceProvider as ServiceProviderContract; |
| 10 | |
| 11 | class ServiceProvider implements ServiceProviderContract |
| 12 | { |
| 13 | /** |
| 14 | * @inheritDoc |
| 15 | */ |
| 16 | public function register() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * @inheritDoc |
| 22 | */ |
| 23 | public function boot() |
| 24 | { |
| 25 | Hooks::addAction('givewp_db_pre_query', EnableBigSqlSelects::class); |
| 26 | } |
| 27 | } |
| 28 |