ServiceProvider.php in Yatra – Travel Booking & Tour Operator Software 3.0.2.8, at app/Core/ServiceProvider.php
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Yatra\Core; |
| 6 | |
| 7 | /** |
| 8 | * Base Service Provider |
| 9 | */ |
| 10 | abstract class ServiceProvider |
| 11 | { |
| 12 | /** |
| 13 | * @var Container |
| 14 | */ |
| 15 | protected Container $container; |
| 16 | |
| 17 | /** |
| 18 | * Constructor |
| 19 | */ |
| 20 | public function __construct(Container $container) |
| 21 | { |
| 22 | $this->container = $container; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Register services |
| 27 | */ |
| 28 | abstract public function register(): void; |
| 29 | |
| 30 | /** |
| 31 | * Boot services |
| 32 | */ |
| 33 | public function boot(): void |
| 34 | { |
| 35 | // Override in child classes if needed |
| 36 | } |
| 37 | } |
| 38 | |
| 39 |