| @@ 42-53 (lines=12) @@ | ||
| 39 | * |
|
| 40 | * @return Task[] |
|
| 41 | */ |
|
| 42 | protected function buildTasks(array $configuration) |
|
| 43 | { |
|
| 44 | $this->io->text('- Building tasks...'); |
|
| 45 | $builder = new TaskBuilder($this->debug); |
|
| 46 | ||
| 47 | $tasks = $builder->build($configuration); |
|
| 48 | ||
| 49 | $this->io->text('- Tasks build !'); |
|
| 50 | $this->io->newLine(); |
|
| 51 | ||
| 52 | return $tasks; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * Build the filter according to the configuration array. |
|
| @@ 62-73 (lines=12) @@ | ||
| 59 | * |
|
| 60 | * @return FilterInterface[] |
|
| 61 | */ |
|
| 62 | protected function buildFilters(array $configuration) |
|
| 63 | { |
|
| 64 | $this->io->text('- Building filters...'); |
|
| 65 | $builder = new FilterBuilder($this->container->get('event_dispatcher')); |
|
| 66 | ||
| 67 | $filters = $builder->build($configuration); |
|
| 68 | ||
| 69 | $this->io->text('- Filters build !'); |
|
| 70 | $this->io->newLine(); |
|
| 71 | ||
| 72 | return $filters; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Load the configuration from a yml file. |
|