public function build(array $params = null) 
    {
        if(null !== $params) {
            $this->setParams($params);
        }
        
        $this->adapter = $this->getDoctrinePaginatorAdapter();
		$this->setCurrentPageNumber($this->getParam('page', 1));
		$this->setDefaultItemCountPerPage($this->getParam('limit', 30));
    }
public function build(array $params = null) 
    {
        if(null !== $params) {
            $this->setParams($params);
        }
        
        $this->adapter = $this->getDoctrinePaginatorAdapter();
		$this->setCurrentPageNumber($this->getParam('page', 1));
		$this->setDefaultItemCountPerPage($this->getParam('limit', 30));
    }
public function build ( array $ params = null ) { if ( null !== $ params ) { $ this -> setParams ( $ params ) ; } $ this -> adapter = $ this -> getDoctrinePaginatorAdapter ( ) ; $ this -> setCurrentPageNumber ( $ this -> getParam ( 'page' , 1 ) ) ; $ this -> setDefaultItemCountPerPage ( $ this -> getParam ( 'limit' , 30 ) ) ; }
Build the instance
@param array $params
Build the instance