In between commit solving tests for meta and template management

This commit is contained in:
Kevin Frantz
2019-01-06 13:13:24 +01:00
parent 6352e82ce1
commit 72d0a6ba95
11 changed files with 289 additions and 108 deletions

View File

@@ -9,6 +9,10 @@ use App\DBAL\Types\RESTResponseType;
*/
final class TemplatePathInformation implements TemplatePathInformationInterface
{
const MOLECULE_FOLDER = 'molecule';
const ATOM_FOLDER = 'atom';
/**
* @var string
*/
@@ -73,12 +77,12 @@ final class TemplatePathInformation implements TemplatePathInformationInterface
private function setMoleculeTemplatePath(): void
{
$this->moleculeTemplatePath = 'molecule/'.$this->suffix;
$this->moleculeTemplatePath = self::MOLECULE_FOLDER.'/'.$this->prefix.'/'.$this->suffix;
}
private function setAtomTemplatePath(): void
{
$this->atomTemplatePath = 'atom/'.$this->suffix;
$this->atomTemplatePath = self::ATOM_FOLDER.'/'.$this->prefix.'/'.$this->suffix;
}
/**