protected function makeSearchForm($resource, $class)
    {
        $form = $this->container->make($class);
        $this->publish($resource, 'search-form.created', [$form]);
        $form->addCssClass('search-form');
        return $form;
    }
protected function makeSearchForm($resource, $class)
    {
        $form = $this->container->make($class);
        $this->publish($resource, 'search-form.created', [$form]);
        $form->addCssClass('search-form');
        return $form;
    }
protected function makeSearchForm ( $ resource , $ class ) { $ form = $ this -> container -> make ( $ class ) ; $ this -> publish ( $ resource , 'search-form.created' , [ $ form ] ) ; $ form -> addCssClass ( 'search-form' ) ; return $ form ; }
Creates the search form and fires an event

@param string $resource
@param string $class
@return \FormObject\Form
Creates the search form and fires an event