Controller/SearchController.php
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);
    }
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);
    }
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 ) ; }
Displays the terrific component search.

@Route("/search", name="composer_search")
@Template()

@param Request $request
@return Response
Displays the terrific component search .