Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
|
@ -0,0 +1,4 @@
|
|||
services:
|
||||
child_service:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
parent: parent_service
|
|
@ -0,0 +1,10 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
# the parent has autoconfigure true, but that does not cascade to the child
|
||||
autoconfigure: false
|
||||
# an autoconfigured "instanceof" is setup for IntegrationTestStub
|
||||
# but its calls are NOT added, because the class was only
|
||||
# set on the parent, not the child
|
||||
#calls:
|
||||
# - [enableSummer, [true]]
|
|
@ -0,0 +1,7 @@
|
|||
imports:
|
||||
- { resource: _child.yml }
|
||||
|
||||
services:
|
||||
parent_service:
|
||||
autoconfigure: true
|
||||
abstract: true
|
|
@ -0,0 +1,3 @@
|
|||
services:
|
||||
child_service:
|
||||
parent: parent_service
|
|
@ -0,0 +1,5 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
# autoconfigure is set on the parent, but not on the child
|
||||
autoconfigure: false
|
|
@ -0,0 +1,7 @@
|
|||
imports:
|
||||
- { resource: _child.yml }
|
||||
|
||||
services:
|
||||
parent_service:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
autoconfigure: true
|
|
@ -0,0 +1,3 @@
|
|||
services:
|
||||
child_service:
|
||||
parent: parent_service
|
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
# from an autoconfigured "instanceof" applied to parent class
|
||||
# but NOT inherited down to child
|
||||
# tags: [from_autoconfigure]
|
|
@ -0,0 +1,7 @@
|
|||
imports:
|
||||
- { resource: _child.yml }
|
||||
|
||||
services:
|
||||
parent_service:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
autoconfigure: true
|
|
@ -0,0 +1,9 @@
|
|||
services:
|
||||
# child_service in the end should be identical to this
|
||||
child_service_expected:
|
||||
class: stdClass
|
||||
autowire: false
|
||||
public: true
|
||||
lazy: true
|
||||
# ONLY the child tag, the parent tag does not inherit
|
||||
tags: [from_child]
|
13
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/integration/child_parent/main.yml
vendored
Normal file
13
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/integration/child_parent/main.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
services:
|
||||
parent_service:
|
||||
abstract: true
|
||||
lazy: true
|
||||
autowire: false
|
||||
public: false
|
||||
tags: [from_parent]
|
||||
|
||||
child_service:
|
||||
class: stdClass
|
||||
parent: parent_service
|
||||
public: true
|
||||
tags: [from_child]
|
|
@ -0,0 +1,8 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: stdClass
|
||||
# set explicitly on child (not overridden by parent)
|
||||
autoconfigure: false
|
||||
# set explicitly on child
|
||||
autowire: true
|
||||
tags: [from_defaults]
|
18
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/integration/defaults_child_tags/main.yml
vendored
Normal file
18
vendor/symfony/dependency-injection/Tests/Fixtures/yaml/integration/defaults_child_tags/main.yml
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
services:
|
||||
_defaults:
|
||||
autoconfigure: true
|
||||
autowire: true
|
||||
tags: [from_defaults]
|
||||
|
||||
parent_service:
|
||||
class: stdClass
|
||||
# will not override child
|
||||
autoconfigure: true
|
||||
# parent definitions are not applied to children
|
||||
tags: [from_parent]
|
||||
|
||||
child_service:
|
||||
parent: parent_service
|
||||
# _defaults is ok because these are explicitly set
|
||||
autoconfigure: false
|
||||
autowire: true
|
|
@ -0,0 +1,26 @@
|
|||
services:
|
||||
# main_service should look like this in the end
|
||||
main_service_expected:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
# _instanceof overrides _defaults
|
||||
autowire: false
|
||||
# inherited from _defaults
|
||||
autoconfigure: true
|
||||
# from _instanceof
|
||||
shared: false
|
||||
# service definition overrides _instanceof
|
||||
public: true
|
||||
|
||||
tags:
|
||||
- { name: foo_tag, tag_option: from_service }
|
||||
# these 2 are from instanceof
|
||||
- { name: foo_tag, tag_option: from_instanceof }
|
||||
- { name: bar_tag }
|
||||
- { name: from_defaults }
|
||||
# calls from instanceof are kept, but this comes later
|
||||
calls:
|
||||
# first call is from instanceof
|
||||
- [setSunshine, [bright]]
|
||||
#
|
||||
- [enableSummer, [true]]
|
||||
- [setSunshine, [warm]]
|
|
@ -0,0 +1,30 @@
|
|||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
public: true
|
||||
tags: [from_defaults]
|
||||
|
||||
_instanceof:
|
||||
Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStubParent:
|
||||
autowire: false
|
||||
shared: false
|
||||
public: false
|
||||
tags:
|
||||
- { name: foo_tag, tag_option: from_instanceof }
|
||||
calls:
|
||||
- [setSunshine, [bright]]
|
||||
|
||||
Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub:
|
||||
tags:
|
||||
- { name: bar_tag }
|
||||
|
||||
main_service:
|
||||
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
|
||||
public: true
|
||||
tags:
|
||||
- { name: foo_tag, tag_option: from_service }
|
||||
# calls from instanceof are kept, but this comes later
|
||||
calls:
|
||||
- [enableSummer, [true]]
|
||||
- [setSunshine, [warm]]
|
|
@ -0,0 +1,4 @@
|
|||
services:
|
||||
# loaded here to avoid defaults in other file
|
||||
child_service:
|
||||
parent: parent_service
|
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: stdClass
|
||||
# _defaults is applied to the parent, but autoconfigure: true
|
||||
# does not cascade to the child
|
||||
autoconfigure: false
|
|
@ -0,0 +1,9 @@
|
|||
imports:
|
||||
- { resource: _child.yml }
|
||||
|
||||
services:
|
||||
_defaults:
|
||||
autoconfigure: true
|
||||
|
||||
parent_service:
|
||||
class: stdClass
|
|
@ -0,0 +1,4 @@
|
|||
services:
|
||||
# loaded here to avoid defaults in other file
|
||||
child_service:
|
||||
parent: parent_service
|
|
@ -0,0 +1,7 @@
|
|||
services:
|
||||
child_service_expected:
|
||||
class: stdClass
|
||||
# applied to _instanceof of parent
|
||||
autowire: true
|
||||
# from _instanceof, applies to parent, but does NOT inherit to here
|
||||
# tags: [from_instanceof]
|
|
@ -0,0 +1,11 @@
|
|||
imports:
|
||||
- { resource: _child.yml }
|
||||
|
||||
services:
|
||||
_instanceof:
|
||||
stdClass:
|
||||
autowire: true
|
||||
tags: [from_instanceof]
|
||||
|
||||
parent_service:
|
||||
class: stdClass
|
Reference in a new issue