Пример #1
0
 public static function prepare($output = false)
 {
     if ($output) {
         $output->writeln('<info>Preparing storage...</info>');
     }
     \Application\Tool\Storage::prepare();
     if ($output) {
         $output->writeln('<info>Preparing environment...</info>');
     }
     \Application\Tool\Environment::prepare();
     if ($output) {
         $output->writeln('<info>Preparing composer...</info>');
     }
     \Application\Tool\Composer::download();
     \Application\Tool\Composer::update();
     if (\Application\Tool\Bower::isInstalled()) {
         if ($output) {
             $output->writeln('<info>Preparing bower...</info>');
         }
         \Application\Tool\Bower::update();
     } else {
         if ($output) {
             $output->writeln('<info>Preparing bowerphp...</info>');
         }
         \Application\Tool\BowerPhp::download();
         \Application\Tool\BowerPhp::update();
     }
     if ($output) {
         $output->writeln('<info>Updating database schema...</info>');
     }
     \Application\Tool\Console::updateDatabaseSchema();
 }
 /**
  * @param OutputInterface $output
  */
 public static function prepare(OutputInterface $output = null)
 {
     if ($output) {
         $output->writeln('<info>Preparing storage...</info>');
     }
     Storage::prepare();
     if ($output) {
         $output->writeln('<info>Preparing environment...</info>');
     }
     Environment::prepare();
     if ($output) {
         $output->writeln('<info>Preparing composer...</info>');
     }
     Composer::download();
     Composer::update();
     if ($output) {
         $output->writeln('<info>Updating database schema...</info>');
     }
     self::updateDatabaseSchema();
 }