original_string: protected function getScript($request)
      {
          $kernel = var_export(serialize($this->kernel), true);
          $request = var_export(serialize($request), true);
  
          $errorReporting = error_reporting();
  
          $requires = '';
          foreach (get_declared_classes() as $class) {
              if (0 === strpos($class, 'ComposerAutoloaderInit')) {
                  $r = new \ReflectionClass($class);
                  $file = \dirname(\dirname($r->getFileName())).'/autoload.php';
                  if (file_exists($file)) {
                      $requires .= 'require_once '.var_export($file, true).";\n";
                  }
              }
          }
  
          if (!$requires) {
              throw new \RuntimeException('Composer autoloader not found.');
          }
  
          $code = <<<EOF
  <?php
  
  error_reporting($errorReporting);
  
  $requires
  
  \$kernel = unserialize($kernel);
  \$request = unserialize($request);
  EOF;
  
          return $code.$this->getHandleScript();
      }
code: protected function getScript($request)
      {
          $kernel = var_export(serialize($this->kernel), true);
          $request = var_export(serialize($request), true);
  
          $errorReporting = error_reporting();
  
          $requires = '';
          foreach (get_declared_classes() as $class) {
              if (0 === strpos($class, 'ComposerAutoloaderInit')) {
                  $r = new \ReflectionClass($class);
                  $file = \dirname(\dirname($r->getFileName())).'/autoload.php';
                  if (file_exists($file)) {
                      $requires .= 'require_once '.var_export($file, true).";\n";
                  }
              }
          }
  
          if (!$requires) {
              throw new \RuntimeException('Composer autoloader not found.');
          }
  
          $code = <<<EOF
  <?php
  
  error_reporting($errorReporting);
  
  $requires
  
  \$kernel = unserialize($kernel);
  \$request = unserialize($request);
  EOF;
  
          return $code.$this->getHandleScript();
      }
code_tokens: protected function getScript ( $ request ) { $ kernel = var_export ( serialize ( $ this -> kernel ) , true ) ; $ request = var_export ( serialize ( $ request ) , true ) ; $ errorReporting = error_reporting ( ) ; $ requires = '' ; foreach ( get_declared_classes ( ) as $ class ) { if ( 0 === strpos ( $ class , 'ComposerAutoloaderInit' ) ) { $ r = new \ ReflectionClass ( $ class ) ; $ file = \ dirname ( \ dirname ( $ r -> getFileName ( ) ) ) . '/autoload.php' ; if ( file_exists ( $ file ) ) { $ requires .= 'require_once ' . var_export ( $ file , true ) . ";\n" ; } } } if ( ! $ requires ) { throw new \ RuntimeException ( 'Composer autoloader not found.' ) ; } $ code =  <<<EOF
  <?php
  
  error_reporting($errorReporting);
  
  $requires
  
  \$kernel = unserialize($kernel);
  \$request = unserialize($request);
  EOF ; return $ code . $ this -> getHandleScript ( ) ; }
docstring: Returns the script to execute when the request must be insulated.
  
  @return string
docstring_tokens: Returns the script to execute when the request must be insulated .