public function validate() { $this->helper = (include FrontController::getRootPath() . "/src/cli_config.php"); $validator = Validation::createValidatorBuilder()->enableAnnotationMapping()->getValidator(); $violations = $validator->validate($this); return $violations; }
protected function getTemplatePath() { return rtrim(FrontController::getRootPath(), DIRECTORY_SEPARATOR) . "/" . ltrim($this->getTemplateFile(), DIRECTORY_SEPARATOR); }