StagingServiceProvider.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Basic\Staging; |
| 4 | |
| 5 | use WPStaging\Framework\DI\ServiceProvider; |
| 6 | use WPStaging\Staging\Ajax\Setup; |
| 7 | use WPStaging\Staging\Service\AbstractStagingSetup; |
| 8 | use WPStaging\Staging\Service\StagingSetup; |
| 9 | |
| 10 | /** |
| 11 | * Class StagingServiceProvider |
| 12 | * |
| 13 | * Responsible for injecting classes which are to be used in FREE/BASIC version only |
| 14 | */ |
| 15 | class StagingServiceProvider extends ServiceProvider |
| 16 | { |
| 17 | protected function registerClasses() |
| 18 | { |
| 19 | $this->container->when(Setup::class) |
| 20 | ->needs(AbstractStagingSetup::class) |
| 21 | ->give(StagingSetup::class); |
| 22 | } |
| 23 | } |
| 24 |