src/build/Agavi/Build/Console/Command/ControllerCreate.php 1 location
|
@@ 54-58 (lines=5) @@
|
| 51 |
|
public function execute(InputInterface $input, OutputInterface $output) |
| 52 |
|
{ |
| 53 |
|
|
| 54 |
|
if ($input->hasOption('settings') && $input->getOption('settings') != null) { |
| 55 |
|
$settingsFile = $input->getOption('settings'); |
| 56 |
|
} else { |
| 57 |
|
$settingsFile = '.' . DIRECTORY_SEPARATOR . '.settings.yml'; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
if (!file_exists($settingsFile)) { |
| 61 |
|
throw new InvalidArgumentException(sprintf('Cannot find settings file "%s"', $settingsFile)); |
src/build/Agavi/Build/Console/Command/ModuleCreate.php 1 location
|
@@ 47-51 (lines=5) @@
|
| 44 |
|
public function execute(InputInterface $input, OutputInterface $output) |
| 45 |
|
{ |
| 46 |
|
|
| 47 |
|
if ($input->hasOption('settings') && $input->getOption('settings') != null) { |
| 48 |
|
$settingsFile = $input->getOption('settings'); |
| 49 |
|
} else { |
| 50 |
|
$settingsFile = '.' . DIRECTORY_SEPARATOR . '.settings.yml'; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (!file_exists($settingsFile)) { |
| 54 |
|
throw new InvalidArgumentException(sprintf('Cannot find settings file "%s"', $settingsFile)); |
src/build/Agavi/Build/Console/Command/PubCreate.php 1 location
|
@@ 64-68 (lines=5) @@
|
| 61 |
|
|
| 62 |
|
$helper = $this->getHelper('question'); |
| 63 |
|
|
| 64 |
|
if ($input->hasOption('settings') && $input->getOption('settings') != null) { |
| 65 |
|
$settingsFile = $input->getOption('settings'); |
| 66 |
|
} else { |
| 67 |
|
$settingsFile = '.' . DIRECTORY_SEPARATOR . '.settings.yml'; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (!file_exists($settingsFile)) { |
| 71 |
|
throw new InvalidArgumentException(sprintf('Cannot find settings file "%s"', $settingsFile)); |
src/build/Agavi/Build/Console/Command/ViewCreate.php 1 location
|
@@ 51-55 (lines=5) @@
|
| 48 |
|
public function execute(InputInterface $input, OutputInterface $output) |
| 49 |
|
{ |
| 50 |
|
|
| 51 |
|
if ($input->hasOption('settings') && $input->getOption('settings') != null) { |
| 52 |
|
$settingsFile = $input->getOption('settings'); |
| 53 |
|
} else { |
| 54 |
|
$settingsFile = '.' . DIRECTORY_SEPARATOR . '.settings.yml'; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if (!file_exists($settingsFile)) { |
| 58 |
|
throw new InvalidArgumentException(sprintf('Cannot find settings file "%s"', $settingsFile)); |