Skip to content

Commit

Permalink
Standalone System - docbloc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo committed Sep 20, 2024
1 parent 80e38cf commit b051062
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions CRM/Utils/System/Standalone.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ protected function isUserExtensionAvailable(): bool {
}

/**
* @internal
* @return bool
* @inheritdoc
*
* In Standalone the UF is CiviCRM, so we're never
* running without it
*/
public function isLoaded(): bool {
return TRUE;
Expand All @@ -70,18 +72,6 @@ public function getDefaultFileStorage() {

/**
* @inheritDoc
*
* Create a user in the CMS.
*
* @param array $params keys:
* - 'cms_name'
* - 'cms_pass' plaintext password
* - 'notify' boolean
* @param string $emailParam
* Name of the $param which contains the email address.
*
* @return int|bool
* uid if user was created, false otherwise
*/
public function createUser(&$params, $emailParam) {
try {
Expand All @@ -99,11 +89,6 @@ public function createUser(&$params, $emailParam) {
return FALSE;
}

// @todo This next line is what Drupal does, but it's unclear why.
// I think it assumes we want to be logged in as this contact, and as there's no uf match, it's not in civi.
// But I'm not sure if we are always becomming this user; I'm not sure waht calls this function.
// CRM_Core_Config::singleton()->inCiviCRM = FALSE;

return (int) $userID;
}

Expand Down

0 comments on commit b051062

Please sign in to comment.