Skip to content
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

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

Merged
5 commits merged into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ckrack/optimus-bundle/0.1/config/packages/ckrack_optimus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ckrack_optimus:
# Set options, as documented at https://github.com/jenssegers/optimus#usage
prime: "%env(int:OPTIMUS_PRIME)%"
inverse: "%env(int:OPTIMUS_INVERSE)%"
random: "%env(int:OPTIMUS_RANDOM)%"

# if set to true, param converter will continue with the next available param converters
passthrough: true
14 changes: 14 additions & 0 deletions ckrack/optimus-bundle/0.1/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
10 changes: 10 additions & 0 deletions ckrack/optimus-bundle/0.1/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<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</>

Optimus Documentation: https://github.com/jenssegers/optimus
Bundle Documentation: https://github.com/ckrack/optimus-bundle