示例#1
0
文件: User.php 项目: spryker/User
 /**
  * @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;
 }
示例#2
0
 /**
  * Main Installer Method
  *
  * @return void
  */
 public function install()
 {
     $this->addUsers($this->settings->getInstallerUsers());
 }