Skip to content

Commit 862e30b

Browse files
feature #818 Use serverless endpoint by default (nicolas-grekas)
This PR was merged into the 1.16-dev branch. Discussion ---------- Use serverless endpoint by default Commits ------- 8950179 Use serverless endpoint by default
2 parents 30f453f + 8950179 commit 862e30b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-main": "1.16-dev"
31+
"dev-main": "1.17-dev"
3232
},
3333
"class": "Symfony\\Flex\\Flex"
3434
}

src/Downloader.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ public function __construct(Composer $composer, IoInterface $io, $rfs)
5858

5959
if (null === $endpoint = $composer->getPackage()->getExtra()['symfony']['endpoint'] ?? null) {
6060
$this->endpoints = self::DEFAULT_ENDPOINTS;
61-
62-
if (!filter_var(getenv('FLEX_SERVERLESS'), \FILTER_VALIDATE_BOOLEAN)) {
63-
$this->endpoints = null;
64-
$this->legacyEndpoint = 'https://flex.symfony.com';
65-
}
6661
} elseif (\is_array($endpoint) || false !== strpos($endpoint, '.json') || 'flex://defaults' === $endpoint) {
6762
$this->endpoints = array_values((array) $endpoint);
6863
if (\is_string($endpoint) && false !== strpos($endpoint, '.json')) {

0 commit comments

Comments
 (0)