-
-
Notifications
You must be signed in to change notification settings - Fork 642
Install YAML Extensions? #1068
Comments
References: Seems ondrej provides this for all PHP versions.
You can install it by adding To get version switching working you can override the php_packages:
- "php{{ php_version }}"
- "php{{ php_version }}-apcu"
- "php{{ php_version }}-cli"
- "php{{ php_version }}-common"
- "php{{ php_version }}-curl"
- "php{{ php_version }}-dev"
- "php{{ php_version }}-fpm"
- "php{{ php_version }}-gd"
- "php{{ php_version }}-imap"
- "php{{ php_version }}-json"
- "php{{ php_version }}-mbstring"
- "php{{ php_version }}-mcrypt"
- "php{{ php_version }}-opcache"
- "php{{ php_version }}-sqlite3"
- "php{{ php_version }}-xml"
- "php{{ php_version }}-yaml" Edit: @geerlingguy maybe this should be added as a default? I assume it's also easily available on centos. Edit 2017-01-06: If someone is looking for how to add custom php packages, now you can:
Without having to override the vast array of all the packages. |
@oxyc - If it is available in CentOS, then yes, that's fine by me. Apparently there was quite a fraças over Symfony's YAML parser vs. the PHP one recently, and having this installed by default might help people testing YAML they're deploying to servers where the PHP extension is installed... |
And YAML is the new XML (but way more awesome-r), and we already include the xml... and json extensions. |
Issue #1068: Add php-yaml as a default php package
This is now installed by default. |
Issue Type
Your Environment
Your OS
Summary
Not sure if this is the best place for this, or maybe a pointer on how to install this so I can match my Acquia environment, but I have a discrepancy that cost a couple of hours yesterday.
I reported the issue here: One of the declarations in that routing file was double quoted, when it should be single quoted. I reported the issue here: https://www.drupal.org/node/2838151
It also seems that since I do not have the YAML extensions installed with the PHP config of my local VM (DrupalVM), this error did not occur. The Acquia environment does have the YAML extension installed. This is an important detail because I am told that Symfony parses YAML slightly differently in both cases - Symfony is more lax, where the YAML extension is more strict. This is why I could not reproduce locally.
How can I add that to the DrupalVM so it more closely matches my production environment?
The text was updated successfully, but these errors were encountered: