| 1 | <?php |
||
| 21 | class Bootstrap implements BootstrapInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Đối tượng application đang cần boot. |
||
| 25 | * |
||
| 26 | * @var Application |
||
| 27 | */ |
||
| 28 | protected $app; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function bootstrap($app): void |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Đăng ký component vào app. |
||
| 42 | */ |
||
| 43 | protected function registerComponent(): void |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Đăng ký các singleton classes vào container tối ưu việc khởi tạo đối tượng mới khi thay đổi từ điển. |
||
| 52 | */ |
||
| 53 | protected function registerSingletonClasses(): void |
||
| 63 | } |
||
| 64 |