@@ -341,7 +341,6 @@ as arguments of other services:
341
341
- 3.14
342
342
343
343
# constants can be built-in, user-defined, or Enums
344
- - !php/const true
345
344
- !php/const E_ALL
346
345
- !php/const PDO::FETCH_NUM
347
346
- !php/const App\Service\AnotherService::SOME_CONSTANT
@@ -383,7 +382,6 @@ as arguments of other services:
383
382
<argument type =" constant" >true</argument >
384
383
385
384
<!-- constants can be built-in, user-defined, or Enums -->
386
- <argument type =" constant" >true</argument >
387
385
<argument type =" constant" >E_ALL</argument >
388
386
<argument type =" constant" >PDO::FETCH_NUM</argument >
389
387
<argument type =" constant" >App\Service\AnotherService::SOME_CONSTANT</argument >
@@ -406,6 +404,7 @@ as arguments of other services:
406
404
407
405
<!-- ... -->
408
406
</services >
407
+ </container >
409
408
410
409
.. code-block :: php
411
410
@@ -428,8 +427,8 @@ as arguments of other services:
428
427
// constants: built-in, user-defined, or Enums
429
428
->arg(4, E_ALL)
430
429
->arg(5, \PDO::FETCH_NUM)
431
- ->arg(6, \ App\Service\AnotherService::SOME_CONSTANT)
432
- ->arg(7, \ App\Config\SomeEnum::SomeCase)
430
+ ->arg(6, App\Service\AnotherService::SOME_CONSTANT)
431
+ ->arg(7, App\Config\SomeEnum::SomeCase)
433
432
434
433
// when not using autowiring, you can pass service arguments explicitly
435
434
->arg(8, service('some-service-id')) # fails if service doesn't exist
0 commit comments