Added alms/cycle-bundle (#1569)

* Added alms/cycle-bundle

* Adjusted the indentation of the cycle-bundle.yaml file because it had 2 levels instead of 4.
Added the migrations folder that I forgot.

* Added the migrations folder that I forgot.

* Added a new line at the end of the cycle.yaml file.

* Fixed when@test config

* Fixed when@test config

* Update cycle.yaml

---------

Co-authored-by: Fabien Potencier <fabien@potencier.org>
This commit is contained in:
AlessandroAmos
2024-01-20 05:52:31 -03:00
committed by GitHub
parent 054eef6640
commit 07cc241a3f
5 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
cycle:
dbal:
databases:
default:
connection: default_connection
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)%'

View File

@@ -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</>"
]
}

View File

View File

View File