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
-2
@@ -9,6 +9,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [api-platform/symfony](https://packagist.org/packages/api-platform/symfony) | [4.0](api-platform/symfony/4.0) | |
|
||||
| [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) | |
|
||||
| [doctrine/deprecations](https://packagist.org/packages/doctrine/deprecations) | [1.0](doctrine/deprecations/1.0) | |
|
||||
| [doctrine/doctrine-bundle](https://packagist.org/packages/doctrine/doctrine-bundle) | [2.13](doctrine/doctrine-bundle/2.13) | |
|
||||
| [doctrine/doctrine-fixtures-bundle](https://packagist.org/packages/doctrine/doctrine-fixtures-bundle) | [3.0](doctrine/doctrine-fixtures-bundle/3.0) | `orm-fixtures`, `ormfixtures` |
|
||||
| [doctrine/doctrine-migrations-bundle](https://packagist.org/packages/doctrine/doctrine-migrations-bundle) | [3.1](doctrine/doctrine-migrations-bundle/3.1) | `doctrine-migrations`, `doctrinemigrations`, `migrations` |
|
||||
@@ -25,7 +26,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [nyholm/psr7](https://packagist.org/packages/nyholm/psr7) | [1.0](nyholm/psr7/1.0) | |
|
||||
| [php-cs-fixer/shim](https://packagist.org/packages/php-cs-fixer/shim) | [3.0](php-cs-fixer/shim/3.0) | `cs-fixer-shim`, `csfixershim`, `php-cs-fixer-shim`, `phpcsfixershim` |
|
||||
| [php-http/discovery](https://packagist.org/packages/php-http/discovery) | [1.18](php-http/discovery/1.18) | |
|
||||
| [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit) | [10.0](phpunit/phpunit/10.0) | |
|
||||
| [phpunit/phpunit](https://packagist.org/packages/phpunit/phpunit) | [11.1](phpunit/phpunit/11.1) | |
|
||||
| [scheb/2fa-bundle](https://packagist.org/packages/scheb/2fa-bundle) | [6.0](scheb/2fa-bundle/6.0) | `2fa` |
|
||||
| [sensio/framework-extra-bundle](https://packagist.org/packages/sensio/framework-extra-bundle) | [5.2](sensio/framework-extra-bundle/5.2) | `annot`, `annotation`, `annotations`, `annots` |
|
||||
| [sensiolabs/ansi-to-html](https://packagist.org/packages/sensiolabs/ansi-to-html) | [1.2](sensiolabs/ansi-to-html/1.2) | |
|
||||
@@ -110,7 +111,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/ovh-cloud-notifier](https://packagist.org/packages/symfony/ovh-cloud-notifier) | [5.1](symfony/ovh-cloud-notifier/5.1) | `ovh-cloud-notifier`, `ovhcloudnotifier` |
|
||||
| [symfony/pager-duty-notifier](https://packagist.org/packages/symfony/pager-duty-notifier) | [6.3](symfony/pager-duty-notifier/6.3) | `pager-duty-notifier`, `pagerdutynotifier` |
|
||||
| [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) | [6.3](symfony/phpunit-bridge/6.3) | `phpunit-bridge`, `phpunitbridge`, `simple-phpunit`, `simplephpunit` |
|
||||
| [symfony/phpunit-bridge](https://packagist.org/packages/symfony/phpunit-bridge) | [7.3](symfony/phpunit-bridge/7.3) | `phpunit-bridge`, `phpunitbridge`, `simple-phpunit`, `simplephpunit` |
|
||||
| [symfony/phrase-translation-provider](https://packagist.org/packages/symfony/phrase-translation-provider) | [6.4](symfony/phrase-translation-provider/6.4) | `phrase-translation-provider`, `phrasetranslationprovider` |
|
||||
| [symfony/plivo-notifier](https://packagist.org/packages/symfony/plivo-notifier) | [6.3](symfony/plivo-notifier/6.3) | `plivo-notifier`, `plivonotifier` |
|
||||
| [symfony/postal-mailer](https://packagist.org/packages/symfony/postal-mailer) | [7.2](symfony/postal-mailer/7.2) | `postal-mailer`, `postalmailer` |
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/deprecations": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <method>Doctrine\\Deprecations\\Deprecation::trigger</method>\n <method>Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend</method>",
|
||||
"position": "after_target",
|
||||
"target": "<deprecationTrigger>",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "87424683adc81d7dc305eefec1fced883084aab9"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <method>Doctrine\\Deprecations\\Deprecation::trigger</method>\n <method>Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend</method>",
|
||||
"position": "after_target",
|
||||
"target": "<deprecationTrigger>",
|
||||
"requires": [
|
||||
"doctrine/deprecations"
|
||||
]
|
||||
}
|
||||
],
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.dist.xml": "phpunit.dist.xml",
|
||||
"tests/": "tests/",
|
||||
"bin/": "%BIN_DIR%/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
"/.phpunit.cache/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='$ecretf0rt3st'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" if (PHP_VERSION_ID >= 80000) {",
|
||||
" require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';",
|
||||
" } else {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
" }",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.dist.xml": {
|
||||
"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\"",
|
||||
" colors=\"true\"",
|
||||
" failOnDeprecation=\"true\"",
|
||||
" failOnNotice=\"true\"",
|
||||
" failOnWarning=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" cacheDirectory=\".phpunit.cache\"",
|
||||
">",
|
||||
" <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>",
|
||||
"",
|
||||
" <source ignoreSuppressionOfDeprecations=\"true\"",
|
||||
" ignoreIndirectDeprecations=\"true\"",
|
||||
" restrictNotices=\"true\"",
|
||||
" restrictWarnings=\"true\"",
|
||||
" >",
|
||||
" <include>",
|
||||
" <directory>src</directory>",
|
||||
" </include>",
|
||||
"",
|
||||
" <deprecationTrigger>",
|
||||
" <function>trigger_deprecation</function>",
|
||||
" </deprecationTrigger>",
|
||||
" </source>",
|
||||
"",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c6658a60fc9d594805370eacdf542c3d6b5c0869"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Symfony\\Bridge\\PhpUnit\\SymfonyExtension\">\n <parameter name=\"clock-mock-namespaces\" value=\"App\" />\n <parameter name=\"dns-mock-namespaces\" value=\"App\" />\n </bootstrap>",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<10.0",
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "dc13fec96bd527bd399c3c01f0aab915c67fd544"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"manifests": {
|
||||
"doctrine/deprecations": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <method>Doctrine\\Deprecations\\Deprecation::trigger</method>\n <method>Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend</method>",
|
||||
"position": "after_target",
|
||||
"target": "<deprecationTrigger>",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": [],
|
||||
"ref": "87424683adc81d7dc305eefec1fced883084aab9"
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
-2
@@ -552,6 +552,9 @@
|
||||
"1.0",
|
||||
"1.10"
|
||||
],
|
||||
"doctrine/deprecations": [
|
||||
"1.0"
|
||||
],
|
||||
"doctrine/doctrine-bundle": [
|
||||
"1.6",
|
||||
"1.12",
|
||||
@@ -627,7 +630,8 @@
|
||||
"4.7",
|
||||
"9.3",
|
||||
"9.6",
|
||||
"10.0"
|
||||
"10.0",
|
||||
"11.1"
|
||||
],
|
||||
"scheb/2fa-bundle": [
|
||||
"5.0",
|
||||
@@ -922,7 +926,8 @@
|
||||
"4.3",
|
||||
"5.1",
|
||||
"5.3",
|
||||
"6.3"
|
||||
"6.3",
|
||||
"7.3"
|
||||
],
|
||||
"symfony/phrase-translation-provider": [
|
||||
"6.4"
|
||||
@@ -1327,6 +1332,10 @@
|
||||
"6.3": {
|
||||
"phpunit/phpunit": "<9.6",
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
},
|
||||
"7.3": {
|
||||
"phpunit/phpunit": "<10.0",
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
}
|
||||
},
|
||||
"symfony/routing": {
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"manifests": {
|
||||
"phpunit/phpunit": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <method>Doctrine\\Deprecations\\Deprecation::trigger</method>\n <method>Doctrine\\Deprecations\\Deprecation::delegateTriggerToBackend</method>",
|
||||
"position": "after_target",
|
||||
"target": "<deprecationTrigger>",
|
||||
"requires": [
|
||||
"doctrine/deprecations"
|
||||
]
|
||||
}
|
||||
],
|
||||
"copy-from-recipe": {
|
||||
".env.test": ".env.test",
|
||||
"phpunit.dist.xml": "phpunit.dist.xml",
|
||||
"tests/": "tests/",
|
||||
"bin/": "%BIN_DIR%/"
|
||||
},
|
||||
"gitignore": [
|
||||
"/phpunit.xml",
|
||||
"/.phpunit.cache/"
|
||||
],
|
||||
"post-install-output": [
|
||||
" * <fg=blue>Write</> test cases in the <comment>tests/</> folder",
|
||||
" * Use MakerBundle's <comment>make:test</> command as a shortcut!",
|
||||
" * <fg=blue>Run</> the tests with <comment>php bin/phpunit</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
".env.test": {
|
||||
"contents": [
|
||||
"# define your env variables for the test env here",
|
||||
"KERNEL_CLASS='App\\Kernel'",
|
||||
"APP_SECRET='$ecretf0rt3st'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"bin/phpunit": {
|
||||
"contents": [
|
||||
"#!/usr/bin/env php",
|
||||
"<?php",
|
||||
"",
|
||||
"if (!ini_get('date.timezone')) {",
|
||||
" ini_set('date.timezone', 'UTC');",
|
||||
"}",
|
||||
"",
|
||||
"if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {",
|
||||
" if (PHP_VERSION_ID >= 80000) {",
|
||||
" require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';",
|
||||
" } else {",
|
||||
" define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');",
|
||||
" require PHPUNIT_COMPOSER_INSTALL;",
|
||||
" PHPUnit\\TextUI\\Command::main();",
|
||||
" }",
|
||||
"} else {",
|
||||
" if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {",
|
||||
" echo \"Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\\n\";",
|
||||
" exit(1);",
|
||||
" }",
|
||||
"",
|
||||
" require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": true
|
||||
},
|
||||
"phpunit.dist.xml": {
|
||||
"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\"",
|
||||
" colors=\"true\"",
|
||||
" failOnDeprecation=\"true\"",
|
||||
" failOnNotice=\"true\"",
|
||||
" failOnWarning=\"true\"",
|
||||
" bootstrap=\"tests/bootstrap.php\"",
|
||||
" cacheDirectory=\".phpunit.cache\"",
|
||||
">",
|
||||
" <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>",
|
||||
"",
|
||||
" <source ignoreSuppressionOfDeprecations=\"true\"",
|
||||
" ignoreIndirectDeprecations=\"true\"",
|
||||
" restrictNotices=\"true\"",
|
||||
" restrictWarnings=\"true\"",
|
||||
" >",
|
||||
" <include>",
|
||||
" <directory>src</directory>",
|
||||
" </include>",
|
||||
"",
|
||||
" <deprecationTrigger>",
|
||||
" <function>trigger_deprecation</function>",
|
||||
" </deprecationTrigger>",
|
||||
" </source>",
|
||||
"",
|
||||
" <extensions>",
|
||||
" </extensions>",
|
||||
"</phpunit>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"tests/bootstrap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use Symfony\\Component\\Dotenv\\Dotenv;",
|
||||
"",
|
||||
"require dirname(__DIR__).'/vendor/autoload.php';",
|
||||
"",
|
||||
"if (method_exists(Dotenv::class, 'bootEnv')) {",
|
||||
" (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');",
|
||||
"}",
|
||||
"",
|
||||
"if ($_SERVER['APP_DEBUG']) {",
|
||||
" umask(0000);",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "c6658a60fc9d594805370eacdf542c3d6b5c0869"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/phpunit-bridge": {
|
||||
"manifest": {
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Symfony\\Bridge\\PhpUnit\\SymfonyExtension\">\n <parameter name=\"clock-mock-namespaces\" value=\"App\" />\n <parameter name=\"dns-mock-namespaces\" value=\"App\" />\n </bootstrap>",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"conflict": {
|
||||
"phpunit/phpunit": "<10.0",
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
}
|
||||
},
|
||||
"files": [],
|
||||
"ref": "dc13fec96bd527bd399c3c01f0aab915c67fd544"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user