| 1 |
<?php |
| 2 |
|
| 3 |
namespace Booktics\Service; |
| 4 |
|
| 5 |
use Booktics\Providers\Base_Service_Provider; |
| 6 |
use Booktics\Service\Controllers\Service_Controller; |
| 7 |
use Booktics\Service\Templates\Single_Service_Template; |
| 8 |
|
| 9 |
/** |
| 10 |
* Service_Service_Provider will responsible for all service services |
| 11 |
* |
| 12 |
* @package Booktics/Service |
| 13 |
*/ |
| 14 |
class Service_Service_Provider extends Base_Service_Provider { |
| 15 |
/** |
| 16 |
* Store services |
| 17 |
* |
| 18 |
* @var array |
| 19 |
*/ |
| 20 |
protected array $services = array( |
| 21 |
Service_Controller::class, |
| 22 |
Single_Service_Template::class, |
| 23 |
Service_Hooks::class, |
| 24 |
); |
| 25 |
|
| 26 |
/** |
| 27 |
* Register services |
| 28 |
* |
| 29 |
* @return array |
| 30 |
*/ |
| 31 |
public function get_services(): array { |
| 32 |
return apply_filters( 'booktics_service_services', $this->services ); |
| 33 |
} |
| 34 |
} |
| 35 |
|