src/app/Balloon.App.Cli/Console/Group.php 1 location
|
@@ 106-116 (lines=11) @@
|
| 103 |
|
* |
| 104 |
|
* @return bool |
| 105 |
|
*/ |
| 106 |
|
public function add(): bool |
| 107 |
|
{ |
| 108 |
|
$member = $this->parseMember(); |
| 109 |
|
$result = $this->server->addGroup($this->getopt->getOption('name'), $member, $this->parseParams()); |
| 110 |
|
|
| 111 |
|
$this->logger->info('new group ['.$result.'] created', [ |
| 112 |
|
'category' => get_class($this), |
| 113 |
|
]); |
| 114 |
|
|
| 115 |
|
return true; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
/** |
| 119 |
|
* Start. |
src/app/Balloon.App.Cli/Console/User.php 1 location
|
@@ 119-129 (lines=11) @@
|
| 116 |
|
* |
| 117 |
|
* @return bool |
| 118 |
|
*/ |
| 119 |
|
public function add(): bool |
| 120 |
|
{ |
| 121 |
|
$options = $this->parseParams(); |
| 122 |
|
$result = $this->server->addUser($this->getopt->getOption('username'), $options); |
| 123 |
|
|
| 124 |
|
$this->logger->info('new user ['.$result.'] created', [ |
| 125 |
|
'category' => get_class($this), |
| 126 |
|
]); |
| 127 |
|
|
| 128 |
|
return true; |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
/** |
| 132 |
|
* Start. |