Symfony – how to add custom parameter to a service

Given a service with the following definition:

 

if you want to pass through a additional parameter (for example a string), like this:

Change your service definition to:

 

and then it will be available in the constructor, just like always.