Issue #3030209 by knyshuk.vova: Wrong replacement argument in error logger (8.7.x-dev)

8.7.x
Nathaniel Catchpole 2019-02-07 14:41:51 +00:00
parent 59f8c0d45d
commit 1c3c5573c7
1 changed files with 2 additions and 2 deletions

View File

@ -101,13 +101,13 @@ class ResourceRoutes implements EventSubscriberInterface {
// Check that authentication providers are defined.
if (empty($rest_resource_config->getAuthenticationProviders($method))) {
$this->logger->error('At least one authentication provider must be defined for resource @id', [':id' => $rest_resource_config->id()]);
$this->logger->error('At least one authentication provider must be defined for resource @id', ['@id' => $rest_resource_config->id()]);
continue;
}
// Check that formats are defined.
if (empty($rest_resource_config->getFormats($method))) {
$this->logger->error('At least one format must be defined for resource @id', [':id' => $rest_resource_config->id()]);
$this->logger->error('At least one format must be defined for resource @id', ['@id' => $rest_resource_config->id()]);
continue;
}