mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
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:
34
alms/cycle-bundle/0.1/config/packages/cycle.yaml
Normal file
34
alms/cycle-bundle/0.1/config/packages/cycle.yaml
Normal 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)%'
|
||||
23
alms/cycle-bundle/0.1/manifest.json
Normal file
23
alms/cycle-bundle/0.1/manifest.json
Normal 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</>"
|
||||
]
|
||||
}
|
||||
0
alms/cycle-bundle/0.1/migrations/.gitignore
vendored
Normal file
0
alms/cycle-bundle/0.1/migrations/.gitignore
vendored
Normal file
0
alms/cycle-bundle/0.1/src/Entity/.gitignore
vendored
Normal file
0
alms/cycle-bundle/0.1/src/Entity/.gitignore
vendored
Normal file
0
alms/cycle-bundle/0.1/src/Repository/.gitignore
vendored
Normal file
0
alms/cycle-bundle/0.1/src/Repository/.gitignore
vendored
Normal file
Reference in New Issue
Block a user