diff --git a/alms/cycle-bundle/0.1/config/packages/cycle.yaml b/alms/cycle-bundle/0.1/config/packages/cycle.yaml new file mode 100644 index 000000000..67934330b --- /dev/null +++ b/alms/cycle-bundle/0.1/config/packages/cycle.yaml @@ -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)%' diff --git a/alms/cycle-bundle/0.1/manifest.json b/alms/cycle-bundle/0.1/manifest.json new file mode 100644 index 000000000..c935fe6ca --- /dev/null +++ b/alms/cycle-bundle/0.1/manifest.json @@ -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 .env" + ] +} diff --git a/alms/cycle-bundle/0.1/migrations/.gitignore b/alms/cycle-bundle/0.1/migrations/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/alms/cycle-bundle/0.1/src/Entity/.gitignore b/alms/cycle-bundle/0.1/src/Entity/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/alms/cycle-bundle/0.1/src/Repository/.gitignore b/alms/cycle-bundle/0.1/src/Repository/.gitignore new file mode 100644 index 000000000..e69de29bb