1 | <?php |
||
13 | class RegisterSchedulesPass implements CompilerPassInterface |
||
14 | { |
||
15 | /** |
||
16 | * Mapping of class names to booleans indicating whether the class |
||
17 | * implements TaskInterface. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | private $implementations = array(); |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function process(ContainerBuilder $container) |
||
34 | |||
35 | /** |
||
36 | * Returns whether the class implements TaskInterface. |
||
37 | * |
||
38 | * @param string $class |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | private function isTaskImplementation($class) |
||
51 | |||
52 | /** |
||
53 | * @param string $class |
||
54 | * @param string $taskId |
||
55 | */ |
||
56 | protected function validateClass($class, $taskId) |
||
66 | |||
67 | /** |
||
68 | * @param ContainerBuilder $container |
||
69 | * @param string $taskId |
||
70 | * @param Definition $registry |
||
71 | */ |
||
72 | protected function add(ContainerBuilder $container, $taskId, Definition $registry) |
||
81 | } |
||
82 |