| @@ 254-265 (lines=12) @@ | ||
| 251 | /** |
|
| 252 | * {@inheritdoc} |
|
| 253 | */ |
|
| 254 | public function getMigrationPaths() |
|
| 255 | { |
|
| 256 | if (!isset($this->values['paths']['migrations'])) { |
|
| 257 | throw new \UnexpectedValueException('Migrations path missing from config file'); |
|
| 258 | } |
|
| 259 | ||
| 260 | if (is_string($this->values['paths']['migrations'])) { |
|
| 261 | $this->values['paths']['migrations'] = [$this->values['paths']['migrations']]; |
|
| 262 | } |
|
| 263 | ||
| 264 | return $this->values['paths']['migrations']; |
|
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * Gets the base class name for migrations. |
|
| @@ 283-294 (lines=12) @@ | ||
| 280 | /** |
|
| 281 | * {@inheritdoc} |
|
| 282 | */ |
|
| 283 | public function getSeedPaths() |
|
| 284 | { |
|
| 285 | if (!isset($this->values['paths']['seeds'])) { |
|
| 286 | throw new \UnexpectedValueException('Seeds path missing from config file'); |
|
| 287 | } |
|
| 288 | ||
| 289 | if (is_string($this->values['paths']['seeds'])) { |
|
| 290 | $this->values['paths']['seeds'] = [$this->values['paths']['seeds']]; |
|
| 291 | } |
|
| 292 | ||
| 293 | return $this->values['paths']['seeds']; |
|
| 294 | } |
|
| 295 | ||
| 296 | /** |
|
| 297 | * Get the template file name. |
|