| @@ 243-254 (lines=12) @@ | ||
| 240 | /** |
|
| 241 | * {@inheritdoc} |
|
| 242 | */ |
|
| 243 | public function getMigrationPaths() |
|
| 244 | { |
|
| 245 | if (!isset($this->values['paths']['migrations'])) { |
|
| 246 | throw new \UnexpectedValueException('Migrations path missing from config file'); |
|
| 247 | } |
|
| 248 | ||
| 249 | if (is_string($this->values['paths']['migrations'])) { |
|
| 250 | $this->values['paths']['migrations'] = [$this->values['paths']['migrations']]; |
|
| 251 | } |
|
| 252 | ||
| 253 | return $this->values['paths']['migrations']; |
|
| 254 | } |
|
| 255 | ||
| 256 | /** |
|
| 257 | * Gets the base class name for migrations. |
|
| @@ 272-283 (lines=12) @@ | ||
| 269 | /** |
|
| 270 | * {@inheritdoc} |
|
| 271 | */ |
|
| 272 | public function getSeedPaths() |
|
| 273 | { |
|
| 274 | if (!isset($this->values['paths']['seeds'])) { |
|
| 275 | throw new \UnexpectedValueException('Seeds path missing from config file'); |
|
| 276 | } |
|
| 277 | ||
| 278 | if (is_string($this->values['paths']['seeds'])) { |
|
| 279 | $this->values['paths']['seeds'] = [$this->values['paths']['seeds']]; |
|
| 280 | } |
|
| 281 | ||
| 282 | return $this->values['paths']['seeds']; |
|
| 283 | } |
|
| 284 | ||
| 285 | /** |
|
| 286 | * Get the template file name. |
|