Collections
3 weeks ago
Concerns
3 weeks ago
Console
3 weeks ago
Constants
3 weeks ago
Contracts
3 weeks ago
Database
3 weeks ago
Discovery
3 weeks ago
Exceptions
3 weeks ago
Filesystem
3 weeks ago
Http
3 weeks ago
Managers
3 weeks ago
Middlewares
3 weeks ago
Polyfill
3 weeks ago
Supports
3 weeks ago
Validation
3 weeks ago
Wordpress
3 weeks ago
ApiExceptionHandler.php
3 weeks ago
Application.php
3 weeks ago
Container.php
3 weeks ago
CoreServiceProvider.php
3 weeks ago
DTO.php
3 weeks ago
Facade.php
3 weeks ago
Listener.php
3 weeks ago
Resource.php
3 weeks ago
Route.php
3 weeks ago
Sanitizer.php
3 weeks ago
ServiceProvider.php
3 weeks ago
helpers.php
3 weeks ago
ServiceProvider.php
57 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Abstract base for application service providers with register and boot lifecycle hooks. |
| 5 | * Receives the Application instance and binds services in register while wiring hooks in boot. |
| 6 | * Pattern for modular plugin feature registration. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | namespace Kirki\Framework; |
| 12 | |
| 13 | \defined('ABSPATH') || exit; |
| 14 | abstract class ServiceProvider |
| 15 | { |
| 16 | /** |
| 17 | * The app. |
| 18 | * |
| 19 | * @var Application |
| 20 | * |
| 21 | * @since 1.0.0 |
| 22 | */ |
| 23 | protected $app; |
| 24 | /** |
| 25 | * Create a new service provider constructor |
| 26 | * |
| 27 | * @param Application $app The app. |
| 28 | * |
| 29 | * @return void |
| 30 | * |
| 31 | * @since 1.0.0 |
| 32 | */ |
| 33 | public function __construct(Application $app) |
| 34 | { |
| 35 | $this->app = $app; |
| 36 | } |
| 37 | /** |
| 38 | * Register the service provider. |
| 39 | * |
| 40 | * @return void |
| 41 | * |
| 42 | * @since 1.0.0 |
| 43 | */ |
| 44 | public abstract function register(); |
| 45 | /** |
| 46 | * Boot the service provider. |
| 47 | * |
| 48 | * @return void |
| 49 | * |
| 50 | * @since 1.0.0 |
| 51 | */ |
| 52 | public function boot() |
| 53 | { |
| 54 | // |
| 55 | } |
| 56 | } |
| 57 |