1 | <?php |
||
11 | class REST_API_Service extends Service { |
||
12 | |||
13 | /** |
||
14 | * Router instance |
||
15 | * |
||
16 | * @var Router |
||
17 | */ |
||
18 | protected $router; |
||
19 | |||
20 | /** |
||
21 | * Decorator instance |
||
22 | * |
||
23 | * @var Decorator |
||
24 | */ |
||
25 | protected $decorator; |
||
26 | |||
27 | /** |
||
28 | * @param Router $router |
||
29 | * @param Decorator $decorator |
||
30 | */ |
||
31 | public function __construct( Router $router, Decorator $decorator ) { |
||
35 | |||
36 | /** |
||
37 | * Enable REST API integration |
||
38 | */ |
||
39 | protected function enabled() { |
||
42 | |||
43 | /** |
||
44 | * Disable REST API integration |
||
45 | */ |
||
46 | protected function disabled() { |
||
49 | |||
50 | /** |
||
51 | * Bootstrap all functionality |
||
52 | */ |
||
53 | public function boot() { |
||
57 | } |