original_string: public function searchAction(Request $request)
      {
          // get all modules
          $moduleManager =  $this->get('terrific.composer.module.manager');
          $modules = $moduleManager->getModules();
  
          // get all pages
          $pageManager =  $this->get('terrific.composer.page.manager');
          $pages = $pageManager->getPages();
  
          // merge the results
          $results = array_merge($modules, $pages);
  
          return array('results' => $results);
      }
code: public function searchAction(Request $request)
      {
          // get all modules
          $moduleManager =  $this->get('terrific.composer.module.manager');
          $modules = $moduleManager->getModules();
  
          // get all pages
          $pageManager =  $this->get('terrific.composer.page.manager');
          $pages = $pageManager->getPages();
  
          // merge the results
          $results = array_merge($modules, $pages);
  
          return array('results' => $results);
      }
code_tokens: public function searchAction ( Request $ request ) { // get all modules $ moduleManager = $ this -> get ( 'terrific.composer.module.manager' ) ; $ modules = $ moduleManager -> getModules ( ) ; // get all pages $ pageManager = $ this -> get ( 'terrific.composer.page.manager' ) ; $ pages = $ pageManager -> getPages ( ) ; // merge the results $ results = array_merge ( $ modules , $ pages ) ; return array ( 'results' => $ results ) ; }
docstring: Displays the terrific component search.
  
  @Route("/search", name="composer_search")
  @Template()
  
  @param Request $request
  @return Response
docstring_tokens: Displays the terrific component search .