public function __construct() { $schemasDirectory = FileSystemUtil::getRootPath() . '/Config/resources/schemas'; $this->questionsSchemas = FileSystemUtil::readJsonContent($schemasDirectory . '/questions.json'); $this->itemSchemas = FileSystemUtil::readJsonContent($schemasDirectory . '/item.json'); $this->activitySchemas = FileSystemUtil::readJsonContent($schemasDirectory . '/activity.json'); $this->htmlSchemas = FileSystemUtil::readJsonContent($schemasDirectory . '/html.json'); }
public function __construct(SchemasService $schemasService) { $templateDirectory = FileSystemUtil::getRootPath() . '/Config/resources/templates'; $this->documentationPath = FileSystemUtil::getRootPath() . '/../documentation.html'; $this->twig = new \Twig_Environment(new \Twig_Loader_Filesystem($templateDirectory), ['debug' => true]); $this->twig->addExtension(new Twig_Extensions_Extension_Text()); $this->twig->addExtension(new Twig_Extension_Debug()); $this->schemasService = $schemasService; }
public function __construct(SchemasService $schemasService) { $this->templateDirectory = FileSystemUtil::getRootPath() . '/Config/resources/templates'; $this->questionOutputDir = FileSystemUtil::getRootPath() . '/Entities/QuestionTypes'; $this->itemOutputDir = FileSystemUtil::getRootPath() . '/Entities/Item'; $this->activityOutputDir = FileSystemUtil::getRootPath() . '/Entities/Activity'; $this->schemasService = $schemasService; $this->currentNamespace = ''; //TODO: Fix this hack properly! }