Category : yaml

My security.yaml has following code: security: encoders: AppEntityUser: algorithm: auto # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: # used to reload user from session & other features (e.g. switch_user) app_user_provider: entity: class: AppEntityUser property: email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false api: anonymous: lazy logout: ~ pattern: ^/api guard: authenticators: – AppSecurityTokenAuthenticator stateless: true main: anonymous: lazy provider: app_user_provider ..

Read more

I’m creating a form in my controller and I’m using a translation file (messages.en.yml) for the labels, help text and so. One of the help text is rather long, so I need to add line breaks, but can’t figure out how. I’ve searched and found different posts but they could not help me. Thing is, ..

Read more

I just upgraded from Symfony 4.2 to 4.4. I’m using vich uploader bundle. In the the vich_uploader.yaml I’m getting the following error during cache cleaning or attempting to access the application via browser: The file "…/config/packages/vich_uploader.yaml" does not contain valid YAML: The reserved indicator "%" cannot start a plain scalar; you need to quote the ..

Read more

Within the root folder of our project we are having a styleguide.yml file (containing e.g. color definitions). It should be loaded within a Symfony Twig extension as well as within SASS and JavaScript (there should be one central place to define e.g. the colors). I have tried added the node-sass-yaml-importer package to package.json: "dependencies": { ..

Read more

How do you propery parse a YML to array in PHP I tried using the symfony yaml parse but somehow the php output is on a line by line basis and not group per underscore of data, is there a way we can group this per underscore? — – id: 53421926 title: Dr. firstName: Donna ..

Read more