diff --git a/.gitattributes b/.gitattributes index 84c7add..14c3c35 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,3 @@ /Tests export-ignore /phpunit.xml.dist export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore +/.git* export-ignore diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..4689c4d --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,8 @@ +Please do not submit any Pull Requests here. They will be closed. +--- + +Please submit your PR here instead: +https://github.com/symfony/symfony + +This repository is what we call a "subtree split": a read-only subset of that main repository. +We're looking forward to your PR there! diff --git a/.github/workflows/close-pull-request.yml b/.github/workflows/close-pull-request.yml new file mode 100644 index 0000000..e55b478 --- /dev/null +++ b/.github/workflows/close-pull-request.yml @@ -0,0 +1,20 @@ +name: Close Pull Request + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: | + Thanks for your Pull Request! We love contributions. + + However, you should instead open your PR on the main repository: + https://github.com/symfony/symfony + + This repository is what we call a "subtree split": a read-only subset of that main repository. + We're looking forward to your PR there! diff --git a/CachingHttpClient.php b/CachingHttpClient.php index fd6a18c..0f2ee63 100644 --- a/CachingHttpClient.php +++ b/CachingHttpClient.php @@ -42,7 +42,7 @@ class CachingHttpClient implements HttpClientInterface, ResetInterface public function __construct(HttpClientInterface $client, StoreInterface $store, array $defaultOptions = []) { if (!class_exists(HttpClientKernel::class)) { - throw new \LogicException(sprintf('Using "%s" requires that the HttpKernel component version 4.3 or higher is installed, try running "composer require symfony/http-kernel:^5.4".', __CLASS__)); + throw new \LogicException(sprintf('Using "%s" requires the HttpKernel component, try running "composer require symfony/http-kernel".', __CLASS__)); } $this->client = $client; diff --git a/NoPrivateNetworkHttpClient.php b/NoPrivateNetworkHttpClient.php index 3b930ad..77d7bdf 100644 --- a/NoPrivateNetworkHttpClient.php +++ b/NoPrivateNetworkHttpClient.php @@ -78,11 +78,11 @@ public function stream(ResponseInterface|iterable $responses, ?float $timeout = } /** - * @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead + * @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead */ public function setLogger(LoggerInterface $logger): void { - trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.'); + trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.'); if ($this->client instanceof LoggerAwareInterface) { $this->client->setLogger($logger); diff --git a/ScopingHttpClient.php b/ScopingHttpClient.php index 0086b2d..948d40a 100644 --- a/ScopingHttpClient.php +++ b/ScopingHttpClient.php @@ -101,11 +101,11 @@ public function reset(): void } /** - * @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead + * @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead */ public function setLogger(LoggerInterface $logger): void { - trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.'); + trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.'); if ($this->client instanceof LoggerAwareInterface) { $this->client->setLogger($logger); diff --git a/TraceableHttpClient.php b/TraceableHttpClient.php index b6d30da..4168c3c 100644 --- a/TraceableHttpClient.php +++ b/TraceableHttpClient.php @@ -90,11 +90,11 @@ public function reset(): void } /** - * @deprecated since Symfony 7.1, configure the logger on the wrapper HTTP client directly instead + * @deprecated since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead */ public function setLogger(LoggerInterface $logger): void { - trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapper HTTP client directly instead.'); + trigger_deprecation('symfony/http-client', '7.1', 'Configure the logger on the wrapped HTTP client directly instead.'); if ($this->client instanceof LoggerAwareInterface) { $this->client->setLogger($logger);