This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/DependencyInjection
Fabien Potencier 730841527a bug #25671 Remove randomness from dumped containers (nicolas-grekas)
This PR was merged into the 3.4 branch.

Discussion
----------

Remove randomness from dumped containers

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

With this PR, the generated container is immutable by cache clearing: it doesn't contain any random string anymore (well, third party bundles can add random things back, but at least core doesn't).

Since the class+file name of the container is based on a hash of its content, it means that they are now stable also. This should help fix some edge cases/race conditions during cache clears/rebuilds.

(fabbot failure is false positive)

Commits
-------

14dd5d1dbd Remove randomness from dumped containers
2018-01-04 16:42:01 +01:00
..
Argument [DI] Reference tagged services in config 2017-09-28 16:10:08 +02:00
Compiler fixed some deprecation messages 2017-12-31 07:59:27 +01:00
Config fixed some deprecation messages 2017-12-31 06:50:45 +01:00
Dumper Remove randomness from dumped containers 2018-01-04 16:07:28 +01:00
Exception [DI] Throw accurate failures when accessing removed services 2017-10-07 23:38:34 +02:00
Extension Merge branch '2.8' into 3.3 2017-10-24 16:05:06 +02:00
LazyProxy Merge branch '3.3' into 3.4 2017-11-05 17:10:10 +01:00
Loader [DX] [DI] Improve exception for invalid setter injection arguments 2018-01-03 12:24:16 +01:00
ParameterBag fixed some deprecation messages 2017-12-31 07:59:27 +01:00
Tests Remove randomness from dumped containers 2018-01-04 16:07:28 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Alias.php [DI] Turn services and aliases private by default, with BC layer 2017-09-19 11:28:48 +02:00
CHANGELOG.md [DI] Fix missing CHANGELOG update + typo 2017-10-02 14:00:46 +02:00
ChildDefinition.php [DI] Fix private-by-default BC layer 2017-09-19 23:28:23 +02:00
composer.json Merge branch '3.3' into 3.4 2017-12-11 12:38:23 -08:00
Container.php fixed some deprecation messages 2017-12-31 07:59:27 +01:00
ContainerAwareInterface.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
ContainerAwareTrait.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
ContainerBuilder.php Remove randomness from dumped containers 2018-01-04 16:07:28 +01:00
ContainerInterface.php [DI] Add ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE 2017-08-31 23:26:27 +02:00
Definition.php fixed some deprecation messages 2017-12-31 06:12:25 +01:00
DefinitionDecorator.php fixed some deprecation messages 2017-12-31 06:50:45 +01:00
EnvVarProcessor.php Merge branch '3.3' into 3.4 2017-10-28 18:49:05 +02:00
EnvVarProcessorInterface.php [DI] EnvVarProcessorInterface: fix missing use 2017-09-29 13:52:29 +02:00
ExpressionLanguage.php [DI] Fix using private services in expressions 2017-07-25 13:50:49 +02:00
ExpressionLanguageProvider.php [DI] Fix using private services in expressions 2017-07-25 13:50:49 +02:00
LICENSE fixed years in copyright 2018-01-03 08:23:28 +01:00
Parameter.php [DependencyInjection] fix phpDoc 2016-04-11 16:45:49 +02:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Reference.php fixed some deprecation messages 2017-12-31 06:12:25 +01:00
ResettableContainerInterface.php Implement resettable containers 2015-07-22 10:09:28 +02:00
ServiceLocator.php [DI] Add context to service-not-found exceptions thrown by service locators 2017-12-09 20:32:41 +01:00
ServiceSubscriberInterface.php [DI] Add and wire ServiceSubscriberInterface 2017-03-22 20:26:09 +01:00
TaggedContainerInterface.php remove api tags from code 2015-09-28 19:11:22 +02:00
TypedReference.php [DI] Restrict autowired registration to "same-vendor" namespaces 2017-04-06 11:28:30 +02:00
Variable.php [2.7] More docblock fixes 2017-11-07 15:04:08 +01:00

DependencyInjection Component

The DependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

Resources