forked from brefphp/extra-php-extensions
-
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.
Travis config and CS fixes (brefphp#1)
* Adding blackfire and xdebug * updates * Create nice folded reports * Use before install * cleanup * Syntax fixes * Use minimal travis image * CS fixes * cs
- Loading branch information
Showing
12 changed files
with
83 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
export/ export-ignore | ||
layers/ export-ignore | ||
src/ export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.phpcs.xml.dist export-ignore | ||
.prettyci.composer.json export-ignore | ||
.travis.yml export-ignore | ||
bref-extra export-ignore | ||
bchecksums.json export-ignore | ||
Makefile export-ignore | ||
|
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 |
---|---|---|
@@ -1,29 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
<?php declare(strict_types=1); | ||
|
||
namespace Bref\Extra\Aws; | ||
|
||
use Aws\Lambda\LambdaClient; | ||
use function GuzzleHttp\Promise\unwrap; | ||
|
||
/** | ||
* Fetches layers and details from AWS | ||
* | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class LayerProvider | ||
{ | ||
/** @var string */ | ||
private $awsId; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
/** @var array */ | ||
private $layerNames; | ||
|
||
/** | ||
* @param array $layerNames the name of the layers to list. | ||
* @param string $awsId The account id | ||
* @param array $layerNames the name of the layers to list. | ||
* @param string $awsId The account id | ||
*/ | ||
public function __construct(array $layerNames, string $awsId) | ||
{ | ||
|
@@ -50,7 +44,7 @@ public function listLayers(string $selectedRegion): array | |
|
||
// Wait on all of the requests to complete. Throws a ConnectException | ||
// if any of the requests fail | ||
$results = \GuzzleHttp\Promise\unwrap($promises); | ||
$results = unwrap($promises); | ||
|
||
$layers = []; | ||
foreach ($results as $layerName => $result) { | ||
|
@@ -61,6 +55,4 @@ public function listLayers(string $selectedRegion): array | |
|
||
return $layers; | ||
} | ||
|
||
|
||
} | ||
} |
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 |
---|---|---|
@@ -1,21 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
<?php declare(strict_types=1); | ||
|
||
namespace Bref\Extra\Command; | ||
|
||
use Bref\Extra\Aws\LayerPublisher; | ||
use Bref\Extra\Service\RegionProvider; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Finder\Finder; | ||
|
||
class HelpCommand | ||
{ | ||
public function __invoke(OutputInterface $output) | ||
public function __invoke(OutputInterface $output): int | ||
{ | ||
$output->writeln('With this small application you may publish new layers and list existing ones in layer.json'); | ||
$output->writeln('You may specify the following environment variables: AWS_ID, AWS_PROFILE'); | ||
|
||
return 0; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.