Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update recipes 2023-07-19 #44

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doctrine/doctrine-bundle/2.10/config/packages/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$containerConfigurator->extension('doctrine', [
'dbal' => [
'url' => '%env(resolve:DATABASE_URL)%',
'profiling_collect_backtrace' => '%kernel.debug%',
],
'orm' => [
'auto_generate_proxy_classes' => true,
Expand Down
2 changes: 2 additions & 0 deletions phpunit/phpunit/4.7/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>

<!-- Uncomment when adding extensions
<extensions>
</extensions>
-->
</phpunit>
2 changes: 2 additions & 0 deletions phpunit/phpunit/9.3/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>

<!-- Uncomment when adding extensions
<extensions>
</extensions>
-->
</phpunit>
6 changes: 6 additions & 0 deletions phpunit/phpunit/9.6/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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
11 changes: 11 additions & 0 deletions phpunit/phpunit/9.6/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
".env.test": ".env.test",
"phpunit.xml.dist": "phpunit.xml.dist",
"tests/": "tests/"
},
"gitignore": [
"/phpunit.xml",
".phpunit.result.cache"
]
}
38 changes: 38 additions & 0 deletions phpunit/phpunit/9.6/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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>

<extensions>
</extensions>
</phpunit>
11 changes: 11 additions & 0 deletions phpunit/phpunit/9.6/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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');
}
9 changes: 9 additions & 0 deletions symfony/all-my-sms-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " allmysms: '%env(ALLMYSMS_DSN)%'"
Comment on lines +6 to +8
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we will find a way to convert this from .yaml to .php files. I think this mechanism should not be used for config/packages files and another mechanism would be better here.

symfony/flex#984

}
],
"env": {
"#1": "ALLMYSMS_DSN=allmysms://LOGIN:APIKEY@default?from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/allmysms-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " allmysms: '%env(ALLMYSMS_DSN)%'"
}
],
"env": {
"#1": "ALLMYSMS_DSN=allmysms://LOGIN:APIKEY@default?from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/amazon-sns-notifier/5.4/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " sns: '%env(AMAZON_SNS_DSN)%'"
}
],
"env": {
"#1": "AMAZON_SNS_DSN=sns://ACCESS_KEY:SECRET_KEY@default?region=REGION"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/bandwidth-notifier/6.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " bandwidth: '%env(BANDWIDTH_DSN)%'"
}
],
"env": {
"#1": "BANDWIDTH_DSN=bandwidth://USERNAME:PASSWORD@default?from=FROM&account_id=ACCOUNT_ID&application_id=APPLICATION_ID&priority=PRIORITY"
}
Expand Down
6 changes: 6 additions & 0 deletions symfony/brevo-mailer/6.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"env": {
"#1": "MAILER_DSN=brevo+api://KEY@default",
"#2": "MAILER_DSN=brevo+smtp://USERNAME:PASSWORD@default"
}
}
5 changes: 5 additions & 0 deletions symfony/brevo-notifier/6.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"#1": "BREVO_DSN=brevo://API_KEY@default?sender=SENDER"
}
}
9 changes: 9 additions & 0 deletions symfony/chatwork-notifier/6.2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " chatwork: '%env(CHATWORK_DSN)%'"
}
],
"env": {
"#1": "CHATWORK_DSN=chatwork://API_TOKEN@default?room_id=ID"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/click-send-notifier/6.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " clicksend: '%env(CLICKSEND_DSN)%'"
}
],
"env": {
"#1": "CLICKSEND_DSN=clicksend://API_USERNAME:API_KEY@default?from=FROM&source=SOURCE&list_id=LIST_ID&from_email=FROM_EMAIL"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/clickatell-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " clickatell: '%env(CLICKATELL_DSN)%'"
}
],
"env": {
"#1": "CLICKATELL_DSN=clickatell://ACCESS_TOKEN@default?from=FROM"
}
Expand Down
8 changes: 8 additions & 0 deletions symfony/crowdin-translation-provider/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"target": " texter_transports:",
"content": " crowdin: '%env(CROWDIN_DSN)%'"
}
],
"env": {
"#1": "CROWDIN_DSN=crowdin://PROJECT_ID:API_TOKEN@ORGANIZATION_DOMAIN.default"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/discord-notifier/5.2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " discord: '%env(DISCORD_DSN)%'"
}
],
"env": {
"#1": "DISCORD_DSN=discord://TOKEN@default?webhook_id=ID"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/engagespot-notifier/6.1/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " engagespot: '%env(ENGAGESPOT_DSN)%'"
}
],
"env": {
"#1": "ENGAGESPOT_DSN=engagespot://API_KEY@default?campaign_name=CAMPAIGN_NAME"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/esendex-notifier/5.2/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " esendex: '%env(ESENDEX_DSN)%'"
}
],
"env": {
"#1": "ESENDEX_DSN=esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/expo-notifier/5.4/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " expo: '%env(EXPO_DSN)%'"
}
],
"env": {
"#1": "EXPO_DSN=expo://TOKEN@default"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/fake-chat-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " fakechat+email: '%env(FAKE_CHAT_DSN)%'"
}
],
"env": {
"#1": "FAKE_CHAT_DSN=fakechat+email://default?to=TO&from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/fake-sms-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " fakesms+email: '%env(FAKE_SMS_DSN)%'"
}
],
"env": {
"#1": "FAKE_SMS_DSN=fakesms+email://default?to=TO&from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/firebase-notifier/5.1/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " firebase: '%env(FIREBASE_DSN)%'"
}
],
"env": {
"#1": "FIREBASE_DSN=firebase://TOKEN@default"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/forty-six-elks-notifier/6.1/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " forty-six-elks: '%env(FORTY_SIX_ELKS_DSN)%'"
}
],
"env": {
"#1": "FORTY_SIX_ELKS_DSN=forty-six-elks://API_USERNAME:API_PASSWORD@default?from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/free-mobile-notifier/5.1/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " freemobile: '%env(FREE_MOBILE_DSN)%'"
}
],
"env": {
"#1": "FREE_MOBILE_DSN=freemobile://LOGIN:API_KEY@default?phone=PHONE"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/gateway-api-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " gatewayapi: '%env(GATEWAYAPI_DSN)%'"
}
],
"env": {
"#1": "GATEWAYAPI_DSN=gatewayapi://TOKEN@default?from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/gatewayapi-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " texter_transports:",
"content": " gatewayapi: '%env(GATEWAYAPI_DSN)%'"
}
],
"env": {
"#1": "GATEWAYAPI_DSN=gatewayapi://TOKEN@default?from=FROM"
}
Expand Down
9 changes: 9 additions & 0 deletions symfony/gitter-notifier/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"add-lines": [
{
"file": "config/packages/notifier.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " chatter_transports:",
"content": " gitter: '%env(GITTER_DSN)%'"
}
],
"env": {
"#1": "GITTER_DSN=gitter://TOKEN@default?room_id=ROOM_ID"
}
Expand Down
Loading
Loading