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 2e47edc4a5 feature #26498 Allow "json:" env var processor to accept null value (mcfedr)
This PR was merged into the 4.1-dev branch.

Discussion
----------

Allow "json:" env var processor to accept null value

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | Currently no docs for this feature

Edits the EnvVarProcessor so that it allows any type of variable in JSON encoded vars.

Previously it was only possible to use `%env(json:ENV)%` for array types, but this seems to be an arbitrary restriction, when I could have any other data type in that JSON.

Valid JSON that was previously rejected:
- `1`
- `null`
- `"string"`

Commits
-------

abc7480828 Allow "json:" env var processor to parse null values
2018-03-27 14:13:01 +02:00
..
Argument Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Compiler [DI] Validate env vars in config 2018-03-27 08:02:00 +02:00
Config fixed some deprecation messages 2017-12-31 06:50:45 +01:00
Dumper feature #25928 [DI] Allow binary values in parameters. (bburnichon) 2018-03-27 14:07:18 +02:00
Exception [DI][FrameworkBundle] Add PSR-11 "ContainerBag" to access parameters as-a-service 2017-12-04 09:41:54 +01:00
Extension Merge branch '2.8' into 3.3 2017-10-24 16:05:06 +02:00
LazyProxy removed version in @final @internal for version < 4.0 2018-02-19 13:18:43 +01:00
Loader [DI] Allow binary values in parameters. 2018-03-27 14:07:16 +02:00
ParameterBag [DI] Validate env vars in config 2018-03-27 08:02:00 +02:00
Tests feature #26498 Allow "json:" env var processor to accept null value (mcfedr) 2018-03-27 14:13:01 +02:00
.gitignore
Alias.php Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
CHANGELOG.md [DI] Validate env vars in config 2018-03-27 08:02:00 +02:00
ChildDefinition.php Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
composer.json [DI] Validate env vars in config 2018-03-27 08:02:00 +02:00
Container.php [DI] Fix missing "id" normalization when dumping the container 2018-03-02 14:51:21 +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 Merge branch '3.4' into 4.0 2018-03-05 10:28:26 -08:00
ContainerInterface.php [DI] Add ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE 2017-08-31 23:26:27 +02:00
Definition.php Adding support to bind scalar values to controller arguments 2018-03-23 11:48:06 -04:00
EnvVarProcessor.php Allow "json:" env var processor to parse null values 2018-03-19 19:53:10 +02:00
EnvVarProcessorInterface.php [DI] EnvVarProcessorInterface: fix missing use 2017-09-29 13:52:29 +02:00
ExpressionLanguage.php Merge branch '3.4' 2017-07-26 08:59:36 +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 Replace more docblocks by type-hints 2017-11-07 15:45:01 +01: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] deprecate TypedReference::canBeAutoregistered() and getRequiringClass() 2018-03-22 15:55:20 +01:00
Variable.php Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00

DependencyInjection Component

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

Resources