$details =
$this->
gatherDetails($propertyDefinitions,
$io,
$input);
try { $this->
validateDetails($details,
$propertyDefinitions);
} catch (\RuntimeException
$e) { $io->
error($e->
getMessage());
return self::FAILURE;
} $details =
$this->
normalizeDetails($details,
$propertyDefinitions);
$io->
info('Creating app structure under ' .
$details['name'
]);
$dir =
$this->appDir . '/' .
$details['name'
];
try { $this->
createApp($dir,
$details,
$input->
getOption('theme'
));
} catch (\RuntimeException
$e) { $io->
error($e->
getMessage());
return self::FAILURE;
}