Files
symfony-flex-recipes/archived/doctrine.doctrine-bundle/5e476e8edf3fa8e7f045ad034f89bb464424f5c1.json
T
github-action[bot]andgithub-action[bot] a5298a919f Update Flex archives
2021-12-18 17:20:12 +00:00

115 lines
5.3 KiB
JSON

{
"manifests": {
"doctrine/doctrine-bundle": {
"manifest": {
"bundles": {
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
},
"env": {
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
"#2": "For an SQLite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
"#3": "Configure your db driver and server_version in config/packages/doctrine.yaml",
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name"
},
"post-install-output": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Database Configuration </>",
"<bg=blue;fg=white> </>",
"",
" * Modify your DATABASE_URL config in <fg=green>.env</>",
"",
" * Configure the <fg=green>driver</> (mysql) and",
" <fg=green>server_version</> (5.7) in <fg=green>config/packages/doctrine.yaml</>"
]
},
"files": {
"config/packages/doctrine.yaml": {
"contents": [
"doctrine:",
" dbal:",
" # configure these for your database server",
" driver: 'pdo_mysql'",
" server_version: '5.7'",
" charset: utf8mb4",
" default_table_options:",
" charset: utf8mb4",
" collate: utf8mb4_unicode_ci",
"",
" url: '%env(resolve:DATABASE_URL)%'",
" orm:",
" auto_generate_proxy_classes: true",
" naming_strategy: doctrine.orm.naming_strategy.underscore",
" auto_mapping: true",
" mappings:",
" App:",
" is_bundle: false",
" type: annotation",
" dir: '%kernel.project_dir%/src/Entity'",
" prefix: 'App\\Entity'",
" alias: App",
""
],
"executable": false
},
"config/packages/prod/doctrine.yaml": {
"contents": [
"doctrine:",
" orm:",
" auto_generate_proxy_classes: false",
" metadata_cache_driver:",
" type: service",
" id: doctrine.system_cache_provider",
" query_cache_driver:",
" type: service",
" id: doctrine.system_cache_provider",
" result_cache_driver:",
" type: service",
" id: doctrine.result_cache_provider",
"",
"services:",
" doctrine.result_cache_provider:",
" class: Symfony\\Component\\Cache\\DoctrineProvider",
" public: false",
" arguments:",
" - '@doctrine.result_cache_pool'",
" doctrine.system_cache_provider:",
" class: Symfony\\Component\\Cache\\DoctrineProvider",
" public: false",
" arguments:",
" - '@doctrine.system_cache_pool'",
"",
"framework:",
" cache:",
" pools:",
" doctrine.result_cache_pool:",
" adapter: cache.app",
" doctrine.system_cache_pool:",
" adapter: cache.system",
""
],
"executable": false
},
"src/Entity/.gitignore": {
"contents": [
""
],
"executable": false
},
"src/Repository/.gitignore": {
"contents": [
""
],
"executable": false
}
},
"ref": "5e476e8edf3fa8e7f045ad034f89bb464424f5c1"
}
}
}