public function getNamespace($objectKey) { $objectKey = Objects::normalizeObjectKey($objectKey); $temp = explode('/', $objectKey); $config = $this->jarves->getConfig($temp[0]); return $config ? $config->getBundleClass()->getNamespace() : null; }
/** * Returns php class name. * * @param string $objectName * * @return string */ public function getPhpName($objectName = null) { $clazz = Objects::normalizeObjectKey($objectName ?: $this->getObjectKey()); $clazz = $this->objects->getNamespace($clazz) . '\\Model\\' . ucfirst($this->objects->getName($clazz)); return $clazz; }