Skip to content

Commit adf1978

Browse files
Correct case of suffix in example rate limiter
The suffix should be with an uppercase (`limiter` -> `Limiter)
1 parent e78aba4 commit adf1978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rate_limiter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ the number of requests to the API::
129129
class ApiController extends AbstractController
130130
{
131131
// if you're using service autowiring, the variable name must be:
132-
// "rate limiter name" (in camelCase) + "limiter" suffix
132+
// "rate limiter name" (in camelCase) + "Limiter" suffix
133133
public function index(RateLimiterFactory $anonymousApiLimiter)
134134
{
135135
// create a limiter based on a unique identifier of the client

0 commit comments

Comments
 (0)