/** * @return \Generated\Shared\Transfer\CollectionTransfer */ public function getSystemUsers() { $systemUser = $this->settings->getSystemUsers(); $collection = new CollectionTransfer(); foreach ($systemUser as $username) { $transferUser = new UserTransfer(); // TODO why setting the id? why is everything the username? $transferUser->setIdUser(0); $transferUser->setFirstName($username)->setLastName($username)->setUsername($username)->setPassword($username); $collection->addUser($transferUser); } return $collection; }
/** * Main Installer Method * * @return void */ public function install() { $this->addUsers($this->settings->getInstallerUsers()); }