original_string: public function defineOptions(\Twig_Environment $env, $args) {
          $request = $this->requestStack->getCurrentRequest();
          if ($request) {
              $config = $this->fetchAutoTablesConfiguration($args);
              $entities = $this->entityInspectionService->parseEntities($this->getParameter($args, 'entities', array()), $config);
              $request->attributes->set('tsAutoTablesConfig', $config);
              $request->attributes->set('tsAutoTablesEntities', $entities);
              $request->attributes->set('tsAutoTablesEntityDescriptor', $this->entityInspectionService->fetchEntityDescriptor($config));
          }
          return '';
      }
code: public function defineOptions(\Twig_Environment $env, $args) {
          $request = $this->requestStack->getCurrentRequest();
          if ($request) {
              $config = $this->fetchAutoTablesConfiguration($args);
              $entities = $this->entityInspectionService->parseEntities($this->getParameter($args, 'entities', array()), $config);
              $request->attributes->set('tsAutoTablesConfig', $config);
              $request->attributes->set('tsAutoTablesEntities', $entities);
              $request->attributes->set('tsAutoTablesEntityDescriptor', $this->entityInspectionService->fetchEntityDescriptor($config));
          }
          return '';
      }
code_tokens: public function defineOptions ( \ Twig_Environment $ env , $ args ) { $ request = $ this -> requestStack -> getCurrentRequest ( ) ; if ( $ request ) { $ config = $ this -> fetchAutoTablesConfiguration ( $ args ) ; $ entities = $ this -> entityInspectionService -> parseEntities ( $ this -> getParameter ( $ args , 'entities' , array ( ) ) , $ config ) ; $ request -> attributes -> set ( 'tsAutoTablesConfig' , $ config ) ; $ request -> attributes -> set ( 'tsAutoTablesEntities' , $ entities ) ; $ request -> attributes -> set ( 'tsAutoTablesEntityDescriptor' , $ this -> entityInspectionService -> fetchEntityDescriptor ( $ config ) ) ; } return '' ; }
docstring: Define options to be used for "ts_auto_table" and "ts_auto_table_js".
docstring_tokens: Define options to be used for ts_auto_table and ts_auto_table_js .