original_string: public static function createEmbeddedShell(SessionInterface $session)
      {
          $container = new Container(self::MODE_EMBEDDED_SHELL);
          $container->get('phpcr.session_manager')->setSession(new PhpcrSession($session));
          $application = $container->get('application');
  
          return new Shell($application);
      }
code: public static function createEmbeddedShell(SessionInterface $session)
      {
          $container = new Container(self::MODE_EMBEDDED_SHELL);
          $container->get('phpcr.session_manager')->setSession(new PhpcrSession($session));
          $application = $container->get('application');
  
          return new Shell($application);
      }
code_tokens: public static function createEmbeddedShell ( SessionInterface $ session ) { $ container = new Container ( self :: MODE_EMBEDDED_SHELL ) ; $ container -> get ( 'phpcr.session_manager' ) -> setSession ( new PhpcrSession ( $ session ) ) ; $ application = $ container -> get ( 'application' ) ; return new Shell ( $ application ) ; }
docstring: Create a new embedded shell.
  
  @param SessionInterface $session
  
  @return Shell
docstring_tokens: Create a new embedded shell .