feat(optimus): add recipe for ckrack/optimus-bundle

This commit is contained in:
Clemens Krack
2020-05-26 00:55:36 +02:00
parent 15e40f27cd
commit e1bae084c9
3 changed files with 35 additions and 0 deletions
@@ -0,0 +1,13 @@
ckrack_optimus:
# Large prime number lower than 2147483647
prime: "%env(int:OPTIMUS_PRIME)%"
# The inverse prime so that (PRIME * INVERSE) & MAXID == 1
inverse: "%env(int:OPTIMUS_INVERSE)%"
# A large random integer lower than 2147483647
random: "%env(int:OPTIMUS_RANDOM)%"
# if set to true, param converter will continue with the next available param converters
passthrough: true
+14
View File
@@ -0,0 +1,14 @@
{
"bundles": {
"Ckrack\\OptimusBundle\\CkrackOptimusBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "Replace these env vars with the output of `php vendor/bin/optimus spark -f env`",
"OPTIMUS_PRIME": 3,
"OPTIMUS_INVERSE": 715827883,
"OPTIMUS_RANDOM": 1592469642
}
}
@@ -0,0 +1,8 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Next: OptimusBundle Configuration </>
<bg=blue;fg=white> </>
* Generate your spark numbers by running <fg=green>php vendor/bin/optimus spark -f env</>
and configure them in your <fg=green>.env</>
Documentation: https://github.com/jenssegers/optimus