1 | <?php namespace Indatus\Dispatcher; |
||
16 | class ConfigResolver |
||
17 | { |
||
18 | /** @var Repository */ |
||
19 | protected $config; |
||
20 | |||
21 | /** @var Container */ |
||
22 | protected $container; |
||
23 | |||
24 | 94 | public function __construct(Repository $config, Container $container) |
|
29 | |||
30 | /** |
||
31 | * Resolve a class based on the driver configuration |
||
32 | * |
||
33 | * @return \Indatus\Dispatcher\Scheduling\Schedulable |
||
34 | */ |
||
35 | 7 | public function resolveSchedulerClass() |
|
43 | |||
44 | /** |
||
45 | * Resolve a class based on the driver configuration |
||
46 | * |
||
47 | * @return \Indatus\Dispatcher\Scheduling\ScheduleService |
||
48 | */ |
||
49 | 4 | public function resolveServiceClass() |
|
57 | |||
58 | /** |
||
59 | * Get the dispatcher driver class |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 11 | public function getDriver() |
|
67 | } |
||
68 |