mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -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,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,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"
|
||||
}
|
||||
}
|
||||
}
|
||||
+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,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,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,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,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,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"
|
||||
}
|
||||
}
|
||||
}
|
||||
+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"
|
||||
}
|
||||
}
|
||||
}
|
||||
+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"
|
||||
}
|
||||
}
|
||||
}
|
||||
+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:",
|
||||
" migrations_paths:",
|
||||
" # namespace is arbitrary but should be different from App\\Migrations",
|
||||
" # as migrations classes should NOT be autoloaded",
|
||||
" 'DoctrineMigrations': '%kernel.project_dir%/migrations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"migrations/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "baaa439e3e3179e69e3da84b671f0a3e4a2f56ad"
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"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:",
|
||||
" migrations_paths:",
|
||||
" # namespace is arbitrary but should be different from App\\Migrations",
|
||||
" # as migrations classes should NOT be autoloaded",
|
||||
" 'DoctrineMigrations': '%kernel.project_dir%/migrations'",
|
||||
" enable_profiler: '%kernel.debug%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"migrations/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ee609429c9ee23e22d6fa5728211768f51ed2818"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"easycorp/easyadmin-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"EasyCorp\\Bundle\\EasyAdminBundle\\EasyAdminBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"#easy_admin:",
|
||||
"# entities:",
|
||||
"# # List the entity class name you want to manage",
|
||||
"# - App\\Entity\\Product",
|
||||
"# - App\\Entity\\Category",
|
||||
"# - App\\Entity\\User",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"easy_admin_bundle:",
|
||||
" resource: '@EasyAdminBundle/Controller/AdminController.php'",
|
||||
" prefix: /admin",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "66070ea553247b0cd5275e21d0fe5399a25f40be"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"easycorp/easyadmin-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"EasyCorp\\Bundle\\EasyAdminBundle\\EasyAdminBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"#easy_admin:",
|
||||
"# entities:",
|
||||
"# # List the entity class name you want to manage",
|
||||
"# - App\\Entity\\Product",
|
||||
"# - App\\Entity\\Category",
|
||||
"# - App\\Entity\\User",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"easy_admin_bundle:",
|
||||
" resource: '@EasyAdminBundle/Controller/EasyAdminController.php'",
|
||||
" prefix: /admin",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0a51040a43c6f2172a3a0135cd15daf2043905d7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"manifests": {
|
||||
"easycorp/easyadmin-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"EasyCorp\\Bundle\\EasyAdminBundle\\EasyAdminBundle": [
|
||||
"all"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "b131e6cbfe1b898a508987851963fff485986285"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"friendsofphp/php-cs-fixer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".php_cs.dist": ".php_cs.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php_cs",
|
||||
"/.php_cs.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".php_cs.dist": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"$finder = PhpCsFixer\\Finder::create()",
|
||||
" ->in(__DIR__)",
|
||||
" ->exclude('var')",
|
||||
";",
|
||||
"",
|
||||
"return PhpCsFixer\\Config::create()",
|
||||
" ->setRules([",
|
||||
" '@Symfony' => true,",
|
||||
" ])",
|
||||
" ->setFinder($finder)",
|
||||
";",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c1947bad147704aeaf0285745f0baae927a58959"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"friendsofphp/php-cs-fixer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".php_cs.dist": ".php_cs.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php_cs",
|
||||
"/.php_cs.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".php_cs.dist": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"$finder = (new PhpCsFixer\\Finder())",
|
||||
" ->in(__DIR__)",
|
||||
" ->exclude('var')",
|
||||
";",
|
||||
"",
|
||||
"return (new PhpCsFixer\\Config())",
|
||||
" ->setRules([",
|
||||
" '@Symfony' => true,",
|
||||
" ])",
|
||||
" ->setFinder($finder)",
|
||||
";",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f0d4b4ddb4e2bb73b227e3987b6ecc53cd8be431"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"manifests": {
|
||||
"friendsofphp/php-cs-fixer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php-cs-fixer.php",
|
||||
"/.php-cs-fixer.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".php-cs-fixer.dist.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"$finder = (new PhpCsFixer\\Finder())",
|
||||
" ->in(__DIR__)",
|
||||
" ->exclude('var')",
|
||||
";",
|
||||
"",
|
||||
"return (new PhpCsFixer\\Config())",
|
||||
" ->setRules([",
|
||||
" '@Symfony' => true,",
|
||||
" ])",
|
||||
" ->setFinder($finder)",
|
||||
" ->setCacheFile('.php-cs-fixer.cache') // forward compatibility with 3.x line",
|
||||
";",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "34d1a22f840953909c581b8f993093b14cc9491b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"manifests": {
|
||||
"friendsofphp/php-cs-fixer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".php_cs.dist": ".php_cs.dist"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php_cs",
|
||||
"/.php_cs.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".php_cs.dist": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"$finder = PhpCsFixer\\Finder::create()",
|
||||
" ->in(__DIR__)",
|
||||
" ->exclude('var')",
|
||||
";",
|
||||
"",
|
||||
"return PhpCsFixer\\Config::create()",
|
||||
" ->setRules([",
|
||||
" '@Symfony' => true,",
|
||||
" 'array_syntax' => ['syntax' => 'short'],",
|
||||
" ])",
|
||||
" ->setFinder($finder)",
|
||||
";",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "cc05ab6abf6894bddb9bbd6a252459010ebe040b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"friendsofphp/php-cs-fixer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.php-cs-fixer.php",
|
||||
"/.php-cs-fixer.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".php-cs-fixer.dist.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"$finder = (new PhpCsFixer\\Finder())",
|
||||
" ->in(__DIR__)",
|
||||
" ->exclude('var')",
|
||||
";",
|
||||
"",
|
||||
"return (new PhpCsFixer\\Config())",
|
||||
" ->setRules([",
|
||||
" '@Symfony' => true,",
|
||||
" ])",
|
||||
" ->setFinder($finder)",
|
||||
";",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "be2103eb4a20942e28a6dd87736669b757132435"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"manifests": {
|
||||
"hautelook/alice-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Hautelook\\AliceBundle\\HautelookAliceBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"fixtures/": "fixtures/"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> fixtures files in the <comment>fixtures/</> folder",
|
||||
" * <fg=blue>Run</> <comment>php bin/console hautelook:fixtures:load</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/dev/hautelook_alice.yaml": {
|
||||
"contents": [
|
||||
"hautelook_alice:",
|
||||
" fixtures_path: fixtures",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/hautelook_alice.yaml": {
|
||||
"contents": [
|
||||
"imports:",
|
||||
" - { resource: ../dev/hautelook_alice.yaml }",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"fixtures/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "ff94d76b2ec0c552b5d67d401f59ab8fd62f3d5f"
|
||||
}
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"javiereguiluz/easyadmin-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"JavierEguiluz\\Bundle\\EasyAdminBundle\\EasyAdminBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"#easy_admin:",
|
||||
"# entities:",
|
||||
"# # List the entity class name you want to manage",
|
||||
"# - App\\Entity\\Product",
|
||||
"# - App\\Entity\\Category",
|
||||
"# - App\\Entity\\User",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"easy_admin_bundle:",
|
||||
" resource: '@EasyAdminBundle/Controller/AdminController.php'",
|
||||
" prefix: /admin",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "eb4a4fe0e4ab0dc4337808de561b7cb0ff592a0a"
|
||||
}
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"javiereguiluz/easyadmin-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"EasyCorp\\Bundle\\EasyAdminBundle\\EasyAdminBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"#easy_admin:",
|
||||
"# entities:",
|
||||
"# # List the entity class name you want to manage",
|
||||
"# - App\\Entity\\Product",
|
||||
"# - App\\Entity\\Category",
|
||||
"# - App\\Entity\\User",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/easy_admin.yaml": {
|
||||
"contents": [
|
||||
"easy_admin_bundle:",
|
||||
" resource: '@EasyAdminBundle/Controller/AdminController.php'",
|
||||
" prefix: /admin",
|
||||
" type: annotation",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e58cc3a3956761ff41c27bc9847b145655494d42"
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"manifests": {
|
||||
"lexik/jwt-authentication-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Lexik\\Bundle\\JWTAuthenticationBundle\\LexikJWTAuthenticationBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Key paths should be relative to the project directory",
|
||||
"JWT_PRIVATE_KEY_PATH": "%CONFIG_DIR%/jwt/private.pem",
|
||||
"JWT_PUBLIC_KEY_PATH": "%CONFIG_DIR%/jwt/public.pem",
|
||||
"JWT_PASSPHRASE": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/lexik_jwt_authentication.yaml": {
|
||||
"contents": [
|
||||
"lexik_jwt_authentication:",
|
||||
" private_key_path: '%kernel.project_dir%/%env(JWT_PRIVATE_KEY_PATH)%'",
|
||||
" public_key_path: '%kernel.project_dir%/%env(JWT_PUBLIC_KEY_PATH)%'",
|
||||
" pass_phrase: '%env(JWT_PASSPHRASE)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "42cd3a3895e580dc9c89856b61fe986cafd7d23f"
|
||||
}
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"lexik/jwt-authentication-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Lexik\\Bundle\\JWTAuthenticationBundle\\LexikJWTAuthenticationBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%"
|
||||
},
|
||||
"env": {
|
||||
"JWT_SECRET_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
|
||||
"JWT_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
|
||||
"JWT_PASSPHRASE": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/lexik_jwt_authentication.yaml": {
|
||||
"contents": [
|
||||
"lexik_jwt_authentication:",
|
||||
" secret_key: '%env(resolve:JWT_SECRET_KEY)%'",
|
||||
" public_key: '%env(resolve:JWT_PUBLIC_KEY)%'",
|
||||
" pass_phrase: '%env(JWT_PASSPHRASE)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "5b2157bcd5778166a5696e42f552ad36529a07a6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"manifests": {
|
||||
"nelmio/alice": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Nelmio\\Alice\\Bridge\\Symfony\\NelmioAliceBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/dev/nelmio_alice.yaml": {
|
||||
"contents": [
|
||||
"nelmio_alice:",
|
||||
" functions_blacklist:",
|
||||
" - 'current'",
|
||||
" - 'shuffle'",
|
||||
" - 'date'",
|
||||
" - 'time'",
|
||||
" - 'file'",
|
||||
" - 'md5'",
|
||||
" - 'sha1'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/nelmio_alice.yaml": {
|
||||
"contents": [
|
||||
"imports:",
|
||||
" - { resource: ../dev/nelmio_alice.yaml }",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0b9900ece737bec7752e4155c0164639dd9b0cb0"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"manifests": {
|
||||
"nelmio/cors-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Nelmio\\CorsBundle\\NelmioCorsBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"CORS_ALLOW_ORIGIN": "'^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$'"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/nelmio_cors.yaml": {
|
||||
"contents": [
|
||||
"nelmio_cors:",
|
||||
" defaults:",
|
||||
" origin_regex: true",
|
||||
" allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']",
|
||||
" allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']",
|
||||
" allow_headers: ['Content-Type', 'Authorization']",
|
||||
" expose_headers: ['Link']",
|
||||
" max_age: 3600",
|
||||
" paths:",
|
||||
" '^/': null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6bea22e6c564fba3a1391615cada1437d0bde39c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"manifests": {
|
||||
"nelmio/security-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Nelmio\\SecurityBundle\\NelmioSecurityBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/nelmio_security.yaml": {
|
||||
"contents": [
|
||||
"nelmio_security:",
|
||||
" # prevents framing of the entire site",
|
||||
" clickjacking:",
|
||||
" paths:",
|
||||
" '^/.*': DENY",
|
||||
"",
|
||||
" # disables content type sniffing for script resources",
|
||||
" content_type:",
|
||||
" nosniff: true",
|
||||
"",
|
||||
" # forces Microsoft's XSS-Protection with",
|
||||
" # its block mode",
|
||||
" xss_protection:",
|
||||
" enabled: true",
|
||||
" mode_block: true",
|
||||
"",
|
||||
" # Send a full URL in the `Referer` header when performing a same-origin request,",
|
||||
" # only send the origin of the document to secure destination (HTTPS->HTTPS),",
|
||||
" # and send no header to a less secure destination (HTTPS->HTTP).",
|
||||
" # If `strict-origin-when-cross-origin` is not supported, use `no-referrer` policy,",
|
||||
" # no referrer information is sent along with requests.",
|
||||
" referrer_policy:",
|
||||
" enabled: true",
|
||||
" policies:",
|
||||
" - 'no-referrer'",
|
||||
" - 'strict-origin-when-cross-origin'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "65726efb67ff51d89de38195bc0d230fa811f64d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"manifests": {
|
||||
"nyholm/psr7": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/nyholm_psr7.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" # Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories)",
|
||||
" Psr\\Http\\Message\\RequestFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
" Psr\\Http\\Message\\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
" Psr\\Http\\Message\\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
" Psr\\Http\\Message\\StreamFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
" Psr\\Http\\Message\\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
" Psr\\Http\\Message\\UriFactoryInterface: '@nyholm.psr7.psr17_factory'",
|
||||
"",
|
||||
" # Register nyholm/psr7 services for autowiring with HTTPlug factories",
|
||||
" Http\\Message\\MessageFactory: '@nyholm.psr7.httplug_factory'",
|
||||
" Http\\Message\\RequestFactory: '@nyholm.psr7.httplug_factory'",
|
||||
" Http\\Message\\ResponseFactory: '@nyholm.psr7.httplug_factory'",
|
||||
" Http\\Message\\StreamFactory: '@nyholm.psr7.httplug_factory'",
|
||||
" Http\\Message\\UriFactory: '@nyholm.psr7.httplug_factory'",
|
||||
"",
|
||||
" nyholm.psr7.psr17_factory:",
|
||||
" class: Nyholm\\Psr7\\Factory\\Psr17Factory",
|
||||
"",
|
||||
" nyholm.psr7.httplug_factory:",
|
||||
" class: Nyholm\\Psr7\\Factory\\HttplugFactory",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0cd4d2d0e7f646fda75f9944f747a56e6ed13d4c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
".phpunit.result.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='$ecretf0rt3st'",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <filter>",
|
||||
" <whitelist processUncoveredFilesFromWhitelist=\"true\">",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </whitelist>",
|
||||
" </filter>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b5b34fa22319ac1f7f6c180b30e160841c154a1e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.xml.dist": "phpunit.xml.dist",
|
||||
"tests/": "tests/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
".phpunit.result.cache"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='$ecretf0rt3st'",
|
||||
"SYMFONY_DEPRECATIONS_HELPER=999999",
|
||||
"PANTHER_APP_ENV=panther",
|
||||
"PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"phpunit.xml.dist": {
|
||||
"contents": [
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>",
|
||||
"",
|
||||
"<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->",
|
||||
"<phpunit xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"",
|
||||
" xsi:noNamespaceSchemaLocation=\"vendor/phpunit/phpunit/phpunit.xsd\"",
|
||||
" backupGlobals=\"false\"",
|
||||
" colors=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" convertDeprecationsToExceptions=\"false\"",
|
||||
">",
|
||||
" <php>",
|
||||
" <ini name=\"display_errors\" value=\"1\" />",
|
||||
" <ini name=\"error_reporting\" value=\"-1\" />",
|
||||
" <server name=\"APP_ENV\" value=\"test\" force=\"true\" />",
|
||||
" <server name=\"SHELL_VERBOSITY\" value=\"-1\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_REMOVE\" value=\"\" />",
|
||||
" <server name=\"SYMFONY_PHPUNIT_VERSION\" value=\"9.5\" />",
|
||||
" </php>",
|
||||
"",
|
||||
" <testsuites>",
|
||||
" <testsuite name=\"Project Test Suite\">",
|
||||
" <directory>tests</directory>",
|
||||
" </testsuite>",
|
||||
" </testsuites>",
|
||||
"",
|
||||
" <coverage processUncoveredFiles=\"true\">",
|
||||
" <include>",
|
||||
" <directory suffix=\".php\">src</directory>",
|
||||
" </include>",
|
||||
" </coverage>",
|
||||
"",
|
||||
" <listeners>",
|
||||
" <listener class=\"Symfony\\Bridge\\PhpUnit\\SymfonyTestsListener\" />",
|
||||
" </listeners>",
|
||||
"",
|
||||
" <!-- Run `composer require symfony/panther` before enabling this extension -->",
|
||||
" <!--",
|
||||
" <extensions>",
|
||||
" <extension class=\"Symfony\\Component\\Panther\\ServerExtension\" />",
|
||||
" </extensions>",
|
||||
" -->",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {",
|
||||
" require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"} elseif (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a6249a6c4392e9169b87abf93225f7f9f59025e6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"manifests": {
|
||||
"scheb/2fa-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Scheb\\TwoFactorBundle\\SchebTwoFactorBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/scheb_2fa.yaml": {
|
||||
"contents": [
|
||||
"# See the configuration reference at https://github.com/scheb/2fa/blob/master/doc/configuration.md",
|
||||
"scheb_two_factor:",
|
||||
" security_tokens:",
|
||||
" - Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken",
|
||||
" # If you're using guard-based authentication, you have to use this one:",
|
||||
" # - Symfony\\Component\\Security\\Guard\\Token\\PostAuthenticationGuardToken",
|
||||
" # If you're using authenticator-based security (introduced in Symfony 5.1), you have to use this one:",
|
||||
" # - Symfony\\Component\\Security\\Http\\Authenticator\\Token\\PostAuthenticationToken",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/scheb_2fa.yaml": {
|
||||
"contents": [
|
||||
"2fa_login:",
|
||||
" path: /2fa",
|
||||
" defaults:",
|
||||
" _controller: \"scheb_two_factor.form_controller:form\"",
|
||||
"",
|
||||
"2fa_login_check:",
|
||||
" path: /2fa_check",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "62660e7d21b8b5295c5a6f8ca17dc7099881f267"
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sensio/framework-extra-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Sensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle": [
|
||||
"all"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "aaddfdf43cdecd4cf91f992052d76c2cadc04543"
|
||||
}
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sensio/framework-extra-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Sensio\\Bundle\\FrameworkExtraBundle\\SensioFrameworkExtraBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/sensio_framework_extra.yaml": {
|
||||
"contents": [
|
||||
"sensio_framework_extra:",
|
||||
" router:",
|
||||
" annotations: false",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sensiolabs/ansi-to-html": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/ansi_to_html.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
" SensioLabs\\AnsiConverter\\Bridge\\Twig\\AnsiExtension: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d58d11d5b998f39260d387d3a0b50adc342db7e4"
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"manifests": {
|
||||
"sensiolabs/security-checker": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"security-checker security:check": "script"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/security_checker.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
" SensioLabs\\Security\\SecurityChecker: null",
|
||||
"",
|
||||
" SensioLabs\\Security\\Command\\SecurityCheckerCommand: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "160c9b600564faa1224e8f387d49ef13ceb8b793"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/allmysms-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "ALLMYSMS_DSN=allmysms://LOGIN:APIKEY@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "31ed2243d1214731f86141890173a64fca741986"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/amazon-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "AWS_ACCESS_KEY=",
|
||||
"#2": "AWS_SECRET_KEY=",
|
||||
"#3": "MAILER_DSN=smtp://$AWS_ACCESS_KEY:$AWS_SECRET_KEY@ses?region=eu-west-1",
|
||||
"#4": "MAILER_DSN=http://$AWS_ACCESS_KEY:$AWS_SECRET_KEY@ses?region=eu-west-1"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "5dc61848401953f3ba03515d925904d2804c6ad5"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/amazon-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=ses://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1",
|
||||
"#2": "MAILER_DSN=ses+smtp://ACCESS_KEY:SECRET_KEY@default?region=eu-west-1"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "9648db3ecae5c8a6b1a5f74715d3907124348815"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/amazon-sns-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "AMAZON_SNS_DSN=sns://ACCESS_KEY:SECRET_KEY@default?region=REGION"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "6049aca06f3e7b8481a06693792d34b0014ee6c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/clickatell-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "CLICKATELL_DSN=clickatell://ACCESS_TOKEN@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "d952063f1246274c59108daa0d6e7bd0a5490689"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/console": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"bin/console": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArgvInput;",
|
||||
"use Symfony\\Component\\Debug\\Debug;",
|
||||
"",
|
||||
"if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {",
|
||||
" echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;",
|
||||
"}",
|
||||
"",
|
||||
"set_time_limit(0);",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Application::class)) {",
|
||||
" throw new LogicException('You need to add \"symfony/framework-bundle\" as a Composer dependency.');",
|
||||
"}",
|
||||
"",
|
||||
"$input = new ArgvInput();",
|
||||
"if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {",
|
||||
" putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);",
|
||||
"}",
|
||||
"",
|
||||
"if ($input->hasParameterOption('--no-debug', true)) {",
|
||||
" putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" if (class_exists(Debug::class)) {",
|
||||
" Debug::enable();",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$application = new Application($kernel);",
|
||||
"$application->run($input);",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} 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
|
||||
}
|
||||
},
|
||||
"ref": "524e110a6284dae4172aa8cc32db6f819428f6ac"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/console": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"bin/console": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArgvInput;",
|
||||
"use Symfony\\Component\\Debug\\Debug;",
|
||||
"",
|
||||
"if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {",
|
||||
" echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;",
|
||||
"}",
|
||||
"",
|
||||
"set_time_limit(0);",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Application::class)) {",
|
||||
" throw new LogicException('You need to add \"symfony/framework-bundle\" as a Composer dependency.');",
|
||||
"}",
|
||||
"",
|
||||
"$input = new ArgvInput();",
|
||||
"if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {",
|
||||
" putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);",
|
||||
"}",
|
||||
"",
|
||||
"if ($input->hasParameterOption('--no-debug', true)) {",
|
||||
" putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" if (class_exists(Debug::class)) {",
|
||||
" Debug::enable();",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$application = new Application($kernel);",
|
||||
"$application->run($input);",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} else {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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
|
||||
}
|
||||
},
|
||||
"ref": "0a4841612ca4dd3464cbbe1e06b073c79ce7a7f2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/console": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"bin/console": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArgvInput;",
|
||||
"use Symfony\\Component\\ErrorHandler\\Debug;",
|
||||
"",
|
||||
"if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {",
|
||||
" echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;",
|
||||
"}",
|
||||
"",
|
||||
"set_time_limit(0);",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Application::class)) {",
|
||||
" throw new LogicException('You need to add \"symfony/framework-bundle\" as a Composer dependency.');",
|
||||
"}",
|
||||
"",
|
||||
"$input = new ArgvInput();",
|
||||
"if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {",
|
||||
" putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);",
|
||||
"}",
|
||||
"",
|
||||
"if ($input->hasParameterOption('--no-debug', true)) {",
|
||||
" putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');",
|
||||
"}",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" if (class_exists(Debug::class)) {",
|
||||
" Debug::enable();",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$application = new Application($kernel);",
|
||||
"$application->run($input);",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} else {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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
|
||||
}
|
||||
},
|
||||
"ref": "fd5340d07d4c90504843b53da41525cf42e31f5c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/console": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"bin/console": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;",
|
||||
"use Symfony\\Component\\Console\\Input\\ArgvInput;",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"use Symfony\\Component\\ErrorHandler\\Debug;",
|
||||
"",
|
||||
"if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {",
|
||||
" echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;",
|
||||
"}",
|
||||
"",
|
||||
"set_time_limit(0);",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('You need to add \"symfony/framework-bundle\" and \"symfony/dotenv\" as Composer dependencies.');",
|
||||
"}",
|
||||
"",
|
||||
"$input = new ArgvInput();",
|
||||
"if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {",
|
||||
" putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);",
|
||||
"}",
|
||||
"",
|
||||
"if ($input->hasParameterOption('--no-debug', true)) {",
|
||||
" putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');",
|
||||
"}",
|
||||
"",
|
||||
"(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" if (class_exists(Debug::class)) {",
|
||||
" Debug::enable();",
|
||||
" }",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$application = new Application($kernel);",
|
||||
"$application->run($input);",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
}
|
||||
},
|
||||
"ref": "c6d02bdfba9da13c22157520e32a602dbee8a75c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/console": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"bin/console": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Console\\Application;",
|
||||
"",
|
||||
"if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {",
|
||||
" throw new LogicException('Symfony Runtime is missing. Try running \"composer require symfony/runtime\".');",
|
||||
"}",
|
||||
"",
|
||||
"require_once dirname(__DIR__).'/vendor/autoload_runtime.php';",
|
||||
"",
|
||||
"return function (array $context) {",
|
||||
" $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);",
|
||||
"",
|
||||
" return new Application($kernel);",
|
||||
"};",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
}
|
||||
},
|
||||
"ref": "da0c8be8157600ad34f10ff0c9cc91232522e047"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/crowdin-translation-provider": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "CROWDIN_DSN=crowdin://PROJECT_ID:API_TOKEN@ORGANIZATION_DOMAIN.default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "8acdcff2acee247e79f16ed0b2abc8fd53cf0d30"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/debug-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\DebugBundle\\DebugBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "71d29aaf710fd59cd3abff2b1ade907ed73103c6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/debug-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\DebugBundle\\DebugBundle": [
|
||||
"dev"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/dev/debug.yaml": {
|
||||
"contents": [
|
||||
"debug:",
|
||||
" # Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.",
|
||||
" # See the \"server:dump\" command to start a new server.",
|
||||
" dump_destination: \"tcp://%env(VAR_DUMPER_SERVER)%\"",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "0ce7a032d344fb7b661cd25d31914cd703ad445b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/discord-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "DISCORD_DSN=discord://TOKEN@default?webhook_id=ID"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "1bbc2f7c212346491efde98bf55a3f689056ed3f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/esendex-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "ESENDEX_DSN=esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "91faf4b7c9a98ed42e8bd2a97c3f4879869ba78f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/expo-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "EXPO_DSN=expo://TOKEN@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "6ea6b9e2d6201f7abbd203fd0268b5f86f84d0b4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/fake-chat-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "FAKE_CHAT_DSN=fakechat+email://default?to=TO&from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "f5eaef315896a999cefc6e2f420a89194b385785"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/fake-sms-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "FAKE_SMS_DSN=fakesms+email://default?to=TO&from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "70edf4dc13e3082d555575325207f0529ddd3bfe"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/firebase-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "FIREBASE_DSN=firebase://TOKEN@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "a6e63ab1ddcc32c93bc064a19084810bfa673c7b"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/flex": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
".env": ".env"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
".env": {
|
||||
"contents": [
|
||||
"# In all environments, the following files are loaded if they exist,",
|
||||
"# the latter taking precedence over the former:",
|
||||
"#",
|
||||
"# * .env contains default values for the environment variables needed by the app",
|
||||
"# * .env.local uncommitted file with local overrides",
|
||||
"# * .env.$APP_ENV committed environment-specific defaults",
|
||||
"# * .env.$APP_ENV.local uncommitted environment-specific overrides",
|
||||
"#",
|
||||
"# Real environment variables win over .env files.",
|
||||
"#",
|
||||
"# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.",
|
||||
"#",
|
||||
"# Run \"composer dump-env prod\" to compile .env files for production use (requires symfony/flex >=1.2).",
|
||||
"# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c0eeb50665f0f77226616b6038a9b06c03752d8e"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,304 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2",
|
||||
"#TRUSTED_HOSTS": "'^(localhost|example\\.com)$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server,",
|
||||
" or run <comment>composer require server --dev</> for a minimalist one",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} 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
|
||||
},
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
" public: false # Allows optimizing the container by removing unused services; this also means",
|
||||
" # fetching services directly from the container via $container->get() won't work.",
|
||||
" # The best practice is to be explicit about your dependencies anyway.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/*'",
|
||||
" exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\Debug\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {",
|
||||
" Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {",
|
||||
" Request::setTrustedHosts([$trustedHosts]);",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\Config\\Loader\\LoaderInterface;",
|
||||
"use Symfony\\Component\\Config\\Resource\\FileResource;",
|
||||
"use Symfony\\Component\\DependencyInjection\\ContainerBuilder;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\RouteCollectionBuilder;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" const CONFIG_EXTS = '.{php,xml,yaml,yml}';",
|
||||
"",
|
||||
" public function getCacheDir()",
|
||||
" {",
|
||||
" return $this->getProjectDir().'/var/cache/'.$this->environment;",
|
||||
" }",
|
||||
"",
|
||||
" public function getLogDir()",
|
||||
" {",
|
||||
" return $this->getProjectDir().'/var/log';",
|
||||
" }",
|
||||
"",
|
||||
" public function registerBundles()",
|
||||
" {",
|
||||
" $contents = require $this->getProjectDir().'/config/bundles.php';",
|
||||
" foreach ($contents as $class => $envs) {",
|
||||
" if ($envs[$this->environment] ?? $envs['all'] ?? false) {",
|
||||
" yield new $class();",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)",
|
||||
" {",
|
||||
" $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));",
|
||||
" // Feel free to remove the \"container.autowiring.strict_mode\" parameter",
|
||||
" // if you are using symfony/dependency-injection 4.0+ as it's the default behavior",
|
||||
" $container->setParameter('container.autowiring.strict_mode', true);",
|
||||
" $container->setParameter('container.dumper.inline_class_loader', true);",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RouteCollectionBuilder $routes)",
|
||||
" {",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "6b7854b4c2866b32bc86e98977e2ead4669fa9a5"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,305 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.1,127.0.0.2",
|
||||
"#TRUSTED_HOSTS": "'^(localhost|example\\.com)$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server,",
|
||||
" or run <comment>composer require server --dev</> for a minimalist one",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} 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
|
||||
},
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_samesite: lax",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
" public: false # Allows optimizing the container by removing unused services; this also means",
|
||||
" # fetching services directly from the container via $container->get() won't work.",
|
||||
" # The best practice is to be explicit about your dependencies anyway.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/*'",
|
||||
" exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\Debug\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {",
|
||||
" Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {",
|
||||
" Request::setTrustedHosts([$trustedHosts]);",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\Config\\Loader\\LoaderInterface;",
|
||||
"use Symfony\\Component\\Config\\Resource\\FileResource;",
|
||||
"use Symfony\\Component\\DependencyInjection\\ContainerBuilder;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\RouteCollectionBuilder;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" const CONFIG_EXTS = '.{php,xml,yaml,yml}';",
|
||||
"",
|
||||
" public function getCacheDir()",
|
||||
" {",
|
||||
" return $this->getProjectDir().'/var/cache/'.$this->environment;",
|
||||
" }",
|
||||
"",
|
||||
" public function getLogDir()",
|
||||
" {",
|
||||
" return $this->getProjectDir().'/var/log';",
|
||||
" }",
|
||||
"",
|
||||
" public function registerBundles()",
|
||||
" {",
|
||||
" $contents = require $this->getProjectDir().'/config/bundles.php';",
|
||||
" foreach ($contents as $class => $envs) {",
|
||||
" if ($envs[$this->environment] ?? $envs['all'] ?? false) {",
|
||||
" yield new $class();",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)",
|
||||
" {",
|
||||
" $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));",
|
||||
" // Feel free to remove the \"container.autowiring.strict_mode\" parameter",
|
||||
" // if you are using symfony/dependency-injection 4.0+ as it's the default behavior",
|
||||
" $container->setParameter('container.autowiring.strict_mode', true);",
|
||||
" $container->setParameter('container.dumper.inline_class_loader', true);",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RouteCollectionBuilder $routes)",
|
||||
" {",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "4e582450c27d790227d2596a2ffb514fd71d5db7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,267 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16",
|
||||
"#TRUSTED_HOSTS": "'^(localhost|example\\.com)$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} else {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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
|
||||
},
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/*'",
|
||||
" exclude: '../src/{DependencyInjection,Entity,Tests,Kernel.php}'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\Debug\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {",
|
||||
" Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {",
|
||||
" Request::setTrustedHosts([$trustedHosts]);",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\Config\\Loader\\LoaderInterface;",
|
||||
"use Symfony\\Component\\Config\\Resource\\FileResource;",
|
||||
"use Symfony\\Component\\DependencyInjection\\ContainerBuilder;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\RouteCollectionBuilder;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" private const CONFIG_EXTS = '.{php,xml,yaml,yml}';",
|
||||
"",
|
||||
" public function registerBundles(): iterable",
|
||||
" {",
|
||||
" $contents = require $this->getProjectDir().'/config/bundles.php';",
|
||||
" foreach ($contents as $class => $envs) {",
|
||||
" if ($envs[$this->environment] ?? $envs['all'] ?? false) {",
|
||||
" yield new $class();",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" public function getProjectDir(): string",
|
||||
" {",
|
||||
" return \\dirname(__DIR__);",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void",
|
||||
" {",
|
||||
" $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));",
|
||||
" $container->setParameter('container.dumper.inline_class_loader', \\PHP_VERSION_ID < 70400 || $this->debug);",
|
||||
" $container->setParameter('container.dumper.inline_factories', true);",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RouteCollectionBuilder $routes): void",
|
||||
" {",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "1bbe9a46c76d162f0c81b4f051285d7bac45bdb8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,295 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16",
|
||||
"#TRUSTED_HOSTS": "'^(localhost|example\\.com)$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (!class_exists(Dotenv::class)) {",
|
||||
" throw new LogicException('Please run \"composer require symfony/dotenv\" to load the \".env\" files configuring the application.');",
|
||||
"}",
|
||||
"",
|
||||
"// 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') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) {",
|
||||
" (new Dotenv(false))->populate($env);",
|
||||
"} else {",
|
||||
" // load all the .env files",
|
||||
" (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"$_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
|
||||
},
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/preload.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/dev/framework.yaml": {
|
||||
"contents": [
|
||||
"_errors:",
|
||||
" resource: '@FrameworkBundle/Resources/config/routing/errors.xml'",
|
||||
" prefix: /_error",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/'",
|
||||
" exclude:",
|
||||
" - '../src/DependencyInjection/'",
|
||||
" - '../src/Entity/'",
|
||||
" - '../src/Kernel.php'",
|
||||
" - '../src/Tests/'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller/'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\ErrorHandler\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/config/bootstrap.php';",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {",
|
||||
" Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {",
|
||||
" Request::setTrustedHosts([$trustedHosts]);",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\Config\\Loader\\LoaderInterface;",
|
||||
"use Symfony\\Component\\Config\\Resource\\FileResource;",
|
||||
"use Symfony\\Component\\DependencyInjection\\ContainerBuilder;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\RouteCollectionBuilder;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" private const CONFIG_EXTS = '.{php,xml,yaml,yml}';",
|
||||
"",
|
||||
" public function registerBundles(): iterable",
|
||||
" {",
|
||||
" $contents = require $this->getProjectDir().'/config/bundles.php';",
|
||||
" foreach ($contents as $class => $envs) {",
|
||||
" if ($envs[$this->environment] ?? $envs['all'] ?? false) {",
|
||||
" yield new $class();",
|
||||
" }",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" public function getProjectDir(): string",
|
||||
" {",
|
||||
" return \\dirname(__DIR__);",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void",
|
||||
" {",
|
||||
" $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));",
|
||||
" $container->setParameter('container.dumper.inline_class_loader', \\PHP_VERSION_ID < 70400 || $this->debug);",
|
||||
" $container->setParameter('container.dumper.inline_factories', true);",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');",
|
||||
" $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RouteCollectionBuilder $routes): void",
|
||||
" {",
|
||||
" $confDir = $this->getProjectDir().'/config';",
|
||||
"",
|
||||
" $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3b9c85f14cad439042f88f94a1fd15fb8ed923c9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,249 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%",
|
||||
"#TRUSTED_PROXIES": "127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16",
|
||||
"#TRUSTED_HOSTS": "'^(localhost|example\\.com)$'"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/preload.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/dev/framework.yaml": {
|
||||
"contents": [
|
||||
"_errors:",
|
||||
" resource: '@FrameworkBundle/Resources/config/routing/errors.xml'",
|
||||
" prefix: /_error",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/'",
|
||||
" exclude:",
|
||||
" - '../src/DependencyInjection/'",
|
||||
" - '../src/Entity/'",
|
||||
" - '../src/Kernel.php'",
|
||||
" - '../src/Tests/'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller/'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"use Symfony\\Component\\ErrorHandler\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {",
|
||||
" Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO);",
|
||||
"}",
|
||||
"",
|
||||
"if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {",
|
||||
" Request::setTrustedHosts([$trustedHosts]);",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" protected function configureContainer(ContainerConfigurator $container): void",
|
||||
" {",
|
||||
" $container->import('../config/{packages}/*.yaml');",
|
||||
" $container->import('../config/{packages}/'.$this->environment.'/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/services.yaml')) {",
|
||||
" $container->import('../config/services.yaml');",
|
||||
" $container->import('../config/{services}_'.$this->environment.'.yaml');",
|
||||
" } elseif (is_file($path = \\dirname(__DIR__).'/config/services.php')) {",
|
||||
" (require $path)($container->withPath($path), $this);",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RoutingConfigurator $routes): void",
|
||||
" {",
|
||||
" $routes->import('../config/{routes}/'.$this->environment.'/*.yaml');",
|
||||
" $routes->import('../config/{routes}/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/routes.yaml')) {",
|
||||
" $routes->import('../config/routes.yaml');",
|
||||
" } elseif (is_file($path = \\dirname(__DIR__).'/config/routes.php')) {",
|
||||
" (require $path)($routes->withPath($path), $this);",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "02f54ab08d007f94c4655cd68526500cb8f17451"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" #http_method_override: true",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/framework.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_id: session.storage.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/preload.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/dev/framework.yaml": {
|
||||
"contents": [
|
||||
"_errors:",
|
||||
" resource: '@FrameworkBundle/Resources/config/routing/errors.xml'",
|
||||
" prefix: /_error",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/'",
|
||||
" exclude:",
|
||||
" - '../src/DependencyInjection/'",
|
||||
" - '../src/Entity/'",
|
||||
" - '../src/Kernel.php'",
|
||||
" - '../src/Tests/'",
|
||||
"",
|
||||
" # controllers are imported separately to make sure services can be injected",
|
||||
" # as action arguments even if you don't extend any base controller class",
|
||||
" App\\Controller\\:",
|
||||
" resource: '../src/Controller/'",
|
||||
" tags: ['controller.service_arguments']",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"use Symfony\\Component\\ErrorHandler\\Debug;",
|
||||
"use Symfony\\Component\\HttpFoundation\\Request;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"",
|
||||
" Debug::enable();",
|
||||
"}",
|
||||
"",
|
||||
"$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);",
|
||||
"$request = Request::createFromGlobals();",
|
||||
"$response = $kernel->handle($request);",
|
||||
"$response->send();",
|
||||
"$kernel->terminate($request, $response);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" protected function configureContainer(ContainerConfigurator $container): void",
|
||||
" {",
|
||||
" $container->import('../config/{packages}/*.yaml');",
|
||||
" $container->import('../config/{packages}/'.$this->environment.'/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/services.yaml')) {",
|
||||
" $container->import('../config/services.yaml');",
|
||||
" $container->import('../config/{services}_'.$this->environment.'.yaml');",
|
||||
" } elseif (is_file($path = \\dirname(__DIR__).'/config/services.php')) {",
|
||||
" (require $path)($container->withPath($path), $this);",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RoutingConfigurator $routes): void",
|
||||
" {",
|
||||
" $routes->import('../config/{routes}/'.$this->environment.'/*.yaml');",
|
||||
" $routes->import('../config/{routes}/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/routes.yaml')) {",
|
||||
" $routes->import('../config/routes.yaml');",
|
||||
" } elseif (is_file($path = \\dirname(__DIR__).'/config/routes.php')) {",
|
||||
" (require $path)($routes->withPath($path), $this);",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "7eb218d19263e5e4a0f9d1d1502d8656098ec857"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" http_method_override: false",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
" storage_factory_id: session.storage.factory.native",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
"",
|
||||
"when@test:",
|
||||
" framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_factory_id: session.storage.factory.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/preload.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/framework.yaml": {
|
||||
"contents": [
|
||||
"when@dev:",
|
||||
" _errors:",
|
||||
" resource: '@FrameworkBundle/Resources/config/routing/errors.xml'",
|
||||
" prefix: /_error",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/'",
|
||||
" exclude:",
|
||||
" - '../src/DependencyInjection/'",
|
||||
" - '../src/Entity/'",
|
||||
" - '../src/Kernel.php'",
|
||||
" - '../src/Tests/'",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"",
|
||||
"require_once dirname(__DIR__).'/vendor/autoload_runtime.php';",
|
||||
"",
|
||||
"return function (array $context) {",
|
||||
" return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);",
|
||||
"};",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"use Symfony\\Component\\Routing\\Loader\\Configurator\\RoutingConfigurator;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"",
|
||||
" protected function configureContainer(ContainerConfigurator $container): void",
|
||||
" {",
|
||||
" $container->import('../config/{packages}/*.yaml');",
|
||||
" $container->import('../config/{packages}/'.$this->environment.'/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/services.yaml')) {",
|
||||
" $container->import('../config/services.yaml');",
|
||||
" $container->import('../config/{services}_'.$this->environment.'.yaml');",
|
||||
" } else {",
|
||||
" $container->import('../config/{services}.php');",
|
||||
" }",
|
||||
" }",
|
||||
"",
|
||||
" protected function configureRoutes(RoutingConfigurator $routes): void",
|
||||
" {",
|
||||
" $routes->import('../config/{routes}/'.$this->environment.'/*.yaml');",
|
||||
" $routes->import('../config/{routes}/*.yaml');",
|
||||
"",
|
||||
" if (is_file(\\dirname(__DIR__).'/config/routes.yaml')) {",
|
||||
" $routes->import('../config/routes.yaml');",
|
||||
" } else {",
|
||||
" $routes->import('../config/{routes}.php');",
|
||||
" }",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "414ba00ad43fa71be42c7906a551f1831716b03c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/framework-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"public/": "%PUBLIC_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"composer-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"env": {
|
||||
"APP_ENV": "dev",
|
||||
"APP_SECRET": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/.env.local",
|
||||
"/.env.local.php",
|
||||
"/.env.*.local",
|
||||
"/%CONFIG_DIR%/secrets/prod/prod.decrypt.private.php",
|
||||
"/%PUBLIC_DIR%/bundles/",
|
||||
"/%VAR_DIR%/",
|
||||
"/vendor/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Run</> your application:",
|
||||
" 1. Go to the project directory",
|
||||
" 2. Create your code repository with the <comment>git init</comment> command",
|
||||
" 3. Download the Symfony CLI at <comment>https://symfony.com/download</> to install a development web server",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/cache.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" cache:",
|
||||
" # Unique name of your app: used to compute stable namespaces for cache keys.",
|
||||
" #prefix_seed: your_vendor_name/app_name",
|
||||
"",
|
||||
" # The \"app\" cache stores to the filesystem by default.",
|
||||
" # The data in this cache should persist between deploys.",
|
||||
" # Other options include:",
|
||||
"",
|
||||
" # Redis",
|
||||
" #app: cache.adapter.redis",
|
||||
" #default_redis_provider: redis://localhost",
|
||||
"",
|
||||
" # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)",
|
||||
" #app: cache.adapter.apcu",
|
||||
"",
|
||||
" # Namespaced pools use the above \"app\" backend by default",
|
||||
" #pools:",
|
||||
" #my.dedicated.cache: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/framework.yaml": {
|
||||
"contents": [
|
||||
"# see https://symfony.com/doc/current/reference/configuration/framework.html",
|
||||
"framework:",
|
||||
" secret: '%env(APP_SECRET)%'",
|
||||
" #csrf_protection: true",
|
||||
" http_method_override: false",
|
||||
"",
|
||||
" # Enables session support. Note that the session will ONLY be started if you read or write from it.",
|
||||
" # Remove or comment this section to explicitly disable session support.",
|
||||
" session:",
|
||||
" handler_id: null",
|
||||
" cookie_secure: auto",
|
||||
" cookie_samesite: lax",
|
||||
" storage_factory_id: session.storage.factory.native",
|
||||
"",
|
||||
" #esi: true",
|
||||
" #fragments: true",
|
||||
" php_errors:",
|
||||
" log: true",
|
||||
"",
|
||||
"when@test:",
|
||||
" framework:",
|
||||
" test: true",
|
||||
" session:",
|
||||
" storage_factory_id: session.storage.factory.mock_file",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/preload.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {",
|
||||
" require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/framework.yaml": {
|
||||
"contents": [
|
||||
"when@dev:",
|
||||
" _errors:",
|
||||
" resource: '@FrameworkBundle/Resources/config/routing/errors.xml'",
|
||||
" prefix: /_error",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/services.yaml": {
|
||||
"contents": [
|
||||
"# This file is the entry point to configure your own services.",
|
||||
"# Files in the packages/ subdirectory configure your dependencies.",
|
||||
"",
|
||||
"# Put parameters here that don't need to change on each machine where the app is deployed",
|
||||
"# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration",
|
||||
"parameters:",
|
||||
"",
|
||||
"services:",
|
||||
" # default configuration for services in *this* file",
|
||||
" _defaults:",
|
||||
" autowire: true # Automatically injects dependencies in your services.",
|
||||
" autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.",
|
||||
"",
|
||||
" # makes classes in src/ available to be used as services",
|
||||
" # this creates a service per class whose id is the fully-qualified class name",
|
||||
" App\\:",
|
||||
" resource: '../src/'",
|
||||
" exclude:",
|
||||
" - '../src/DependencyInjection/'",
|
||||
" - '../src/Entity/'",
|
||||
" - '../src/Kernel.php'",
|
||||
" - '../src/Tests/'",
|
||||
"",
|
||||
" # add more service definitions when explicit configuration is needed",
|
||||
" # please note that last definitions always *replace* previous ones",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"public/index.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use App\\Kernel;",
|
||||
"",
|
||||
"require_once dirname(__DIR__).'/vendor/autoload_runtime.php';",
|
||||
"",
|
||||
"return function (array $context) {",
|
||||
" return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);",
|
||||
"};",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Controller/.gitignore": {
|
||||
"contents": [
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Kernel.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App;",
|
||||
"",
|
||||
"use Symfony\\Bundle\\FrameworkBundle\\Kernel\\MicroKernelTrait;",
|
||||
"use Symfony\\Component\\HttpKernel\\Kernel as BaseKernel;",
|
||||
"",
|
||||
"class Kernel extends BaseKernel",
|
||||
"{",
|
||||
" use MicroKernelTrait;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d4131812e20853626928e73d3effef44014944c0"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/free-mobile-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "FREE_MOBILE_DSN=freemobile://default?phone=PHONE"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "448003c0471b88be050d6d6970bab5c9b78a63b8"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/gatewayapi-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "GATEWAYAPI_DSN=gatewayapi://TOKEN@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "147b1278d07d4d0146f89750d961fcf9beeb387d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/gitter-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "GITTER_DSN=gitter://TOKEN@default?room_id=ROOM_ID"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "956a66cfe2c1e2fee63b9432aaad095475c48b01"
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/google-chat-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "See https://developers.google.com/hangouts/chat/how-tos/webhooks",
|
||||
"#2": "GOOGLE_CHAT_DSN=googlechat://ACCESS_KEY:ACCESS_TOKEN@default/SPACE?threadKey=THREAD_KEY"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "048c9a67aab45935ea5e28bba0670b76d696160f"
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/google-chat-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "See https://developers.google.com/hangouts/chat/how-tos/webhooks",
|
||||
"#2": "GOOGLE_CHAT_DSN=googlechat://ACCESS_KEY:ACCESS_TOKEN@default/SPACE?thread_key=THREAD_KEY"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "b114c8d95c4e187d8ea186be9ac3839602fec5ee"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/google-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "Gmail SHOULD NOT be used on production, use it in development only.",
|
||||
"#2": "GMAIL_USERNAME=",
|
||||
"#3": "GMAIL_PASSWORD=",
|
||||
"#4": "MAILER_DSN=smtp://$GMAIL_USERNAME:$GMAIL_PASSWORD@gmail"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "da7b29c169c9de4359a75be96d729438129d7d86"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/google-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "Gmail SHOULD NOT be used on production, use it in development only.",
|
||||
"#2": "MAILER_DSN=gmail://USERNAME:PASSWORD@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "f8fd4ddb9b477510f8f4bce2b9c054ab428c0120"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/infobip-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "INFOBIP_DSN=infobip://ACCESS_TOKEN@HOST?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "45e52ddc914530c57283b8d1db87e95a1ba4ffb2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/iqsms-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "IQSMS_DSN=iqsms://LOGIN:PASSWORD@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "1231da9b9e79308b8ce9b11a0f3c88b09b9489c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/light-sms-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "LIGHTSMS_DSN=lightsms://LOGIN:TOKEN@default?from=PHONE"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "917f38d91980a127b634991465cc0ee3821bfa4f"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/linked-in-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "LINKEDIN_DSN=linkedin://token:user-id@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "21d7ed2d9f265bcef8e55acff05be602957055e6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/lock": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Choose one of the stores below",
|
||||
"#2": "LOCK_DSN=redis://localhost",
|
||||
"LOCK_DSN": "semaphore"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/lock.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" lock: '%env(LOCK_DSN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e13a79427495e670ef7a19f0e25fd13fbdd909d4"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/lock": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Choose one of the stores below",
|
||||
"#2": "postgresql+advisory://db_user:db_password@localhost/db_name",
|
||||
"LOCK_DSN": "semaphore"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/lock.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" lock: '%env(LOCK_DSN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a1c8800e40ae735206bb14586fdd6c4630a51b8d"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/loco-translation-provider": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "LOCO_DSN=loco://API_KEY@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "c706da68af4ae956f45cffccf99a130e9484cb33"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/lokalise-translation-provider": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "LOKALISE_DSN=lokalise://PROJECT_ID:API_KEY@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "8f5abe62959fa4cb6d7616f98d42b4c86d014301"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailchimp-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MANDRILL_USERNAME=",
|
||||
"#2": "MANDRILL_PASSWORD=",
|
||||
"#3": "MAILER_DSN=smtp://$MANDRILL_USERNAME:$MANDRILL_PASSWORD@mandrill",
|
||||
"#4": "MANDRILL_KEY=",
|
||||
"#5": "MAILER_DSN=http://$MANDRILL_KEY@mandrill"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "552791a6bc7306198f4c647102a2b4f50d431fb8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailchimp-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=mandrill://KEY@default",
|
||||
"#2": "MAILER_DSN=mandrill+smtp://USERNAME:PASSWORD@default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "1be490e068472fc87e226cf54bc95fb6f2e49117"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailer": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=smtp://localhost"
|
||||
},
|
||||
"docker-compose": {
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"mailer:",
|
||||
" image: schickling/mailcatcher",
|
||||
" ports: [1025, 1080]"
|
||||
]
|
||||
}
|
||||
},
|
||||
"post-install-output": [
|
||||
" * You're ready to send emails.",
|
||||
"",
|
||||
" * If you want to send emails via a supported email provider, install",
|
||||
" the corresponding bridge.",
|
||||
" For instance, <info>composer require mailgun-mailer</> for Mailgun.",
|
||||
"",
|
||||
" * If you want to send emails asynchronously:",
|
||||
"",
|
||||
" 1. Install the messenger component by running <info>composer require messenger</>;",
|
||||
" 2. Add <info>'Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage': amqp</> to the",
|
||||
" <info>config/packages/messenger.yaml</> file under <info>framework.messenger.routing</>",
|
||||
" and replace <info>amqp</> with your transport name of choice.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/mailer.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/mailer.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" mailer:",
|
||||
" dsn: '%env(MAILER_DSN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bbfc7e27257d3a3f12a6fb0a42540a42d9623a37"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailgun-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MAILGUN_USERNAME=",
|
||||
"#2": "MAILGUN_PASSWORD=",
|
||||
"#3": "MAILER_DSN=smtp://$MAILGUN_USERNAME:$MAILGUN_PASSWORD@mailgun",
|
||||
"#4": "MAILGUN_KEY=",
|
||||
"#5": "MAILGUN_DOMAIN=",
|
||||
"#6": "MAILER_DSN=http://$MAILGUN_KEY:$MAILGUN_DOMAIN@mailgun"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "a2bc739b34862b926b8a58263fd3901297eec3b5"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailgun-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=mailgun://KEY:DOMAIN@default?region=us",
|
||||
"#2": "MAILER_DSN=mailgun+smtp://USERNAME:PASSWORD@default?region=us"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "addcb559b32d9dbb4843826b063565e1b15a2a57"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mailjet-mailer": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=mailjet+api://PUBLIC_KEY:PRIVATE_KEY@api.mailjet.com",
|
||||
"#2": "#MAILER_DSN=mailjet+smtp://PUBLIC_KEY:PRIVATE_KEY@in-v3.mailjet.com"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "037c3256baa3334fd4cc3092a63209ae523696ff"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/maker-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\MakerBundle\\MakerBundle": [
|
||||
"dev"
|
||||
]
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mattermost-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "See https://docs.mattermost.com/developer/bot-accounts.html",
|
||||
"#2": "MATTERMOST_DSN=mattermost://ACCESS_TOKEN@HOST/PATH?channel=CHANNEL"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "5493dd41fa3c575c93a58f374e46d62e6dc232cc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mercure-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\MercureBundle\\MercureBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
|
||||
"MERCURE_PUBLISH_URL": "http://mercure/.well-known/mercure",
|
||||
"#2": "The default token is signed with the secret key: !ChangeMe!",
|
||||
"MERCURE_JWT_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/mercure.yaml": {
|
||||
"contents": [
|
||||
"mercure:",
|
||||
" hubs:",
|
||||
" default:",
|
||||
" url: '%env(MERCURE_PUBLISH_URL)%'",
|
||||
" jwt: '%env(MERCURE_JWT_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "d625f7454ed4a398a7c11606b3cab82f77c885d3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mercure-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\MercureBundle\\MercureBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
|
||||
"MERCURE_PUBLISH_URL": "http://mercure/.well-known/mercure",
|
||||
"#2": "The default token is signed with the secret key: !ChangeMe!",
|
||||
"MERCURE_JWT_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InB1Ymxpc2giOltdfX0.Oo0yg7y4yMa1vr_bziltxuTCqb8JVHKxp-f_FwwOim0"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/mercure.yaml": {
|
||||
"contents": [
|
||||
"mercure:",
|
||||
" enable_profiler: '%kernel.debug%'",
|
||||
" hubs:",
|
||||
" default:",
|
||||
" url: '%env(MERCURE_PUBLISH_URL)%'",
|
||||
" jwt: '%env(MERCURE_JWT_TOKEN)%'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "9c94631c3fc2e9ab2302380ebb36b5942f5be676"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mercure-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\MercureBundle\\MercureBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "See https://symfony.com/doc/current/mercure.html#configuration",
|
||||
"#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)",
|
||||
"MERCURE_URL": "https://example.com/.well-known/mercure",
|
||||
"#3": "The public URL of the Mercure hub, used by the browser to connect",
|
||||
"MERCURE_PUBLIC_URL": "https://example.com/.well-known/mercure",
|
||||
"#4": "The secret used to sign the JWTs",
|
||||
"MERCURE_JWT_SECRET": "!ChangeMe!"
|
||||
},
|
||||
"docker-compose": {
|
||||
"docker-compose.yml": {
|
||||
"services": [
|
||||
"mercure:",
|
||||
" image: dunglas/mercure",
|
||||
" restart: unless-stopped",
|
||||
" environment:",
|
||||
" SERVER_NAME: ':80'",
|
||||
" MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'",
|
||||
" MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'",
|
||||
" # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive",
|
||||
" MERCURE_EXTRA_DIRECTIVES: |",
|
||||
" cors_origins http://127.0.0.1:8000",
|
||||
" # Comment the following line to disable the development mode",
|
||||
" command: /usr/bin/caddy run -config /etc/caddy/Caddyfile.dev",
|
||||
" volumes:",
|
||||
" - mercure_data:/data",
|
||||
" - mercure_config:/config"
|
||||
],
|
||||
"volumes": [
|
||||
"mercure_data:",
|
||||
"mercure_config:"
|
||||
]
|
||||
},
|
||||
"docker-compose.override.yml": {
|
||||
"services": [
|
||||
"mercure:",
|
||||
" ports:",
|
||||
" - \"80\""
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/mercure.yaml": {
|
||||
"contents": [
|
||||
"mercure:",
|
||||
" hubs:",
|
||||
" default:",
|
||||
" url: '%env(MERCURE_URL)%'",
|
||||
" public_url: '%env(MERCURE_PUBLIC_URL)%'",
|
||||
" jwt:",
|
||||
" secret: '%env(MERCURE_JWT_SECRET)%'",
|
||||
" publish: '*'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e0a854b5439186e04b28fb8887b42c54f24a0d32"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mercure-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MERCURE_DSN=mercure://default"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "ae4620ee823a67e41f65aabec525fa52c79a8b09"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/message-bird-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MESSAGEBIRD_DSN=messagebird://TOKEN@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "d6da978846d2991e6383594a09245bd7689053aa"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/message-media-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MESSAGEMEDIA_DSN=messagemedia://API_KEY:API_SECRET@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "069fb95c3bba9bc8ba30d08d164aaea0725999b7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/messenger": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<4.1"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * You're ready to use the Messenger component. You can define your own message buses",
|
||||
" or start using the default one right now by injecting the <info>messenger.bus.default</info> service",
|
||||
" or typehinting <info>Symfony\\Component\\Messenger\\MessageBusInterface</info> in your code.",
|
||||
"",
|
||||
" * If you need to send messages to your broker, you can benefit from the built-in",
|
||||
" AMQP transport by:",
|
||||
"",
|
||||
" 1. Installing the AMQP pack by running <info>composer require amqp</>;",
|
||||
" 2. Uncommenting the <comment>MESSENGER_TRANSPORT_DSN</> env var",
|
||||
" and <comment>framework.messenger.transports.amqp</> config;",
|
||||
" 3. Routing your messages to the amqp sender.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/messenger.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/messenger.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" messenger:",
|
||||
" transports:",
|
||||
" # Uncomment the following line to enable a transport named \"amqp\"",
|
||||
" # amqp: '%env(MESSENGER_TRANSPORT_DSN)%'",
|
||||
"",
|
||||
" routing:",
|
||||
" # Route your messages to the transports",
|
||||
" # 'App\\Message\\YourMessage': amqp",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fb924c94bcbf351a987da8a8125133e72e059472"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/messenger": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"#1": "Choose one of the transports below",
|
||||
"#2": "MESSENGER_TRANSPORT_DSN=doctrine://default",
|
||||
"#3": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages",
|
||||
"#4": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<4.3"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * You're ready to use the Messenger component. You can define your own message buses",
|
||||
" or start using the default one right now by injecting the <info>message_bus</info> service",
|
||||
" or type-hinting <info>Symfony\\Component\\Messenger\\MessageBusInterface</info> in your code.",
|
||||
"",
|
||||
" * To send messages to a transport and handle them asynchronously:",
|
||||
"",
|
||||
" 1. Uncomment the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</>",
|
||||
" and <info>framework.messenger.transports.async</> in <comment>config/packages/messenger.yaml</>;",
|
||||
" 2. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/messenger.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/messenger.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" messenger:",
|
||||
" # Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.",
|
||||
" # failure_transport: failed",
|
||||
"",
|
||||
" transports:",
|
||||
" # https://symfony.com/doc/current/messenger.html#transport-configuration",
|
||||
" # async: '%env(MESSENGER_TRANSPORT_DSN)%'",
|
||||
" # failed: 'doctrine://default?queue_name=failed'",
|
||||
" # sync: 'sync://'",
|
||||
"",
|
||||
" routing:",
|
||||
" # Route your messages to the transports",
|
||||
" # 'App\\Message\\YourMessage': async",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "25e3c964d3aee480b3acc3114ffb7940c89edfed"
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/microsoft-teams-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MICROSOFT_TEAMS_DSN=microsoftteams://default/HOSTPATH"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "9d3dcfded9e56435f75e0ee521f575c1deb12f21"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/mobyt-notifier": {
|
||||
"manifest": {
|
||||
"env": {
|
||||
"#1": "MOBYT_DSN=mobyt://USER_KEY:ACCESS_TOKEN@default?from=FROM"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "71fb2e3e4529fdb4fe0ab9ef361489e37bb8bde7"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/monolog-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\MonologBundle\\MonologBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/dev/monolog.yaml": {
|
||||
"contents": [
|
||||
"monolog:",
|
||||
" handlers:",
|
||||
" main:",
|
||||
" type: stream",
|
||||
" path: \"%kernel.logs_dir%/%kernel.environment%.log\"",
|
||||
" level: debug",
|
||||
" channels: [\"!event\"]",
|
||||
" # uncomment to get logging in your browser",
|
||||
" # you may have to allow bigger header sizes in your Web server configuration",
|
||||
" #firephp:",
|
||||
" # type: firephp",
|
||||
" # level: info",
|
||||
" #chromephp:",
|
||||
" # type: chromephp",
|
||||
" # level: info",
|
||||
" console:",
|
||||
" type: console",
|
||||
" process_psr_3_messages: false",
|
||||
" channels: [\"!event\", \"!doctrine\", \"!console\"]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/deprecations.yaml": {
|
||||
"contents": [
|
||||
"# As of Symfony 5.1, deprecations are logged in the dedicated \"deprecation\" channel when it exists",
|
||||
"#monolog:",
|
||||
"# channels: [deprecation]",
|
||||
"# handlers:",
|
||||
"# deprecation:",
|
||||
"# type: stream",
|
||||
"# channels: [deprecation]",
|
||||
"# path: \"%kernel.logs_dir%/%kernel.environment%.deprecations.log\"",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/prod/monolog.yaml": {
|
||||
"contents": [
|
||||
"monolog:",
|
||||
" handlers:",
|
||||
" main:",
|
||||
" type: fingers_crossed",
|
||||
" action_level: error",
|
||||
" handler: nested",
|
||||
" buffer_size: 50 # How many messages should be saved? Prevent memory leaks",
|
||||
" excluded_404s:",
|
||||
" # regex: exclude all 404 errors from the logs",
|
||||
" - ^/",
|
||||
" nested:",
|
||||
" type: stream",
|
||||
" path: \"%kernel.logs_dir%/%kernel.environment%.log\"",
|
||||
" level: debug",
|
||||
" console:",
|
||||
" type: console",
|
||||
" process_psr_3_messages: false",
|
||||
" channels: [\"!event\", \"!doctrine\"]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/test/monolog.yaml": {
|
||||
"contents": [
|
||||
"monolog:",
|
||||
" handlers:",
|
||||
" main:",
|
||||
" type: stream",
|
||||
" path: \"%kernel.logs_dir%/%kernel.environment%.log\"",
|
||||
" level: debug",
|
||||
" channels: [\"!event\"]",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "feb9b6ee797ce47bb228d21c9a564a855d3dd00e"
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user