-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Symfony] Create a Flex Recipe #316
Comments
Hey @alexander-schranz 👋 If you'd like, I can try to create a PR for this in the recipes-contrib repo, as it doesn't seem to difficult to do with the info you've already provided. Only thing I'm not sure if it is possible is the
{
"bundles": {
"Schranz\\Search\\Integration\\Symfony\\SearchBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "SEAL_DSN=\"memory://\"",
"SEAL_DSN": "loupe://var/indexes"
},
} |
@ToshY we could use |
I've created a PR: symfony/recipes-contrib#1575. If there's anything that needs to be changed, let me know. |
From other bundles, I think the standard way would be more like changing the parameters.yaml configuration to include a config specific for the config/packages/schranz_search.yamlschranz_search:
schemas:
default:
dir: '%kernel.project_dir%/config/schemas'
engines:
default:
adapter: '%env(SEAL_DSN)%'
when@test:
schranz_search:
engines:
default:
adapter: 'memory://' |
I'm also fine with that for the |
Hey @alexander-schranz 👋 I see the recipe has been merged, so I guess this can be closed 🙂 |
@ToshY thx! |
A flex recipe is considered to automatically registering the bundle and provide a test configuration for Symfony.
What should a flex recipe to https://github.com/symfony/recipes-contrib
config/packages/schranz_search.yaml
config/schemas/.gitignore
Create a empty schemas directory where the user can then create it schema files
SEAL_DSN for
.env
SEAL_DSN for
.env.test
Recipe manifest.json
The text was updated successfully, but these errors were encountered: