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

Added alms/cycle-bundle #1569

Merged
merged 7 commits into from
Jan 20, 2024
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
34 changes: 34 additions & 0 deletions alms/cycle-bundle/0.1/config/packages/cycle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cycle:
dbal:
databases:
default:
connection: default_connection

fabpot marked this conversation as resolved.
Show resolved Hide resolved
connections:
default_connection:
driver: mysql
host: '%env(resolve:DB_HOST)%'
port: '%env(int:DB_PORT)%'
dbname: '%env(resolve:DB_NAME)%'
user: '%env(resolve:DB_USER)%'
password: '%env(resolve:DB_PASSWORD)%'
charset: utf8

orm:
schema:
type: attribute
dir: "%kernel.project_dir%/src/Entity"
cache_dir: "%kernel.cache_dir%/cycle"
relation:
fk_create: false
index_create: false

migration:
directory: "%kernel.project_dir%/migrations"

when@test:
cycle:
dbal:
connections:
default_connection:
dbname: 'test_%env(resolve:DB_NAME)%'
23 changes: 23 additions & 0 deletions alms/cycle-bundle/0.1/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"bundles": {
"Alms\\Bundle\\CycleBundle\\CycleBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/",
"migrations/": "migrations/"
},
"env": {
"DB_DRIVER": "mysql",
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_NAME": "app",
"DB_USER": "root",
"DB_PASSWORD": "secret"
},
"post-install-output": [
" * Modify your database config in <fg=green>.env</>"
]
}
Empty file.
Empty file.
Empty file.
Loading