public function __construct(RequestHandler $request)
 {
     parent::__construct($request);
     $this->flashMessage = FlashMessageSession::getInstance();
     $this->loadDefaultTemplateVars();
     $this->logger = $this->container->getLogger();
     $this->registerRepositories();
 }
 public function __construct()
 {
     parent::__construct();
     //获取接口分类
     $category = D('PortCategory')->getLists();
     $this->assign('categorys', $category);
     //获取接口列表
 }