static function config(&$session, $pages)
 {
     self::$session = $session;
     self::$pages = $pages;
 }