/** * constructor */ final function __construct() { self::$app || (self::$app = \Slim\Slim::getInstance()); $this->request = self::$app->request(); $this->response = self::$app->response(); $this->config = self::$app->config; $this->validator = self::$app->validator; $this->init(); }