You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bridge/symfony/filesystem-bundle/src/Flow/Bridge/Symfony/FilesystemBundle/DependencyInjection/Compiler/BuildFstabsPass.php
+85-1Lines changed: 85 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ public function process(ContainerBuilder $container) : void
Copy file name to clipboardExpand all lines: src/bridge/symfony/filesystem-bundle/src/Flow/Bridge/Symfony/FilesystemBundle/Filesystem/Factory/AsyncAwsS3FilesystemFactory.php
thrownewInvalidArgumentException(\sprintf('Filesystem factory for backend "aws_s3" `client` must be an array or %s instance, got %s.', S3Client::class, \get_debug_type($client)));
@@ -83,22 +78,20 @@ private function buildClient(array $clientConfig) : S3Client
83
78
$httpClient = null;
84
79
$logger = null;
85
80
86
-
if (\array_key_exists('http_client_service_id', $clientConfig)) {
87
-
$id = $clientConfig['http_client_service_id'];
88
-
89
-
if (\is_string($id) && $id !== '') {
90
-
$httpClient = $this->container->get($id);
81
+
if (\array_key_exists('http_client', $clientConfig) && $clientConfig['http_client'] !== null) {
82
+
if (!$clientConfig['http_client'] instanceof HttpClientInterface) {
83
+
thrownewInvalidArgumentException(\sprintf('Filesystem factory for backend "aws_s3" `client.http_client_service_id` must reference a service implementing %s.', HttpClientInterface::class));
91
84
}
92
-
unset($clientConfig['http_client_service_id']);
85
+
$httpClient = $clientConfig['http_client'];
86
+
unset($clientConfig['http_client']);
93
87
}
94
88
95
-
if (\array_key_exists('logger_service_id', $clientConfig)) {
96
-
$id = $clientConfig['logger_service_id'];
97
-
98
-
if (\is_string($id) && $id !== '') {
99
-
$logger = $this->container->get($id);
89
+
if (\array_key_exists('logger', $clientConfig) && $clientConfig['logger'] !== null) {
90
+
if (!$clientConfig['logger'] instanceof LoggerInterface) {
91
+
thrownewInvalidArgumentException(\sprintf('Filesystem factory for backend "aws_s3" `client.logger_service_id` must reference a service implementing %s.', LoggerInterface::class));
Copy file name to clipboardExpand all lines: src/bridge/symfony/filesystem-bundle/src/Flow/Bridge/Symfony/FilesystemBundle/Filesystem/Factory/AzureBlobFilesystemFactory.php
thrownewInvalidArgumentException(\sprintf('Filesystem factory for backend "azure_blob" `client` must be an array or %s instance, got %s.', BlobServiceInterface::class, \get_debug_type($client)));
if (!\is_string($serviceId) || $serviceId=== '') {
176
+
if ($service=== null) {
184
177
returnnull;
185
178
}
186
179
187
-
$service = $this->container->get($serviceId);
188
-
189
180
if (!$serviceinstanceof$expectedClass) {
190
-
thrownewInvalidArgumentException(\sprintf('Service "%s" is not an instance of %s.', $serviceId, $expectedClass));
181
+
thrownewInvalidArgumentException(\sprintf('Filesystem factory for backend "azure_blob" `client.%s` must reference a service implementing %s.', $configKey, $expectedClass));
Copy file name to clipboardExpand all lines: src/bridge/symfony/filesystem-bundle/src/Flow/Bridge/Symfony/FilesystemBundle/Resources/config/services.php
0 commit comments