forked from magento/ece-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAGECLOUD-4104: Introduce an API endpoints (magento#649)
- Loading branch information
1 parent
647e93e
commit 3f8c3fd
Showing
120 changed files
with
1,241 additions
and
1,003 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ | |
|
||
/** | ||
* CLI command for killing Magento cron processes | ||
* | ||
* @api | ||
*/ | ||
class CronKill extends Command | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ | |
|
||
/** | ||
* Performs post-deploy operations. | ||
* | ||
* @api | ||
*/ | ||
class PostDeploy extends Command | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
|
||
/** | ||
* Execute given scenarios. | ||
* | ||
* @api | ||
*/ | ||
class RunCommand extends Command | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\MagentoCloud\Config; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
class AdminData implements AdminDataInterface | ||
{ | ||
/** | ||
* @var EnvironmentDataInterface | ||
*/ | ||
private $environmentData; | ||
|
||
/** | ||
* @param EnvironmentDataInterface $environmentData | ||
*/ | ||
public function __construct(EnvironmentDataInterface $environmentData) | ||
{ | ||
$this->environmentData = $environmentData; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getLocale(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_LOCALE'] ?? 'en_US'; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getUsername(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_USERNAME'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getFirstName(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_FIRSTNAME'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getLastName(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_LASTNAME'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getEmail(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_EMAIL'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getPassword(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_PASSWORD'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getUrl(): string | ||
{ | ||
return $this->environmentData->getVariables()['ADMIN_URL'] ?? ''; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getDefaultCurrency(): string | ||
{ | ||
return 'USD'; | ||
} | ||
} |
Oops, something went wrong.