public function setPager($name, $pager)
    {
        $pg = $this->app['pager']->createPager($name);

        foreach ($pager as $prop => $value) {
            $pg->$prop = $value;
        }

        return $this;
    }
public function setPager($name, $pager)
    {
        $pg = $this->app['pager']->createPager($name);

        foreach ($pager as $prop => $value) {
            $pg->$prop = $value;
        }

        return $this;
    }
public function setPager ( $ name , $ pager ) { $ pg = $ this -> app [ 'pager' ] -> createPager ( $ name ) ; foreach ( $ pager as $ prop => $ value ) { $ pg -> $ prop = $ value ; } return $ this ; }
Setter for pager storage element.

@deprecated Just for keep BC

@param string      $name
@param array|Pager $pager

@return Storage
Setter for pager storage element .