/** * Gets the service identifier. * * If no identifier is passed the object identifier of this object will be returned. Function recursively * resolves identifier aliases and returns the aliased identifier. * * @param string|object $identifier The class identifier or identifier object * @return KObjectIdentifier */ public final function getIdentifier($identifier = null) { if (isset($identifier)) { $result = $this->__object_manager->getIdentifier($identifier); } else { $result = $this->__object_identifier; } return $result; }
/** * Get the object configuration * * If no identifier is passed the object config of this object will be returned. Function recursively * resolves identifier aliases and returns the aliased identifier. * * @param string|object $identifier A valid identifier string or object implementing ObjectInterface * @return KObjectConfig */ public function getConfig($identifier = null) { if (isset($identifier)) { $result = $this->__object_manager->getIdentifier($identifier)->getConfig(); } else { $result = $this->__object_config; } return $result; }