src/Controller/Plugin/PaginationParams.php
public function getList($namespace, $callback)
    {
        $session = new Container($namespace);
        $params  = $session->params?:array();
        if (!$session->list) {
            $session->list = is_array($callback)
            ? call_user_func($callback, $session->params)
            : $callback->getPaginationList($session->params);
        }
        return $session->list;
    }
public function getList($namespace, $callback)
    {
        $session = new Container($namespace);
        $params  = $session->params?:array();
        if (!$session->list) {
            $session->list = is_array($callback)
            ? call_user_func($callback, $session->params)
            : $callback->getPaginationList($session->params);
        }
        return $session->list;
    }
public function getList ( $ namespace , $ callback ) { $ session = new Container ( $ namespace ) ; $ params = $ session -> params ? : array ( ) ; if ( ! $ session -> list ) { $ session -> list = is_array ( $ callback ) ? call_user_func ( $ callback , $ session -> params ) : $ callback -> getPaginationList ( $ session -> params ) ; } return $ session -> list ; }
Gets the list of ids.

If no list is stored in the session, it will try to create one
using the given callback, which is either a RepositoryInterface or a
callable. In the first case, a method called "getPaginationList" will get called.
The stored parameters (or an empty array, if nothing is stored) will be passed.

@param string $namespace
@param RepositoryInterface|callable $callback

@return array
Gets the list of ids .