mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
Update Flex archives
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/admin-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"templates/": "templates/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> To finish the install </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * Your admin is almost ready:",
|
||||
" 1. Install the JavaScript dependencies by running <comment>yarn add @api-platform/admin @babel/preset-react</comment>",
|
||||
" 2. Edit <comment>webpack.config.js</comment> and <info>uncomment</info> the following lines:",
|
||||
"",
|
||||
" Encore",
|
||||
" // ...",
|
||||
" .enableReactPreset()",
|
||||
" .addEntry('admin', './assets/js/admin.js')",
|
||||
"",
|
||||
" * Mark entities you want in the admin with the <comment>@ApiResource</comment> annotation, it appears in the admin!",
|
||||
"",
|
||||
" * Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/js/admin.js": {
|
||||
"contents": [
|
||||
"import React from 'react';",
|
||||
"import ReactDOM from 'react-dom';",
|
||||
"import { HydraAdmin } from '@api-platform/admin';",
|
||||
"",
|
||||
"const entrypoint = document.getElementById('api-entrypoint').innerText;",
|
||||
"",
|
||||
"ReactDOM.render(<HydraAdmin entrypoint={entrypoint}/>, document.getElementById('api-platform-admin'));",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform_admin.yaml": {
|
||||
"contents": [
|
||||
"admin:",
|
||||
" path: /admin",
|
||||
" controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController",
|
||||
" defaults:",
|
||||
" template: admin.html.twig",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"templates/admin.html.twig": {
|
||||
"contents": [
|
||||
"{% extends 'base.html.twig' %}",
|
||||
"",
|
||||
"{% block title %}API Platform Admin{% endblock %}",
|
||||
"",
|
||||
"{% block body %}<div id=\"api-platform-admin\"></div>{% endblock %}",
|
||||
"",
|
||||
"{% block javascripts %}",
|
||||
" <script type=\"text/plain\" id=\"api-entrypoint\">{{ path('api_entrypoint') }}</script>",
|
||||
" {{ encore_entry_script_tags('admin') }}",
|
||||
"{% endblock %}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "488ebfb0cddd283c16f4d072c6675ae7d7d52eb4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/admin-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"templates/": "templates/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Your admin is almost ready:",
|
||||
" 1. Install the JavaScript dependencies by running <comment>yarn add @api-platform/admin @babel/preset-react</comment>",
|
||||
" 2. Edit <comment>webpack.config.js</comment> and <info>uncomment</info> the following lines:",
|
||||
"",
|
||||
" Encore",
|
||||
" // ...",
|
||||
" .enableReactPreset()",
|
||||
" .addEntry('admin', './assets/js/admin.js')",
|
||||
"",
|
||||
" * Mark entities you want in the admin with the <comment>@ApiResource</comment> annotation, it appears in the admin!",
|
||||
"",
|
||||
" * Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/js/admin.js": {
|
||||
"contents": [
|
||||
"import React from 'react';",
|
||||
"import ReactDOM from 'react-dom';",
|
||||
"import { HydraAdmin } from '@api-platform/admin';",
|
||||
"",
|
||||
"const entrypoint = document.getElementById('api-entrypoint').innerText;",
|
||||
"",
|
||||
"ReactDOM.render(<HydraAdmin entrypoint={entrypoint}/>, document.getElementById('api-platform-admin'));",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform_admin.yaml": {
|
||||
"contents": [
|
||||
"admin:",
|
||||
" path: /admin",
|
||||
" controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController",
|
||||
" defaults:",
|
||||
" template: admin.html.twig",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"templates/admin.html.twig": {
|
||||
"contents": [
|
||||
"{% extends 'base.html.twig' %}",
|
||||
"",
|
||||
"{% block title %}API Platform Admin{% endblock %}",
|
||||
"",
|
||||
"{% block body %}<div id=\"api-platform-admin\"></div>{% endblock %}",
|
||||
"",
|
||||
"{% block javascripts %}",
|
||||
" <script type=\"text/plain\" id=\"api-entrypoint\">{{ path('api_entrypoint') }}</script>",
|
||||
" {{ encore_entry_script_tags('admin') }}",
|
||||
"{% endblock %}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "703c6453b039330753a7ae6cebd0af8ab1d770d8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" loader_paths:",
|
||||
" annotation: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routing/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "024f5f6ddafaf03a7770294af699070c471a6dd1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
" patch_formats:",
|
||||
" json: ['application/merge-patch+json']",
|
||||
" swagger:",
|
||||
" versions: [3]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "05b57782a78c21a664a42055dc11cf1954ca36bb"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> What's next? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "18727d8f229306860b46955f438e1897421da689"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> What's next? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
" patch_formats:",
|
||||
" json: ['application/merge-patch+json']",
|
||||
" swagger:",
|
||||
" versions: [3]",
|
||||
" defaults:",
|
||||
" stateless: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "399f4eebad31cea61519e67c1a9d07d42615b3f9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" loader_paths:",
|
||||
" annotation: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/routing/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6125647e444beb7593e2f9224ad1af1188d739de"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" loader_paths:",
|
||||
" annotation: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/routing/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "71fa23dd95eab384d2690c049b6d76534b70ab0e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" loader_paths:",
|
||||
" annotation: [\"%kernel.project_dir%/src/Entity\"]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/routing/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7e530c64900a179cb8a062ed2f25402f5b087a35"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" loader_paths:",
|
||||
" annotation: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "9241ff8d8775ec7ffb8085b19339d54caec867d3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> What's next? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
" patch_formats:",
|
||||
" json: ['application/merge-patch+json']",
|
||||
" swagger:",
|
||||
" versions: [3]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a93061567140e386f107be75340ac2aee3f86cbf"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b50f8aa321cc40c380dda7605aa5cef66f476802"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d57f9ff8067d8d077f026c4b4700ec876839aed9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ed781509a14e12c28360affdeeb1cc8c8636613b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/core": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"ApiPlatform\\Core\\Bridge\\Symfony\\Bundle\\ApiPlatformBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> </>",
|
||||
"<bg=blue;fg=white> What's next? </>",
|
||||
"<bg=blue;fg=white> </>",
|
||||
"",
|
||||
" * Your API is almost ready:",
|
||||
" 1. Create your first API resource in <info>src/Entity</info>;",
|
||||
" 2. Go to <info>/api</info> to browse your API",
|
||||
"",
|
||||
" * To enable the GraphQL support, run <comment>composer require webonyx/graphql-php</>,",
|
||||
" then browse <info>/api/graphql</info>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://api-platform.com/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" mapping:",
|
||||
" paths: ['%kernel.project_dir%/src/Entity']",
|
||||
" patch_formats:",
|
||||
" json: ['application/merge-patch+json']",
|
||||
" swagger:",
|
||||
" versions: [3]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/api_platform.yaml": {
|
||||
"contents": [
|
||||
"api_platform:",
|
||||
" resource: .",
|
||||
" type: api_platform",
|
||||
" prefix: /api",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f132b33c43cf47b4451d91d2b57057eacb6b8e1d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"// Load cached env vars if the .env.local.php file exists",
|
||||
"// Run \"composer dump-env prod\" to create it (requires symfony/flex >=1.2)",
|
||||
"if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {",
|
||||
" foreach ($env as $k => $v) {",
|
||||
" $_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);",
|
||||
" }",
|
||||
"} elseif (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"} else {",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv(false);",
|
||||
"",
|
||||
" // load all the .env files",
|
||||
" if (method_exists($dotenv, 'loadEnv')) {",
|
||||
" $dotenv->loadEnv($path);",
|
||||
" } else {",
|
||||
" // fallback code in case your Dotenv component is not 4.2 or higher (when loadEnv() was added)",
|
||||
"",
|
||||
" if (file_exists($path) || !file_exists($p = \"$path.dist\")) {",
|
||||
" $dotenv->load($path);",
|
||||
" } else {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (null === $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) {",
|
||||
" $dotenv->populate(array('APP_ENV' => $env = 'dev'));",
|
||||
" }",
|
||||
"",
|
||||
" if ('test' !== $env && file_exists($p = \"$path.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env;",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$_SERVER += $_ENV;",
|
||||
"$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';",
|
||||
"$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];",
|
||||
"$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" *",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');",
|
||||
"require dirname(__DIR__, 2).'/config/bootstrap.php';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "158be9d4b4c2127d9ec741c97e3cb1b6610b5294"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"// The check is to ensure we don't use .env in production",
|
||||
"if (!getenv('APP_ENV')) {",
|
||||
" (new Dotenv())->load(__DIR__.'/../../.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "38dc7d0e2b29d7894b37c5ba0451399810b57c6f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"// The check is to ensure we don't use .env in production",
|
||||
"if (!isset($_SERVER['APP_ENV'])) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new \\RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add \"symfony/dotenv\" as a Composer dependency to load variables from a .env file.');",
|
||||
" }",
|
||||
" (new Dotenv())->load(__DIR__.'/../../.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6b63fb76d3bb2dd16098f12adf6d6ca844e21862"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"App\\Kernel::bootstrapEnv('test');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "829ff932c8487ebd835654dc626fb2fbba82bf95"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" *",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__, 2).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__, 2).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__, 2).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "af4f8fa93b1fee9e6f15d1e208ce743bb31cb2b2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"// The check is to ensure we don't use .env in production",
|
||||
"if (!isset($_SERVER['APP_ENV'])) {",
|
||||
" (new Dotenv())->load(__DIR__.'/../../.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c7f17046c050428d9c3c7698861cc5edd045404d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"features/": "features/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');",
|
||||
"require dirname(__DIR__, 2).'/src/.bootstrap.php';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/.bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" if (method_exists($dotenv, 'loadEnv')) {",
|
||||
" $dotenv->loadEnv($path);",
|
||||
" } else {",
|
||||
" // fallback code in case your Dotenv component is not 4.2 or higher (when loadEnv() was added)",
|
||||
"",
|
||||
" if (file_exists($path) || !file_exists($p = \"$path.dist\")) {",
|
||||
" $dotenv->load($path);",
|
||||
" } else {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (null === $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) {",
|
||||
" $dotenv->populate(array('APP_ENV' => $env = 'dev'));",
|
||||
" }",
|
||||
"",
|
||||
" if ('test' !== $env && file_exists($p = \"$path.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env;",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $_SERVER['APP_ENV'] ?: $_ENV['APP_ENV'] ?: 'dev';",
|
||||
"$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];",
|
||||
"$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ec8e855d4dae5e2627ea6ec5d8e8cfb7ed9e0c10"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
{
|
||||
"manifests": {
|
||||
"behat/symfony2-extension": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"behat.yml.dist": "behat.yml.dist",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"features/": "features/"
|
||||
},
|
||||
"gitignore": [
|
||||
"behat.yml"
|
||||
],
|
||||
"post-install-output": [
|
||||
"<bg=blue;fg=white> Next for Behat/SymfonyExtension </>",
|
||||
" Run <comment>vendor/bin/behat</> to run the demo tests."
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"behat.yml.dist": {
|
||||
"contents": [
|
||||
"default:",
|
||||
" suites:",
|
||||
" default:",
|
||||
" contexts:",
|
||||
" - FeatureContext:",
|
||||
" kernel: '@kernel'",
|
||||
"",
|
||||
" extensions:",
|
||||
" Behat\\Symfony2Extension:",
|
||||
" kernel:",
|
||||
" bootstrap: features/bootstrap/bootstrap.php",
|
||||
" class: App\\Kernel",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!array_key_exists('APP_ENV', $_SERVER)) {",
|
||||
" $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] ?? null;",
|
||||
"}",
|
||||
"",
|
||||
"if ('prod' !== $_SERVER['APP_ENV']) {",
|
||||
" if (!class_exists(Dotenv::class)) {",
|
||||
" throw new RuntimeException('The \"APP_ENV\" environment variable is not set to \"prod\". Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
" }",
|
||||
"",
|
||||
" $path = dirname(__DIR__).'/.env';",
|
||||
" $dotenv = new Dotenv();",
|
||||
"",
|
||||
" if (method_exists($dotenv, 'loadEnv')) {",
|
||||
" $dotenv->loadEnv($path);",
|
||||
" } else {",
|
||||
" // fallback code in case your Dotenv component is not 4.2 or higher (when loadEnv() was added)",
|
||||
"",
|
||||
" if (file_exists($path) || !file_exists($p = \"$path.dist\")) {",
|
||||
" $dotenv->load($path);",
|
||||
" } else {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (null === $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) {",
|
||||
" $dotenv->populate(array('APP_ENV' => $env = 'dev'));",
|
||||
" }",
|
||||
"",
|
||||
" if ('test' !== $env && file_exists($p = \"$path.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" $env = $_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env;",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
"",
|
||||
" if (file_exists($p = \"$path.$env.local\")) {",
|
||||
" $dotenv->load($p);",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $_SERVER['APP_ENV'] ?: $_ENV['APP_ENV'] ?: 'dev';",
|
||||
"$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];",
|
||||
"$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/FeatureContext.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Behat\\Behat\\Context\\Context;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Response;",
|
||||
"use Symfony\\Component\\HttpKernel\\KernelInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * This context class contains the definitions of the steps used by the demo ",
|
||||
" * feature file. Learn how to get started with Behat and BDD on Behat's website.",
|
||||
" * ",
|
||||
" * @see http://behat.org/en/latest/quick_start.html",
|
||||
" */",
|
||||
"class FeatureContext implements Context",
|
||||
"{",
|
||||
" /**",
|
||||
" * @var KernelInterface",
|
||||
" */",
|
||||
" private $kernel;",
|
||||
"",
|
||||
" /**",
|
||||
" * @var Response|null",
|
||||
" */",
|
||||
" private $response;",
|
||||
"",
|
||||
" public function __construct(KernelInterface $kernel)",
|
||||
" {",
|
||||
" $this->kernel = $kernel;",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @When a demo scenario sends a request to :path",
|
||||
" */",
|
||||
" public function aDemoScenarioSendsARequestTo(string $path)",
|
||||
" {",
|
||||
" $this->response = $this->kernel->handle(Request::create($path, 'GET'));",
|
||||
" }",
|
||||
"",
|
||||
" /**",
|
||||
" * @Then the response should be received",
|
||||
" */",
|
||||
" public function theResponseShouldBeReceived()",
|
||||
" {",
|
||||
" if ($this->response === null) {",
|
||||
" throw new \\RuntimeException('No response received');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/bootstrap/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');",
|
||||
"require dirname(__DIR__, 2).'/config/bootstrap.php';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"features/demo.feature": {
|
||||
"contents": [
|
||||
"# This file contains a user story for demonstration only.",
|
||||
"# Learn how to get started with Behat and BDD on Behat's website:",
|
||||
"# http://behat.org/en/latest/quick_start.html",
|
||||
"",
|
||||
"Feature:",
|
||||
" In order to prove that the Behat Symfony extension is correctly installed",
|
||||
" As a user",
|
||||
" I want to have a demo scenario",
|
||||
"",
|
||||
" Scenario: It receives a response from Symfony's kernel",
|
||||
" When a demo scenario sends a request to \"/\"",
|
||||
" Then the response should be received",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ff944fc5f8dc1d1c9602968c2c12646c557adbbc"
|
||||
}
|
||||
}
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"manifests": {
|
||||
"blackfireio/blackfire-symfony-meta": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".blackfire.yaml": ".blackfire.yaml"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Get your SERVER credentials at https://blackfire.io/my/settings/credentials",
|
||||
"#2": "BLACKFIRE_SERVER_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
||||
"#3": "BLACKFIRE_SERVER_TOKEN=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
|
||||
},
|
||||
"docker-compose": {
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"blackfire:",
|
||||
" image: blackfire/blackfire:2",
|
||||
" # uncomment to store Blackfire credentials in a local .env.local file",
|
||||
" #env_file: .env.local",
|
||||
" environment:",
|
||||
" BLACKFIRE_LOG_LEVEL: 4",
|
||||
" ports: [8307]"
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Blackfire Agent has been configured in your <comment>docker-compose.override.yaml</> file",
|
||||
"",
|
||||
" * Configure your Blackfire <comment>SERVER</> credentials in <info>.env.local</> (get them at https://blackfire.io/my/settings/credentials)",
|
||||
"",
|
||||
" * Install the <comment>PHP probe</>: https://blackfire.io/docs/up-and-running/installation",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://blackfire.io/docs</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".blackfire.yaml": {
|
||||
"contents": [
|
||||
"scenarios: |",
|
||||
" #!blackfire-player",
|
||||
"",
|
||||
" scenario",
|
||||
" name \"Test homepage\"",
|
||||
" visit url('/')",
|
||||
" expect status_code() == 200",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fcf2e044bcd90c6f2f5a6c050645e77fb3bf31c7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/annotations": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/routes/annotations.yaml": {
|
||||
"contents": [
|
||||
"controllers:",
|
||||
" resource: ../../src/Controller/",
|
||||
" type: annotation",
|
||||
"",
|
||||
"kernel:",
|
||||
" resource: ../../src/Kernel.php",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a2759dd6123694c8d901d0ec80006e044c2e6457"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/annotations": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/routes/annotations.yaml": {
|
||||
"contents": [
|
||||
"controllers:",
|
||||
" resource: ../src/Controller/",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b9cde490c337f6c496d5f403fa6f827cf8b4706d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/annotations": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/routes/annotations.yaml": {
|
||||
"contents": [
|
||||
"controllers:",
|
||||
" resource: ../../src/Controller/",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"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 http://docs.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": "02bc9e7994b70f4fda004131a0c78b7b1bf09789"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://symfony:ChangeMe@127.0.0.1:5432/app?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "032f52ed50a27762b78ca6a2aaf432958c473553"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11\"",
|
||||
"#4": "IMPORTANT: You MUST also 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",
|
||||
" # use postgresql for PostgreSQL",
|
||||
" # use sqlite for SQLite",
|
||||
" driver: 'mysql'",
|
||||
" server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" 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": "05802762c395b1e9f0f2645ebbd6128a87942f09"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "17a43e1f25756f87cfdd82a46704521d367d9e8c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"DB_DRIVER": "pdo_mysql",
|
||||
"DB_HOST": "127.0.0.1",
|
||||
"DB_PORT": "",
|
||||
"DB_NAME": "symfony",
|
||||
"DB_USER": "root",
|
||||
"DB_PASSWORD": ""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" driver: \"%env(DB_DRIVER)%\"",
|
||||
" host: \"%env(DB_HOST)%\"",
|
||||
" port: \"%env(DB_PORT)%\"",
|
||||
" dbname: \"%env(DB_NAME)%\"",
|
||||
" user: \"%env(DB_USER)%\"",
|
||||
" password: \"%env(DB_PASSWORD)%\"",
|
||||
" charset: UTF8",
|
||||
" # if using pdo_sqlite as your database driver, uncomment next line:",
|
||||
" # path: \"%kernel.root_dir%/../var/data.db\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: \"%kernel.root_dir%/../src/Entity\"",
|
||||
" prefix: \"App\\\\Entity\\\\\"",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1aec2d2a076a9ebbf5801724715edcc56f9ee65a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DATABASE_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1db6dab65202cc2a285eee822cdee9491f414fe7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "DB_URL format: \"vendor://username:password@host-or-ip:port/database-name?optional=config\"",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DATABASE_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1f7d810ad6b26558875738a25cb1ea01eac9d5d9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"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 http://docs.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": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "1fb8eb14c1bb103865e8ebbb51d651717f3c3d94"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"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 http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" #metadata_cache_driver: apcu",
|
||||
" #result_cache_driver: apcu",
|
||||
" #query_cache_driver: apcu",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "20d57d786a3af0776d14edfa40e996c83d9f61d2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apcu",
|
||||
" #result_cache_driver: apcu",
|
||||
" #query_cache_driver: apcu",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "23e7d7986ae4117e66b4e803599f62b1a44408d0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "For a sqlite database, use: \"sqlite:///%kernel.root_dir%/../var/data.db\"",
|
||||
"DB_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DB_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: \"%kernel.root_dir%/../src/Entity\"",
|
||||
" prefix: \"App\\\\Entity\\\\\"",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "25a3c31cfea1ca3196bb5f7d590d50565816eb19"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "2ede24c63b72e96be0b28819052033f887024927"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=UTF-8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your db driver and server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #driver: 'mysql'",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # Only needed for MySQL (ignored otherwise)",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "307fd9c4cdb883f36eb13e54022e11f305e00d06"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"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": "For a MySQL database, use: \"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"db:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "3598a3d1d1efb5c2e8163f8f3974b2c8233a2dd9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "For a sqlite database, use: \"sqlite:///%kernel.root_dir%/../var/data.db\"",
|
||||
"DB_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DB_URL)%\"",
|
||||
" charset: UTF8",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: \"%kernel.root_dir%/../src/Entity\"",
|
||||
" prefix: \"App\\\\Entity\\\\\"",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "366e40fd2bf4e00281103ad5678bb73d6d943453"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"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": "For a MySQL database, use: \"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"db:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "368794356c1fb634e58b38ad2addb36933f2e73e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "3a397f067ed879190d6c5bfa903efd7050a96e5a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * 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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
"",
|
||||
" # backtrace queries in profiler (increases memory usage per request)",
|
||||
" #profiling_collect_backtrace: '%kernel.debug%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "3cc0efdb85531c72c2b25cbb41eec849a279aa64"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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 http://docs.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> Next: 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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # configure these for your database server",
|
||||
" driver: 'pdo_mysql'",
|
||||
" server_version: '5.7'",
|
||||
" charset: utf8mb4",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "3d54b5940ca798e4b33918dd8e3309bfadbb339e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "40631978d2c4adc9b11220b13eba539b727c36a8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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 http://docs.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> Next: 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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # configure these for your database server",
|
||||
" driver: 'pdo_mysql'",
|
||||
" server_version: '5.7'",
|
||||
" charset: utf8mb4",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "44d3aa7752dd46f77ba11af2297a25e1dedfb4d0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"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 http://docs.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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"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": "453e89b78ded666f351617baca5ae40d20622351"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "45545f379eb13b3ca20340d30a7f6101b4904ed1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11\"",
|
||||
"#4": "IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your db driver and server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #driver: 'mysql'",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # Only needed for MySQL (ignored otherwise)",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "4e8d245ef06b4a268249fa86066d36422e29abce"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname: 'main_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "4f5eb542f01475cc2eb49624e2f1a3ea458e73bf"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5e8749f81c1927b00c165318db797e20b849e7f8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
"",
|
||||
" # backtrace queries in profiler (increases memory usage per request)",
|
||||
" #profiling_collect_backtrace: '%kernel.debug%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "673ca0ede8ca357fe8a33076ce02f14404247957"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
{
|
||||
"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": "For a MySQL database, use: \"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "6872db67b989874ce4b1eed1c8f4dd6b0701c575"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" override_url: true",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"#doctrine:",
|
||||
"# dbal:",
|
||||
"# # Overrides the database name in the test environment only",
|
||||
"# # \"host\", \"port\", \"user\", & \"password\" can also be set to override their respective url parts",
|
||||
"# #",
|
||||
"# # If you're using ParaTest, \"TEST_TOKEN\" is set by ParaTest otherwise nothing is appended to the database name.",
|
||||
"# dbname: main_test%env(default::TEST_TOKEN)%",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6e0f582596a8f1c865aaa0d3cceb9bf0daf609b4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "72dd6c4b34e12ff1da8320cc7a8688666836f4da"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"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 http://docs.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": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "779cd06547faefb5e1558d1b7a3d7f6a3e8dab43"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DATABASE_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "806c4371b5dd9fa094799a51857762e39f6ddc18"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=UTF-8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your db driver and server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #driver: 'mysql'",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # Only needed for MySQL (ignored otherwise)",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "86137e3d03fce0d2f48c4b5ff8233412655e5e71"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
{
|
||||
"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": "IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname: 'main_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8a111cea2eeca8b427ae227bbbf35f368327a664"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"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 http://docs.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": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" #metadata_cache_driver: apcu",
|
||||
" #result_cache_driver: apcu",
|
||||
" #query_cache_driver: apcu",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8e94deea143bd982f7e8879f8d276c4ff0796053"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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 http://docs.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> Next: 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</fg> (5.7) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # configure these for your database server",
|
||||
" driver: 'pdo_mysql'",
|
||||
" server_version: '5.7'",
|
||||
" charset: utf8mb4",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "92ffe6b6d4a8d3cf1ef17a282588434b3a67f10a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" override_url: true",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"#doctrine:",
|
||||
"# dbal:",
|
||||
"# # Overrides the database name in the test environment only",
|
||||
"# # \"host\", \"port\", \"username\", & \"password\" can also be set to override their respective url parts",
|
||||
"# #",
|
||||
"# # If you're using ParaTest, \"TEST_TOKEN\" is set by ParaTest otherwise nothing is appended to the database name.",
|
||||
"# dbname: main_test%env(default::TEST_TOKEN)%",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "9777bf185961283a450b6237281132935025fe04"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db",
|
||||
"#5": "DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "98ee8b8d30ea8add6432e852eb43d90e7e6c991d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "a11565a000e8b0800beeb089359b670a660b73d9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "a9f2463b9f73efe74482f831f03a204a41328555"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"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 http://docs.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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"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: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "ae205d5114e719deb64d2110f56ef910787d1e04"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11\"",
|
||||
"#4": "IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your db driver and server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #driver: 'mysql'",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # Only needed for MySQL (ignored otherwise)",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "ae7f137d0cacaf8f259f4e05af59e326f065ba5e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
"",
|
||||
" # backtrace queries in profiler (increases memory usage per request)",
|
||||
" #profiling_collect_backtrace: '%kernel.debug%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "b11d5292f574a9cd092d506c899d05c79cf4d613"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DATABASE_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b221b4b61176dfad58b25d0b2085b6f5412f4c3f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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 http://docs.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> Next: 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</fg> (5.7) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # configure these for your database server",
|
||||
" driver: 'pdo_mysql'",
|
||||
" server_version: '5.7'",
|
||||
" charset: utf8mb4",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "b8c49d97697e743dfd3d37dc74758a607831963f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bac5c852ff628886de2753215fe5eb1f9ce980fb"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"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 http://docs.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": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "c02aa626c32659175a0d2ee6f3a106a2a5365ab0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#3": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c0a4ac05015c48b8ad198cb8588276f0c3121c28"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "c3d09597f211294e75b221b1d97a9c22f74957e1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"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 http://docs.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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # configure these for your database server",
|
||||
" driver: 'pdo_mysql'",
|
||||
" server_version: '5.7'",
|
||||
" charset: utf8mb4",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "c407ab0b5e5a39b242a52d323a5e84e6d3b7e4c0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"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": "For a PostgreSQL database, use: \"postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11&charset=utf8\"",
|
||||
"#4": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"DATABASE_URL": "mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '5.7'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "c4d01689e0572c733856e6f6fd3da267b6436aa2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"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 http://docs.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": [
|
||||
"parameters:",
|
||||
" # Adds a fallback DATABASE_URL if the env var is not set.",
|
||||
" # This allows you to run cache:warmup even if your",
|
||||
" # environment variables are not available yet.",
|
||||
" # You should not need to change this value.",
|
||||
" env(DATABASE_URL): ''",
|
||||
"",
|
||||
"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",
|
||||
"",
|
||||
" # With Symfony 3.3, remove the `resolve:` prefix",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "c745b67e4dec2771d4d57a60efd224faf445c929"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"DB_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DB_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c8f641719bd17f8a4a68e6a31c2f7ebacc9ef129"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname: 'main_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c9e656a395646ea4fad2bd3e2b3816028baf9026"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
|
||||
"#2": "For a sqlite database, use: \"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"DATABASE_URL": "mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: \"%env(DATABASE_URL)%\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" 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
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d0d417f76b4dce682ba515ff6405f3c3417e8969"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"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": "IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d74cbe7a587d712bbb7b7d78533afc5e6f455cab"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "db6e40972eaa1e4562aa92ebe060268fb9041b60"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "dda18c8830b143bc31c0e0457fb13b9029614d76"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"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": "IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # IMPORTANT: DATABASE_URL *must* define the server version",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname_suffix: '_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "de03bbbf3878f9e02659209a5bf9aa0e7489d758"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev && \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql && \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5 && \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * 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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
" 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": "e4fc55e8adf9aa89d9bba8f5a95669d33a16cb00"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"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 http://docs.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": "Set \"serverVersion\" to your server version to avoid edge-case exceptions and extra database calls",
|
||||
"DATABASE_URL": "\"mysql://root@127.0.0.1:3306/symfony?charset=utf8mb4&serverVersion=5.7\""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(DATABASE_URL)%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: '%kernel.debug%'",
|
||||
" 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:",
|
||||
" 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": "f29d6af1f605b9494a2c9c3a73cb1cacc6cca19b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Modify your DATABASE_URL config in <fg=green>.env</>",
|
||||
"",
|
||||
" * Configure the <fg=green>driver</> (postgresql) and",
|
||||
" <fg=green>server_version</> (13) in <fg=green>config/packages/doctrine.yaml</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_cache_pool",
|
||||
"",
|
||||
"framework:",
|
||||
" cache:",
|
||||
" pools:",
|
||||
" doctrine.result_cache_pool:",
|
||||
" adapter: cache.app",
|
||||
" doctrine.system_cache_pool:",
|
||||
" adapter: cache.system",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" # \"TEST_TOKEN\" is typically set by ParaTest",
|
||||
" dbname: 'main_test%env(default::TEST_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Repository/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f4ab5bfce9299c5504371d8672eb20a64dd1dea3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"DB_DRIVER": "pdo_mysql",
|
||||
"DB_HOST": "127.0.0.1",
|
||||
"DB_PORT": "",
|
||||
"DB_NAME": "symfony",
|
||||
"DB_USER": "root",
|
||||
"DB_PASSWORD": ""
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" dbal:",
|
||||
" driver: \"%env(DB_DRIVER)%\"",
|
||||
" host: \"%env(DB_HOST)%\"",
|
||||
" port: \"%env(DB_PORT)%\"",
|
||||
" dbname: \"%env(DB_NAME)%\"",
|
||||
" user: \"%env(DB_USER)%\"",
|
||||
" password: \"%env(DB_PASSWORD)%\"",
|
||||
" charset: UTF8",
|
||||
" # if using pdo_sqlite as your database driver, uncomment next line:",
|
||||
" # path: \"%kernel.root_dir%/../var/data.db\"",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: \"%kernel.debug%\"",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore",
|
||||
" auto_mapping: true",
|
||||
" mappings:",
|
||||
" App:",
|
||||
" is_bundle: false",
|
||||
" type: annotation",
|
||||
" dir: \"%kernel.root_dir%/../src/Entity\"",
|
||||
" prefix: \"App\\\\Entity\\\\\"",
|
||||
" alias: App",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"etc/packages/prod/doctrine.yaml": {
|
||||
"contents": [
|
||||
"doctrine:",
|
||||
" orm:",
|
||||
" #metadata_cache_driver: apc",
|
||||
" #result_cache_driver: apc",
|
||||
" #query_cache_driver: apc",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f92ca0ce79ae7f0d47eb02a194f1e0a6b2dddd82"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"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": "IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml",
|
||||
"#3": "",
|
||||
"#4": "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
|
||||
"#5": "DATABASE_URL=\"mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7\"",
|
||||
"DATABASE_URL": "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
|
||||
},
|
||||
"dockerfile": [
|
||||
"RUN apk add --no-cache --virtual .pgsql-deps postgresql-dev; \\",
|
||||
"\tdocker-php-ext-install -j$(nproc) pdo_pgsql; \\",
|
||||
"\tapk add --no-cache --virtual .pgsql-rundeps so:libpq.so.5; \\",
|
||||
"\tapk del .pgsql-deps"
|
||||
],
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" image: postgres:${POSTGRES_VERSION:-13}-alpine",
|
||||
" environment:",
|
||||
" POSTGRES_DB: ${POSTGRES_DB:-app}",
|
||||
" # You should definitely change the password in production",
|
||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}",
|
||||
" POSTGRES_USER: ${POSTGRES_USER:-symfony}",
|
||||
" volumes:",
|
||||
" - db-data:/var/lib/postgresql/data:rw",
|
||||
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
|
||||
" # - ./docker/db/data:/var/lib/postgresql/data:rw"
|
||||
],
|
||||
"volumes": [
|
||||
"db-data:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"database:",
|
||||
" ports:",
|
||||
" - \"5432\""
|
||||
]
|
||||
}
|
||||
},
|
||||
"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:",
|
||||
" url: '%env(resolve:DATABASE_URL)%'",
|
||||
"",
|
||||
" # IMPORTANT: You MUST configure your server version,",
|
||||
" # either here or in the DATABASE_URL env var (see .env file)",
|
||||
" #server_version: '13'",
|
||||
"",
|
||||
" # only needed for MySQL",
|
||||
" charset: utf8mb4",
|
||||
" default_table_options:",
|
||||
" collate: utf8mb4_unicode_ci",
|
||||
"",
|
||||
" # backtrace queries in profiler (increases memory usage per request)",
|
||||
" #profiling_collect_backtrace: '%kernel.debug%'",
|
||||
" orm:",
|
||||
" auto_generate_proxy_classes: true",
|
||||
" naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware",
|
||||
" 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: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" query_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.system_cache_pool",
|
||||
" result_cache_driver:",
|
||||
" type: pool",
|
||||
" pool: doctrine.result_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": "f93006d30689d34d5afa10a532baeabbc8cb016e"
|
||||
}
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-fixtures-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"src/DataFixtures/AppFixtures.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App\\DataFixtures;",
|
||||
"",
|
||||
"use Doctrine\\Bundle\\FixturesBundle\\Fixture;",
|
||||
"use Doctrine\\Persistence\\ObjectManager;",
|
||||
"",
|
||||
"class AppFixtures extends Fixture",
|
||||
"{",
|
||||
" public function load(ObjectManager $manager): void",
|
||||
" {",
|
||||
" // $product = new Product();",
|
||||
" // $manager->persist($product);",
|
||||
"",
|
||||
" $manager->flush();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1f5514cfa15b947298df4d771e694e578d4c204d"
|
||||
}
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-fixtures-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"src/DataFixtures/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2ea6070ecf365f9a801ccaed4b31d4a3b7af5693"
|
||||
}
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-fixtures-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"src/DataFixtures/AppFixtures.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App\\DataFixtures;",
|
||||
"",
|
||||
"use Doctrine\\Bundle\\FixturesBundle\\Fixture;",
|
||||
"use Doctrine\\Persistence\\ObjectManager;",
|
||||
"",
|
||||
"class AppFixtures extends Fixture",
|
||||
"{",
|
||||
" public function load(ObjectManager $manager)",
|
||||
" {",
|
||||
" // $product = new Product();",
|
||||
" // $manager->persist($product);",
|
||||
"",
|
||||
" $manager->flush();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e5b542d4ef47d8a003c91beb35650c76907f7e53"
|
||||
}
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-fixtures-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"src/DataFixtures/AppFixtures.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App\\DataFixtures;",
|
||||
"",
|
||||
"use Doctrine\\Bundle\\FixturesBundle\\Fixture;",
|
||||
"use Doctrine\\Common\\Persistence\\ObjectManager;",
|
||||
"",
|
||||
"class AppFixtures extends Fixture",
|
||||
"{",
|
||||
" public function load(ObjectManager $manager)",
|
||||
" {",
|
||||
" // $product = new Product();",
|
||||
" // $manager->persist($product);",
|
||||
"",
|
||||
" $manager->flush();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fc52d86631a6dfd9fdf3381d0b7e3df2069e51b3"
|
||||
}
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-migrations-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine_migrations.yaml": {
|
||||
"contents": [
|
||||
"doctrine_migrations:",
|
||||
" dir_name: '%kernel.project_dir%/src/Migrations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Migrations/.gitkeep": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "334196b65d4dfb275a8644887d8d7cd9a30fee39"
|
||||
}
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-migrations-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine_migrations.yaml": {
|
||||
"contents": [
|
||||
"doctrine_migrations:",
|
||||
" dir_name: '%kernel.project_dir%/src/Migrations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Migrations/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7e87c891366bde02232e3bf5943b5e1c5ec32e66"
|
||||
}
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-migrations-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"etc/": "%ETC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"etc/packages/doctrine_migrations.yaml": {
|
||||
"contents": [
|
||||
"doctrine_migrations:",
|
||||
" dir_name: '%kernel.project_dir%/src/Migrations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Migrations/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8adfa63a0c56a145f9ae8a53ae519dbc8dfe287a"
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/doctrine-migrations-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"migrations/": "migrations/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/doctrine_migrations.yaml": {
|
||||
"contents": [
|
||||
"doctrine_migrations:",
|
||||
" dir_name: '%kernel.project_dir%/migrations'",
|
||||
" # namespace is arbitrary but should be different from App\\Migrations",
|
||||
" # as migrations classes should NOT be autoloaded",
|
||||
" namespace: DoctrineMigrations",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"migrations/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b609494a0ab33d79acf3ead2067e3f67c9a47bd2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user