Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f730ffa

Browse filesBrowse files
committed
feature #22234 [DI] Introducing autoconfigure: automatic _instanceof configuration (weaverryan)
This PR was squashed before being merged into the 3.3-dev branch (closes #22234). Discussion ---------- [DI] Introducing autoconfigure: automatic _instanceof configuration | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes (mostly, a continuation of a new feature) | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | symfony/symfony-docs#7538 This is a proposal to allow the user to opt into some automatic `_instanceof` config. Suppose I want to auto-tag all of my voters and event subscribers ```yml # current services: _defaults: autowire: true _instanceof: Symfony\Component\Security\Core\Authorization\Voter\VoterInterface: tags: [security.voter] Symfony\Component\EventDispatcher\EventSubscriberInterface: tags: [kernel.event_subscriber] # services using the above tags AppBundle\Security\PostVoter: ~ AppBundle\EventListener\CheckRequirementsSubscriber: ~ ``` If I'm registering a service with a class that implements `VoterInterface`, when would I ever *not* want that to be tagged with `security.voter`? Here's the proposed code: ```yml # proposed services: _defaults: autowire: true autoconfigure: true # services using the auto_configure_instanceof functionality AppBundle\Security\PostVoter: ~ AppBundle\EventListener\CheckRequirementsSubscriber: ~ ``` The user must opt into this and it only applies locally to this configuration file. It works because each enabled bundle would have the opportunity to add one or more "automatic instanceof" definitions - e.g. SecurityBundle would add the `security.voter` instanceof config, FrameworkBundle would add the `kernel.event_subscriber` instanceof config, etc. For another example, you can check out the proposed changes to `symfony-demo` - symfony/demo#483 - the `_instanceof` section is pretty heavy: https://github.com/hhamon/symfony-demo/blob/81694ac21e63bebe7ecfa22fa689766f2f38ccd5/app/config/services.yml#L20 Thanks! Commits ------- 18627bf [DI] Introducing autoconfigure: automatic _instanceof configuration
2 parents ad86e2d + 18627bf commit f730ffa
Copy full SHA for f730ffa

File tree

Expand file treeCollapse file tree

57 files changed

+410
-25
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

57 files changed

+410
-25
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ private function getContainerDefinitionData(Definition $definition, $omitTags =
222222
'shared' => $definition->isShared(),
223223
'abstract' => $definition->isAbstract(),
224224
'autowire' => $definition->isAutowired(),
225+
'autoconfigure' => $definition->isAutoconfigured(),
225226
);
226227

227228
foreach ($definition->getAutowiringTypes(false) as $autowiringType) {

‎src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/MarkdownDescriptor.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
183183
."\n".'- Shared: '.($definition->isShared() ? 'yes' : 'no')
184184
."\n".'- Abstract: '.($definition->isAbstract() ? 'yes' : 'no')
185185
."\n".'- Autowired: '.($definition->isAutowired() ? 'yes' : 'no')
186+
."\n".'- Autoconfigured: '.($definition->isAutoconfigured() ? 'yes' : 'no')
186187
;
187188

188189
foreach ($definition->getAutowiringTypes(false) as $autowiringType) {

‎src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ private function getContainerDefinitionDocument(Definition $definition, $id = nu
372372
$serviceXML->setAttribute('shared', $definition->isShared() ? 'true' : 'false');
373373
$serviceXML->setAttribute('abstract', $definition->isAbstract() ? 'true' : 'false');
374374
$serviceXML->setAttribute('autowired', $definition->isAutowired() ? 'true' : 'false');
375+
$serviceXML->setAttribute('autoconfigured', $definition->isAutoconfigured() ? 'true' : 'false');
375376
$serviceXML->setAttribute('file', $definition->getFile());
376377

377378
$calls = $definition->getMethodCalls();

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+60-2Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,49 @@
1313

1414
use Doctrine\Common\Annotations\Reader;
1515
use Symfony\Bridge\Monolog\Processor\DebugProcessor;
16+
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
17+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1618
use Symfony\Component\Cache\Adapter\AdapterInterface;
1719
use Symfony\Component\Cache\Adapter\ArrayAdapter;
1820
use Symfony\Component\Config\FileLocator;
1921
use Symfony\Component\Config\Loader\LoaderInterface;
2022
use Symfony\Component\Config\Resource\DirectoryResource;
23+
use Symfony\Component\Config\ResourceCheckerInterface;
2124
use Symfony\Component\Console\Application;
25+
use Symfony\Component\Console\Command\Command;
2226
use Symfony\Component\DependencyInjection\Alias;
2327
use Symfony\Component\DependencyInjection\ChildDefinition;
2428
use Symfony\Component\DependencyInjection\ContainerBuilder;
2529
use Symfony\Component\DependencyInjection\ContainerInterface;
2630
use Symfony\Component\DependencyInjection\Definition;
2731
use Symfony\Component\DependencyInjection\Exception\LogicException;
28-
use Symfony\Component\DependencyInjection\Reference;
2932
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
33+
use Symfony\Component\DependencyInjection\Reference;
34+
use Symfony\Component\DependencyInjection\ServiceSubscriberInterface;
35+
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
3036
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
3137
use Symfony\Component\Finder\Finder;
38+
use Symfony\Component\Form\FormTypeGuesserInterface;
39+
use Symfony\Component\Form\FormTypeInterface;
40+
use Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface;
41+
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
42+
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
3243
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
3344
use Symfony\Component\PropertyAccess\PropertyAccessor;
34-
use Symfony\Component\Serializer\Encoder\YamlEncoder;
45+
use Symfony\Component\PropertyInfo\PropertyAccessExtractorInterface;
46+
use Symfony\Component\PropertyInfo\PropertyDescriptionExtractorInterface;
47+
use Symfony\Component\PropertyInfo\PropertyListExtractorInterface;
48+
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
3549
use Symfony\Component\Serializer\Encoder\CsvEncoder;
50+
use Symfony\Component\Serializer\Encoder\EncoderInterface;
51+
use Symfony\Component\Serializer\Encoder\YamlEncoder;
3652
use Symfony\Component\Serializer\Mapping\Factory\CacheClassMetadataFactory;
3753
use Symfony\Component\Serializer\Normalizer\DataUriNormalizer;
3854
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
3955
use Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer;
56+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
57+
use Symfony\Component\Validator\ConstraintValidatorInterface;
58+
use Symfony\Component\Validator\ObjectInitializerInterface;
4059
use Symfony\Component\WebLink\HttpHeaderSerializer;
4160
use Symfony\Component\Workflow;
4261

@@ -225,6 +244,45 @@ public function load(array $configs, ContainerBuilder $container)
225244
'Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller',
226245
));
227246

247+
$container->registerForAutoconfiguration(Command::class)
248+
->addTag('console.command');
249+
$container->registerForAutoconfiguration(ResourceCheckerInterface::class)
250+
->addTag('config_cache.resource_checker');
251+
$container->registerForAutoconfiguration(ServiceSubscriberInterface::class)
252+
->addTag('container.service_subscriber');
253+
$container->registerForAutoconfiguration(AbstractController::class)
254+
->addTag('controller.service_arguments');
255+
$container->registerForAutoconfiguration(Controller::class)
256+
->addTag('controller.service_arguments');
257+
$container->registerForAutoconfiguration(DataCollectorInterface::class)
258+
->addTag('data_collector');
259+
$container->registerForAutoconfiguration(FormTypeInterface::class)
260+
->addTag('form.type');
261+
$container->registerForAutoconfiguration(FormTypeGuesserInterface::class)
262+
->addTag('form.type_guesser');
263+
$container->registerForAutoconfiguration(CacheClearerInterface::class)
264+
->addTag('kernel.cache_clearer');
265+
$container->registerForAutoconfiguration(CacheWarmerInterface::class)
266+
->addTag('kernel.cache_warmer');
267+
$container->registerForAutoconfiguration(EventSubscriberInterface::class)
268+
->addTag('kernel.event_subscriber');
269+
$container->registerForAutoconfiguration(PropertyListExtractorInterface::class)
270+
->addTag('property_info.list_extractor');
271+
$container->registerForAutoconfiguration(PropertyTypeExtractorInterface::class)
272+
->addTag('property_info.type_extractor');
273+
$container->registerForAutoconfiguration(PropertyDescriptionExtractorInterface::class)
274+
->addTag('property_info.description_extractor');
275+
$container->registerForAutoconfiguration(PropertyAccessExtractorInterface::class)
276+
->addTag('property_info.access_extractor');
277+
$container->registerForAutoconfiguration(EncoderInterface::class)
278+
->addTag('serializer.encoder');
279+
$container->registerForAutoconfiguration(NormalizerInterface::class)
280+
->addTag('serializer.normalizer');
281+
$container->registerForAutoconfiguration(ConstraintValidatorInterface::class)
282+
->addTag('validator.constraint_validator');
283+
$container->registerForAutoconfiguration(ObjectInitializerInterface::class)
284+
->addTag('validator.initializer');
285+
228286
if (PHP_VERSION_ID < 70000) {
229287
$this->addClassesToCompile(array(
230288
'Symfony\\Component\\Config\\ConfigCache',

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"shared": true,
1212
"abstract": true,
1313
"autowire": false,
14+
"autoconfigure": false,
1415
"file": null,
1516
"factory_class": "Full\\Qualified\\FactoryClass",
1617
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
- Shared: yes
1313
- Abstract: yes
1414
- Autowired: no
15+
- Autoconfigured: no
1516
- Factory Class: `Full\Qualified\FactoryClass`
1617
- Factory Method: `get`
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<alias id="alias_1" service="service_1" public="true"/>
3-
<definition id="service_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file="">
3+
<definition id="service_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" autoconfigured="false" file="">
44
<factory class="Full\Qualified\FactoryClass" method="get"/>
55
</definition>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"shared": true,
1212
"abstract": false,
1313
"autowire": false,
14+
"autoconfigure": false,
1415
"file": "\/path\/to\/file",
1516
"factory_service": "factory.service",
1617
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Shared: yes
1313
- Abstract: no
1414
- Autowired: no
15+
- Autoconfigured: no
1516
- File: `/path/to/file`
1617
- Factory Service: `factory.service`
1718
- Factory Method: `get`

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<alias id="alias_2" service="service_2" public="false"/>
3-
<definition id="service_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" file="/path/to/file">
3+
<definition id="service_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="/path/to/file">
44
<factory service="factory.service" method="get"/>
55
<calls>
66
<call method="setMailer"/>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.json
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"shared": true,
99
"abstract": true,
1010
"autowire": false,
11+
"autoconfigure": false,
1112
"arguments": [
1213
{
1314
"type": "service",
@@ -22,6 +23,7 @@
2223
"shared": true,
2324
"abstract": false,
2425
"autowire": false,
26+
"autoconfigure": false,
2527
"arguments": [
2628
"arg1",
2729
"arg2"
@@ -43,6 +45,7 @@
4345
"shared": true,
4446
"abstract": false,
4547
"autowire": false,
48+
"autoconfigure": false,
4649
"arguments": [],
4750
"file": null,
4851
"tags": []

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Definitions
1313
- Shared: yes
1414
- Abstract: yes
1515
- Autowired: no
16+
- Autoconfigured: no
1617
- Arguments: yes
1718
- Factory Class: `Full\Qualified\FactoryClass`
1819
- Factory Method: `get`

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<container>
33
<alias id="alias_1" service="service_1" public="true"/>
44
<alias id="alias_2" service="service_2" public="false"/>
5-
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file="">
5+
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" autoconfigured="false" file="">
66
<factory class="Full\Qualified\FactoryClass" method="get"/>
77
<argument type="service" id="definition2"/>
88
<argument>%parameter%</argument>
99
<argument>
10-
<definition class="inline_service" public="true" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" file="">
10+
<definition class="inline_service" public="true" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="">
1111
<argument>arg1</argument>
1212
<argument>arg2</argument>
1313
</definition>
@@ -16,7 +16,7 @@
1616
<argument>foo</argument>
1717
<argument type="service" id="definition2"/>
1818
<argument>
19-
<definition class="inline_service" public="true" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" file=""/>
19+
<definition class="inline_service" public="true" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file=""/>
2020
</argument>
2121
</argument>
2222
<argument type="iterator">

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"shared": true,
99
"abstract": true,
1010
"autowire": false,
11+
"autoconfigure": false,
1112
"file": null,
1213
"factory_class": "Full\\Qualified\\FactoryClass",
1314
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Definitions
1313
- Shared: yes
1414
- Abstract: yes
1515
- Autowired: no
16+
- Autoconfigured: no
1617
- Factory Class: `Full\Qualified\FactoryClass`
1718
- Factory Method: `get`
1819

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_public.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<container>
33
<alias id="alias_1" service="service_1" public="true"/>
44
<alias id="alias_2" service="service_2" public="false"/>
5-
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file="">
5+
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" autoconfigured="false" file="">
66
<factory class="Full\Qualified\FactoryClass" method="get"/>
77
</definition>
88
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerBuilder"/>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"shared": true,
99
"abstract": true,
1010
"autowire": false,
11+
"autoconfigure": false,
1112
"file": null,
1213
"factory_class": "Full\\Qualified\\FactoryClass",
1314
"factory_method": "get",
@@ -21,6 +22,7 @@
2122
"shared": true,
2223
"abstract": false,
2324
"autowire": false,
25+
"autoconfigure": false,
2426
"file": "\/path\/to\/file",
2527
"factory_service": "factory.service",
2628
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Definitions
1313
- Shared: yes
1414
- Abstract: yes
1515
- Autowired: no
16+
- Autoconfigured: no
1617
- Factory Class: `Full\Qualified\FactoryClass`
1718
- Factory Method: `get`
1819

@@ -25,6 +26,7 @@ Definitions
2526
- Shared: yes
2627
- Abstract: no
2728
- Autowired: no
29+
- Autoconfigured: no
2830
- File: `/path/to/file`
2931
- Factory Service: `factory.service`
3032
- Factory Method: `get`

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<container>
33
<alias id="alias_1" service="service_1" public="true"/>
44
<alias id="alias_2" service="service_2" public="false"/>
5-
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file="">
5+
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" autoconfigured="false" file="">
66
<factory class="Full\Qualified\FactoryClass" method="get"/>
77
</definition>
8-
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" file="/path/to/file">
8+
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="/path/to/file">
99
<factory service="factory.service" method="get"/>
1010
<calls>
1111
<call method="setMailer"/>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"shared": true,
99
"abstract": false,
1010
"autowire": false,
11+
"autoconfigure": false,
1112
"file": "\/path\/to\/file",
1213
"factory_service": "factory.service",
1314
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Definitions
1313
- Shared: yes
1414
- Abstract: no
1515
- Autowired: no
16+
- Autoconfigured: no
1617
- File: `/path/to/file`
1718
- Factory Service: `factory.service`
1819
- Factory Method: `get`

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<container>
3-
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" file="/path/to/file">
3+
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="/path/to/file">
44
<factory service="factory.service" method="get"/>
55
<calls>
66
<call method="setMailer"/>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"shared": true,
99
"abstract": false,
1010
"autowire": false,
11+
"autoconfigure": false,
1112
"file": "\/path\/to\/file",
1213
"factory_service": "factory.service",
1314
"factory_method": "get",
@@ -25,6 +26,7 @@
2526
"shared": true,
2627
"abstract": false,
2728
"autowire": false,
29+
"autoconfigure": false,
2830
"file": "\/path\/to\/file",
2931
"factory_service": "factory.service",
3032
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tag1
1313
- Shared: yes
1414
- Abstract: no
1515
- Autowired: no
16+
- Autoconfigured: no
1617
- File: `/path/to/file`
1718
- Factory Service: `factory.service`
1819
- Factory Method: `get`
@@ -31,6 +32,7 @@ tag2
3132
- Shared: yes
3233
- Abstract: no
3334
- Autowired: no
35+
- Autoconfigured: no
3436
- File: `/path/to/file`
3537
- Factory Service: `factory.service`
3638
- Factory Method: `get`

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.xml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<container>
33
<tag name="tag1">
4-
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" file="/path/to/file">
4+
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="/path/to/file">
55
<factory service="factory.service" method="get"/>
66
<calls>
77
<call method="setMailer"/>
88
</calls>
99
</definition>
1010
</tag>
1111
<tag name="tag2">
12-
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" file="/path/to/file">
12+
<definition id="definition_2" class="Full\Qualified\Class2" public="false" synthetic="true" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" file="/path/to/file">
1313
<factory service="factory.service" method="get"/>
1414
<calls>
1515
<call method="setMailer"/>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"shared": true,
77
"abstract": true,
88
"autowire": false,
9+
"autoconfigure": false,
910
"file": null,
1011
"factory_class": "Full\\Qualified\\FactoryClass",
1112
"factory_method": "get",

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
- Shared: yes
66
- Abstract: yes
77
- Autowired: no
8+
- Autoconfigured: no
89
- Factory Class: `Full\Qualified\FactoryClass`
910
- Factory Method: `get`
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<definition class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file="">
2+
<definition class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" autoconfigured="false" file="">
33
<factory class="Full\Qualified\FactoryClass" method="get"/>
44
</definition>

‎src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"shared": true,
77
"abstract": false,
88
"autowire": false,
9+
"autoconfigure": false,
910
"file": "\/path\/to\/file",
1011
"factory_service": "factory.service",
1112
"factory_method": "get",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.