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
if (null !== ($elasticsearch = $operation->getElasticsearch())) {
50
-
$solution = $elasticsearch
51
-
? sprintf('Pass an instance of %s to $stateOptions instead', Options::class)
52
-
: 'You will have to remove it when upgrading to v4';
53
-
trigger_deprecation('api-platform/core', '3.1', sprintf('Setting "elasticsearch" in Operation is deprecated. %s', $solution));
51
+
trigger_deprecation('api-platform/core', '3.1', sprintf('The "elasticsearch" property is deprecated. Use a stateOptions: "%s" instead.', Options::class));
if (null !== ($elasticsearch = $graphQlOperation->getElasticsearch())) {
74
-
$solution = $elasticsearch
75
-
? sprintf('Pass an instance of %s to $stateOptions instead', Options::class)
76
-
: 'You will have to remove it when upgrading to v4';
77
-
trigger_deprecation('api-platform/core', '3.1', sprintf('Setting "elasticsearch" in GraphQlOperation is deprecated. %s', $solution));
80
+
trigger_deprecation('api-platform/core', '3.1', sprintf('The "elasticsearch" property is deprecated. Use a stateOptions: "%s" instead.', Options::class));
78
81
}
79
-
if (null !== $elasticsearch && $this->hasIndices($graphQlOperation)) {
0 commit comments