original_string: protected function getBootstrappers()
      {
          $kernel = $this->getApplication()->make(Kernel::class);
  
          $reflection = new \ReflectionObject($kernel);
          $bootstrappersMethod = $reflection->getMethod('bootstrappers');
          $bootstrappersMethod->setAccessible(true);
          $bootstrappers = $bootstrappersMethod->invoke($kernel);
  
          array_splice($bootstrappers, -2, 0, ['Illuminate\Foundation\Bootstrap\SetRequestForConsole']);
  
          return $bootstrappers;
      }
code: protected function getBootstrappers()
      {
          $kernel = $this->getApplication()->make(Kernel::class);
  
          $reflection = new \ReflectionObject($kernel);
          $bootstrappersMethod = $reflection->getMethod('bootstrappers');
          $bootstrappersMethod->setAccessible(true);
          $bootstrappers = $bootstrappersMethod->invoke($kernel);
  
          array_splice($bootstrappers, -2, 0, ['Illuminate\Foundation\Bootstrap\SetRequestForConsole']);
  
          return $bootstrappers;
      }
code_tokens: protected function getBootstrappers ( ) { $ kernel = $ this -> getApplication ( ) -> make ( Kernel :: class ) ; $ reflection = new \ ReflectionObject ( $ kernel ) ; $ bootstrappersMethod = $ reflection -> getMethod ( 'bootstrappers' ) ; $ bootstrappersMethod -> setAccessible ( true ) ; $ bootstrappers = $ bootstrappersMethod -> invoke ( $ kernel ) ; array_splice ( $ bootstrappers , - 2 , 0 , [ 'Illuminate\Foundation\Bootstrap\SetRequestForConsole' ] ) ; return $ bootstrappers ; }
docstring: Get bootstrappers.
  
  @return array
  @throws \ReflectionException
docstring_tokens: Get bootstrappers .