diff --git a/service_container.rst b/service_container.rst
index c1f5dc7b5f4..f94b15233c3 100644
--- a/service_container.rst
+++ b/service_container.rst
@@ -323,6 +323,127 @@ type-hints by running:
[...]
+In addition to injecting services, you can also pass scalar values and collections
+as arguments of other services:
+
+.. configuration-block::
+
+ .. code-block:: yaml
+
+ # config/services.yaml
+ services:
+ App\Service\SomeService:
+ arguments:
+ # string, numeric and boolean arguments can be passed "as is"
+ - 'Foo'
+ - true
+ - 7
+ - 3.14
+
+ # constants can be built-in, user-defined, or Enums
+ - !php/const E_ALL
+ - !php/const PDO::FETCH_NUM
+ - !php/const Symfony\Component\HttpKernel\Kernel::VERSION
+ - !php/const App\Config\SomeEnum::SomeCase
+
+ # when not using autowiring, you can pass service arguments explicitly
+ - '@some-service-id' # the leading '@' tells this is a service ID, not a string
+ - '@?some-service-id' # using '?' means to pass null if service doesn't exist
+
+ # binary contents are passed encoded as base64 strings
+ - !!binary VGhpcyBpcyBhIEJlbGwgY2hhciAH
+
+ # collections (arrays) can include any type of argument
+ -
+ first: !php/const true
+ second: 'Foo'
+
+ .. code-block:: xml
+
+
+
+
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: