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:
+3
-3
@@ -4,7 +4,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
|
||||
| Package | Latest Recipe | Aliases |
|
||||
| --- | --- | --- |
|
||||
| [api-platform/admin-meta](https://packagist.org/packages/api-platform/admin-meta) | [1.0](api-platform/admin-meta/1.0) | |
|
||||
| [api-platform/admin-pack](https://packagist.org/packages/api-platform/admin-pack) | [1.0](api-platform/admin-pack/1.0) | `api-admin`, `api-platform-admin`, `apiadmin`, `apiplatformadmin`, `react-admin`, `reactadmin` |
|
||||
| [api-platform/core](https://packagist.org/packages/api-platform/core) | [2.5](api-platform/core/2.5) | |
|
||||
| [blackfireio/blackfire-symfony-meta](https://packagist.org/packages/blackfireio/blackfire-symfony-meta) | [1.0](blackfireio/blackfire-symfony-meta/1.0) | `blackfire` |
|
||||
| [doctrine/annotations](https://packagist.org/packages/doctrine/annotations) | [1.10](doctrine/annotations/1.10) | |
|
||||
@@ -78,7 +78,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/panther](https://packagist.org/packages/symfony/panther) | [1.0](symfony/panther/1.0) | `panther` |
|
||||
| [symfony/phpunit-bridge](https://packagist.org/packages/symfony/phpunit-bridge) | [5.3](symfony/phpunit-bridge/5.3) | `phpunit-bridge`, `phpunitbridge`, `simple-phpunit`, `simplephpunit` |
|
||||
| [symfony/postmark-mailer](https://packagist.org/packages/symfony/postmark-mailer) | [4.4](symfony/postmark-mailer/4.4) | `postmark-mailer`, `postmarkmailer` |
|
||||
| [symfony/psr7-meta](https://packagist.org/packages/symfony/psr7-meta) | [1.0](symfony/psr7-meta/1.0) | `psr7-meta`, `psr7meta` |
|
||||
| [symfony/psr7-pack](https://packagist.org/packages/symfony/psr7-pack) | [1.0](symfony/psr7-pack/1.0) | `psr-7`, `psr-17`, `psr7`, `psr17` |
|
||||
| [symfony/requirements-checker](https://packagist.org/packages/symfony/requirements-checker) | [2.0](symfony/requirements-checker/2.0) | `req-check`, `req-checker`, `req-checks`, `reqcheck`, `reqchecker`, `reqchecks`, `requirement-check`, `requirement-checker`, `requirementcheck`, `requirementchecker`, `requirements-checker`, `requirementschecker` |
|
||||
| [symfony/rocket-chat-notifier](https://packagist.org/packages/symfony/rocket-chat-notifier) | [5.1](symfony/rocket-chat-notifier/5.1) | `rocket-chat-notifier`, `rocketchatnotifier` |
|
||||
| [symfony/routing](https://packagist.org/packages/symfony/routing) | [6.1](symfony/routing/6.1) | `router`, `routing` |
|
||||
@@ -104,7 +104,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/validator](https://packagist.org/packages/symfony/validator) | [5.3](symfony/validator/5.3) | `validation`, `validator` |
|
||||
| [symfony/web-profiler-bundle](https://packagist.org/packages/symfony/web-profiler-bundle) | [5.3](symfony/web-profiler-bundle/5.3) | `web-profiler-bundle`, `webprofilerbundle` |
|
||||
| [symfony/web-server-bundle](https://packagist.org/packages/symfony/web-server-bundle) | [3.3](symfony/web-server-bundle/3.3) | `server`, `web-server`, `web-server-bundle`, `webserver`, `webserverbundle` |
|
||||
| [symfony/webapp-meta](https://packagist.org/packages/symfony/webapp-meta) | [1.0](symfony/webapp-meta/1.0) | `webapp-meta`, `webappmeta` |
|
||||
| [symfony/webapp-pack](https://packagist.org/packages/symfony/webapp-pack) | [1.0](symfony/webapp-pack/1.0) | `webapp` |
|
||||
| [symfony/webpack-encore-bundle](https://packagist.org/packages/symfony/webpack-encore-bundle) | [1.10](symfony/webpack-encore-bundle/1.10) | `encore`, `ux`, `webpack`, `webpack-encore`, `webpack-encore-bundle`, `webpackencore`, `webpackencorebundle` |
|
||||
| [symfony/workflow](https://packagist.org/packages/symfony/workflow) | [3.3](symfony/workflow/3.3) | `workflow` |
|
||||
| [symfony/yunpian-notifier](https://packagist.org/packages/symfony/yunpian-notifier) | [5.4](symfony/yunpian-notifier/5.4) | `yunpian-notifier`, `yunpiannotifier` |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"manifests": {
|
||||
"api-platform/admin-meta": {
|
||||
"api-platform/admin-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
@@ -64,7 +64,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "41f4cc7bc6c8f415100a58e1ec6c76605cdd65d3"
|
||||
"ref": "0e8b564f51ee72ba5ba1f9741b05b23b2f2af5de"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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": "0e8b564f51ee72ba5ba1f9741b05b23b2f2af5de"
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/psr7-meta": {
|
||||
"symfony/psr7-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
@@ -33,7 +33,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "734db18dbef8eb9ec72807cb899adbd0ce02ffa8"
|
||||
"ref": "3551b3c2c094aabf210553a9ad3580587d111f4d"
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/webapp-meta": {
|
||||
"symfony/webapp-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
@@ -41,7 +41,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "67cae591d131c133d63b893c5324796b88c59b34"
|
||||
"ref": "2fb3513dbc139884fc5b7c751242b66f9f10f0c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-7
@@ -225,8 +225,6 @@
|
||||
"psr-7": "symfony/psr7-pack",
|
||||
"psr-17": "symfony/psr7-pack",
|
||||
"psr7": "symfony/psr7-pack",
|
||||
"psr7-meta": "symfony/psr7-meta",
|
||||
"psr7meta": "symfony/psr7-meta",
|
||||
"psr17": "symfony/psr7-pack",
|
||||
"rate-limiter": "symfony/rate-limiter",
|
||||
"ratelimiter": "symfony/rate-limiter",
|
||||
@@ -348,8 +346,6 @@
|
||||
"web-server": "symfony/web-server-bundle",
|
||||
"web-server-bundle": "symfony/web-server-bundle",
|
||||
"webapp": "symfony/webapp-pack",
|
||||
"webapp-meta": "symfony/webapp-meta",
|
||||
"webappmeta": "symfony/webapp-meta",
|
||||
"weblink": "symfony/web-link",
|
||||
"webpack": "symfony/webpack-encore-bundle",
|
||||
"webpack-encore": "symfony/webpack-encore-bundle",
|
||||
@@ -368,7 +364,7 @@
|
||||
"zulipnotifier": "symfony/zulip-notifier"
|
||||
},
|
||||
"recipes": {
|
||||
"api-platform/admin-meta": [
|
||||
"api-platform/admin-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"api-platform/core": [
|
||||
@@ -642,7 +638,7 @@
|
||||
"4.3",
|
||||
"4.4"
|
||||
],
|
||||
"symfony/psr7-meta": [
|
||||
"symfony/psr7-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"symfony/requirements-checker": [
|
||||
@@ -742,7 +738,7 @@
|
||||
"symfony/web-server-bundle": [
|
||||
"3.3"
|
||||
],
|
||||
"symfony/webapp-meta": [
|
||||
"symfony/webapp-pack": [
|
||||
"1.0"
|
||||
],
|
||||
"symfony/webpack-encore-bundle": [
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/psr7-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/psr_http_message_bridge.yaml": {
|
||||
"contents": [
|
||||
"services:",
|
||||
" _defaults:",
|
||||
" autowire: true",
|
||||
" autoconfigure: true",
|
||||
"",
|
||||
" Symfony\\Bridge\\PsrHttpMessage\\HttpFoundationFactoryInterface:",
|
||||
" '@Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory'",
|
||||
"",
|
||||
" Symfony\\Bridge\\PsrHttpMessage\\HttpMessageFactoryInterface:",
|
||||
" '@Symfony\\Bridge\\PsrHttpMessage\\Factory\\PsrHttpFactory'",
|
||||
"",
|
||||
" Symfony\\Bridge\\PsrHttpMessage\\Factory\\HttpFoundationFactory: null",
|
||||
" Symfony\\Bridge\\PsrHttpMessage\\Factory\\PsrHttpFactory: null",
|
||||
"",
|
||||
" # Uncomment to allow controllers to receive a PSR-7 server request object as argument",
|
||||
" #Symfony\\Bridge\\PsrHttpMessage\\ArgumentValueResolver\\PsrServerRequestResolver: null",
|
||||
"",
|
||||
" # Uncomment to allow controllers to return a PSR-7 response object",
|
||||
" #Symfony\\Bridge\\PsrHttpMessage\\EventListener\\PsrResponseListener: null",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3551b3c2c094aabf210553a9ad3580587d111f4d"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/webapp-pack": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/messenger.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" messenger:",
|
||||
" failure_transport: failed",
|
||||
"",
|
||||
" transports:",
|
||||
" # https://symfony.com/doc/current/messenger.html#transport-configuration",
|
||||
" async:",
|
||||
" dsn: '%env(MESSENGER_TRANSPORT_DSN)%'",
|
||||
" options:",
|
||||
" use_notify: true",
|
||||
" check_delayed_interval: 60000",
|
||||
" retry_strategy:",
|
||||
" max_retries: 3",
|
||||
" multiplier: 2",
|
||||
" failed: 'doctrine://default?queue_name=failed'",
|
||||
" # sync: 'sync://'",
|
||||
"",
|
||||
" routing:",
|
||||
" Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage: async",
|
||||
" Symfony\\Component\\Notifier\\Message\\ChatMessage: async",
|
||||
" Symfony\\Component\\Notifier\\Message\\SmsMessage: async",
|
||||
"",
|
||||
" # Route your messages to the transports",
|
||||
" # 'App\\Message\\YourMessage': async",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "2fb3513dbc139884fc5b7c751242b66f9f10f0c3"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user