Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -0,0 +1,4 @@
services:
child_service:
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
parent: parent_service

View file

@ -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]]

View file

@ -0,0 +1,7 @@
imports:
- { resource: _child.yml }
services:
parent_service:
autoconfigure: true
abstract: true

View file

@ -0,0 +1,3 @@
services:
child_service:
parent: parent_service

View file

@ -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

View file

@ -0,0 +1,7 @@
imports:
- { resource: _child.yml }
services:
parent_service:
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
autoconfigure: true

View file

@ -0,0 +1,3 @@
services:
child_service:
parent: parent_service

View file

@ -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]

View file

@ -0,0 +1,7 @@
imports:
- { resource: _child.yml }
services:
parent_service:
class: Symfony\Component\DependencyInjection\Tests\Compiler\IntegrationTestStub
autoconfigure: true

View file

@ -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]

View 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]

View file

@ -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]

View 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

View file

@ -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]]

View file

@ -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]]

View file

@ -0,0 +1,4 @@
services:
# loaded here to avoid defaults in other file
child_service:
parent: parent_service

View file

@ -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

View file

@ -0,0 +1,9 @@
imports:
- { resource: _child.yml }
services:
_defaults:
autoconfigure: true
parent_service:
class: stdClass

View file

@ -0,0 +1,4 @@
services:
# loaded here to avoid defaults in other file
child_service:
parent: parent_service

View file

@ -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]

View file

@ -0,0 +1,11 @@
imports:
- { resource: _child.yml }
services:
_instanceof:
stdClass:
autowire: true
tags: [from_instanceof]
parent_service:
class: stdClass