original_string: protected function install(AbstractInstall $installScript, OutputInterface $output)
      {
          $dataPath = DATADIR;
  
          $output->writeln('  Installing App...');
  
          // Install the database structure
          $this->runSql(
              $dataPath.DIRECTORY_SEPARATOR.GenerateInstallCommand::STRUCTURE_FILE,
              '  Creating initial database schema',
              sprintf('  Database schema file %s not found', GenerateInstallCommand::STRUCTURE_FILE),
              $output
          );
  
          // Install the database data
          $this->runSql(
              $dataPath.DIRECTORY_SEPARATOR.GenerateInstallCommand::DATA_FILE,
              '  Inserting initial data',
              sprintf('  Database data file %s not found', GenerateInstallCommand::DATA_FILE),
              $output
          );
  
          $output->writeln('  Running install script');
  
          $installScript->execute($this->db);
  
          $output->write(['  Install completed!', ''], true);
      }
code: protected function install(AbstractInstall $installScript, OutputInterface $output)
      {
          $dataPath = DATADIR;
  
          $output->writeln('  Installing App...');
  
          // Install the database structure
          $this->runSql(
              $dataPath.DIRECTORY_SEPARATOR.GenerateInstallCommand::STRUCTURE_FILE,
              '  Creating initial database schema',
              sprintf('  Database schema file %s not found', GenerateInstallCommand::STRUCTURE_FILE),
              $output
          );
  
          // Install the database data
          $this->runSql(
              $dataPath.DIRECTORY_SEPARATOR.GenerateInstallCommand::DATA_FILE,
              '  Inserting initial data',
              sprintf('  Database data file %s not found', GenerateInstallCommand::DATA_FILE),
              $output
          );
  
          $output->writeln('  Running install script');
  
          $installScript->execute($this->db);
  
          $output->write(['  Install completed!', ''], true);
      }
code_tokens: protected function install ( AbstractInstall $ installScript , OutputInterface $ output ) { $ dataPath = DATADIR ; $ output -> writeln ( '  Installing App...' ) ; // Install the database structure $ this -> runSql ( $ dataPath . DIRECTORY_SEPARATOR . GenerateInstallCommand :: STRUCTURE_FILE , '  Creating initial database schema' , sprintf ( '  Database schema file %s not found' , GenerateInstallCommand :: STRUCTURE_FILE ) , $ output ) ; // Install the database data $ this -> runSql ( $ dataPath . DIRECTORY_SEPARATOR . GenerateInstallCommand :: DATA_FILE , '  Inserting initial data' , sprintf ( '  Database data file %s not found' , GenerateInstallCommand :: DATA_FILE ) , $ output ) ; $ output -> writeln ( '  Running install script' ) ; $ installScript -> execute ( $ this -> db ) ; $ output -> write ( [ '  Install completed!' , '' ] , true ) ; }
docstring: Install fresh version of the database from db_structure and db_data files
  
  @param  AbstractInstall $installScript
  @param  OutputInterface $output        Command line output interface
docstring_tokens: Install fresh version of the database from db_structure and db_data files