/** * @param \xecon\entity\Entity $entity * @return string */ public function getPath($entity) { $path = str_replace(["<type>", "<name>"], [$entity->getAbsolutePrefix(), $entity->getName()], $this->path); @mkdir(dirname($path), 0777, true); return $path; }
public function getUniqueName() { return implode("/", [$this->entity->getAbsolutePrefix(), $this->entity->getName(), $this->getName()]); }