Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding validation for email-id field #1050

Merged
merged 16 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CliService.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function createEdgeRoleForDrupal(
string $password,
?string $base_url,
?string $role_name,
?bool $force
?bool $force,
kedarkhaire marked this conversation as resolved.
Show resolved Hide resolved
) {
$this->apigeeEdgeManagementCliService->createEdgeRoleForDrupal(
$io,
Expand Down
2 changes: 1 addition & 1 deletion src/CliServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function createEdgeRoleForDrupal(
string $password,
?string $base_url,
?string $role_name,
?bool $force
?bool $force,
);

}
18 changes: 10 additions & 8 deletions src/Command/Util/ApigeeEdgeManagementCliService.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ public function __construct(ClientInterface $http_client) {
/**
* {@inheritdoc}
*/
public function createEdgeRoleForDrupal(StyleInterface $io,
callable $t,
string $org,
string $email,
string $password,
?string $base_url,
?string $role_name,
bool $force) {
public function createEdgeRoleForDrupal(
StyleInterface $io,
callable $t,
string $org,
string $email,
string $password,
?string $base_url,
?string $role_name,
bool $force,
) {

// Set default base URL if var is null or empty string.
if (empty($base_url)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function createEdgeRoleForDrupal(
string $password,
?string $base_url,
?string $role_name,
bool $force
bool $force,
);

}
3 changes: 2 additions & 1 deletion src/Commands/ApigeeEdgeCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public function createEdgeRole(
'base-url' => NULL,
'role-name' => NULL,
'force' => FALSE,
]) {
],
) {

// Call the CLI Service.
$this->cliService->createEdgeRoleForDrupal(
Expand Down
Loading