original_string: protected function registerDatabaseDriver()
      {
          $this->app->extend(DatabaseManager::class, function (DatabaseManager $db) {
              $db->extend('mysql-coroutine', function ($config, $name) {
                  $config['name'] = $name;
  
                  $connection = new MySqlConnection(
                      $this->getNewMySqlConnection($config, 'write'),
                      $config['database'],
                      $config['prefix'],
                      $config
                  );
  
                  if (isset($config['read'])) {
                      $connection->setReadPdo($this->getNewMySqlConnection($config, 'read'));
                  }
  
                  return $connection;
              });
  
              return $db;
          });
      }
code: protected function registerDatabaseDriver()
      {
          $this->app->extend(DatabaseManager::class, function (DatabaseManager $db) {
              $db->extend('mysql-coroutine', function ($config, $name) {
                  $config['name'] = $name;
  
                  $connection = new MySqlConnection(
                      $this->getNewMySqlConnection($config, 'write'),
                      $config['database'],
                      $config['prefix'],
                      $config
                  );
  
                  if (isset($config['read'])) {
                      $connection->setReadPdo($this->getNewMySqlConnection($config, 'read'));
                  }
  
                  return $connection;
              });
  
              return $db;
          });
      }
code_tokens: protected function registerDatabaseDriver ( ) { $ this -> app -> extend ( DatabaseManager :: class , function ( DatabaseManager $ db ) { $ db -> extend ( 'mysql-coroutine' , function ( $ config , $ name ) { $ config [ 'name' ] = $ name ; $ connection = new MySqlConnection ( $ this -> getNewMySqlConnection ( $ config , 'write' ) , $ config [ 'database' ] , $ config [ 'prefix' ] , $ config ) ; if ( isset ( $ config [ 'read' ] ) ) { $ connection -> setReadPdo ( $ this -> getNewMySqlConnection ( $ config , 'read' ) ) ; } return $ connection ; } ) ; return $ db ; } ) ; }
docstring: Register database driver for coroutine mysql.
docstring_tokens: Register database driver for coroutine mysql .