-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
YML error escaping @ as initial value's char #4889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've just tried and here is what I have with Symfony master:
which looks good to me. |
In sf 2.0.16 i get: InvalidArgumentException: You cannot dump a container with parameters that contain references to other services (reference to service "dc=mydomain.com" found in "/ad_ldap/base_dn"). |
I get a different error with current Symfony 2.2.0: app/config/arameters.yml parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: ~
database_name: symfony2
database_user: symfonyuser
database_password: symfonypass
mailer_transport: smtp
mailer_host: mail.example.com
mailer_user: user
mailer_password: "@S3cUr3!!Pa$s"
locale: de
secret: ThisIsWowTokenMoFo error message:
|
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7357). Discussion ---------- [DependencyInjection] Added @@ escaping strategy for YamlFileLoader and YamlDumper Added the possibility to to use ```@@``` as an escaping strategy for parameters that should be treated as strings but start with ```@``` (i.e. safe mailer passwords). This PR is deprecating #7307, since as a new feature it has to be compared against the master branch. | Q | A | | ------ | ------ | | Bug fix? | yes | | New feature? | yes | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | Fixed tickets | #4889 | Commits ------- 8cdf387 [DependencyInjection] Added '@@' escaping strategy for YamlFileLoader and YamlDumper
This PR deprecates symfony#2286 | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes symfony/symfony#7357 | Applies to | 2.1 | Fixed tickets | symfony/symfony#4889
If char '@' is first character of a yml value escaping fail.
Example:
I thinks it's related to #173
The text was updated successfully, but these errors were encountered: