Download the PHP package enrise/soy-symfony-build-parameters-task without Composer
On this page you can find all versions of the php package enrise/soy-symfony-build-parameters-task. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enrise/soy-symfony-build-parameters-task
More information about enrise/soy-symfony-build-parameters-task
Files in enrise/soy-symfony-build-parameters-task
Package soy-symfony-build-parameters-task
Short Description Soy Symfony Build Parameters Task
License MIT
Informations about the package soy-symfony-build-parameters-task
Archived and unmaintained
This is an old repository that is no longer used or maintained. We advice to no longer use this repository.
Original README can be found below:
Soy Symfony Build Parameters Task
Install
This task is available as package at: https://packagist.org/packages/enrise/soy-symfony-build-parameters-task
You can run: composer require enrise/soy-symfony-build-parameters-task
After installing you can follow the usage below, if you don't know soy, first check: https://github.com/soy-php/soy
Objective and Usage
This task aims on generating the parameters.yml
for symfony configurations, for that using environment strategies.
The default strategy does:
- Read a global environment file:
files/env/environment.global.yml
- Read a environment file:
files/env/environment.dev.yml
- Reads a templace file:
app/config/parameters.dist.yml
- Generates the final parameters file:
app/config/parameters.yml
You can do it without interaction just by creating simple recipes like:
And then run:
Result:
Basic recipe can look like
This way will satisfy all tasks dependencies and also give total control. The help command will look like:
Parameters priorities (lower to higher)
If you supply no options the command default ones are gonna get used:
- --env-path env-path (default:
files/environment
) - --env env (default:
dev
) - --dest-file dest-file (default:
app/config/parameters.yml
) - --src-file src-file (default:
app/config/parameters.yml.dist
)
Symfony environment variable
CLI Arguments
Force on recipe
Recipe
All versions of soy-symfony-build-parameters-task with dependencies
soy-php/replace-task Version >=0.1.0
symfony/yaml Version ^2.0|^3.0