Skip to content

Commit

Permalink
Merge branch 'symfony:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Wedrix authored Nov 11, 2023
2 parents a7b9b0c + fefc19c commit ba61c00
Show file tree
Hide file tree
Showing 50 changed files with 438 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
alex_geno_phone_verification:
storage:
driver: redis # redis || mongodb
redis:
connection: default
mongodb:
connection: default
sender:
transport: vonage
manager:
otp:
length: '%env(int:PHONE_VERIFICATION_OTP_LENGTH)%'
rate_limits:
initiate: #for every 'to' no more than 'count' initiations over 'period_secs' seconds
period_secs: '%env(int:PHONE_VERIFICATION_RATE_LIMIT_INITIATE_PERIOD_SECS)%'
count: '%env(int:PHONE_VERIFICATION_RATE_LIMIT_INITIATE_COUNT)%'
complete: #for every 'to' no more than 'count' failed completions over 'period_secs' seconds
period_secs: '%env(int:PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_PERIOD_SECS)%' # this is also the expiration period for OTP
count: '%env(int:PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_COUNT)%'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
phone_verification_initiate:
path: /phone-verification/initiate/{to}
controller: AlexGeno\PhoneVerificationBundle\Controller\PhoneVerificationController::initiate
methods: POST
phone_verification_complete:
path: /phone-verification/complete/{to}/{otp}
controller: AlexGeno\PhoneVerificationBundle\Controller\PhoneVerificationController::complete
methods: POST
27 changes: 27 additions & 0 deletions alexgeno/phone-verification-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"bundles": {
"AlexGeno\\PhoneVerificationBundle\\AlexGenoPhoneVerificationBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#0": "1000..9999",
"PHONE_VERIFICATION_OTP_LENGTH": "4",
"#1": "for every 'to' no more than 10 initiations over 24 hours",
"PHONE_VERIFICATION_RATE_LIMIT_INITIATE_PERIOD_SECS": "86400",
"PHONE_VERIFICATION_RATE_LIMIT_INITIATE_COUNT": "10",
"#2": "for every 'to' no more than 5 failed completions over 5 minutes",
"PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_PERIOD_SECS": "300",
"PHONE_VERIFICATION_RATE_LIMIT_COMPLETE_COUNT": "5"
},
"add-lines": [
{
"file": "config/packages/snc_redis.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " clients:",
"content": " default:\n type: predis\n alias: default\n dsn: \"%env(REDIS_URL)%\""
}
]
}
4 changes: 2 additions & 2 deletions bref/symfony-bridge/0.1/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ functions:
handler: public/index.php
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
layers:
- ${bref:layer.php-80-fpm}
- ${bref:layer.php-81-fpm}
events:
- httpApi: '*'
# This function let us run console commands in Lambda
console:
handler: bin/console
timeout: 120 # in seconds
layers:
- ${bref:layer.php-80} # PHP
- ${bref:layer.php-81} # PHP
- ${bref:layer.console} # The "console" layer

package:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
_defaults:
autowire: true

Datana\FakeApi\Api\FakeApiClient:
arguments:
- '%env(FAKE_API_BASE_URI)%'
- '%env(FAKE_API_USERNAME)%'
- '%env(FAKE_API_PASSWORD)%'
- '%env(bool:FAKE_API_DISABLE_CACHE)%'

Datana\FakeApi\Api\Formulario\DateneingabenApi: null
Datana\FakeApi\Api\Formulario\StatisticsApi: null
11 changes: 11 additions & 0 deletions datana-gmbh/fake-api-client/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"FAKE_API_BASE_URI": "",
"FAKE_API_USERNAME": "",
"FAKE_API_PASSWORD": "",
"FAKE_API_DISABLE_CACHE": "false"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
_defaults:
autowire: true

Datana\FakeApi\FakeApiClient:
arguments:
- '%env(FAKE_API_BASE_URI)%'
- '%env(FAKE_API_USERNAME)%'
- '%env(FAKE_API_PASSWORD)%'
- '%env(bool:FAKE_API_DISABLE_CACHE)%'

Datana\FakeApi\Formulario\DateneingabenApi: null
Datana\FakeApi\Formulario\StatisticsApi: null
11 changes: 11 additions & 0 deletions datana-gmbh/fake-api-client/2.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"FAKE_API_BASE_URI": "",
"FAKE_API_USERNAME": "",
"FAKE_API_PASSWORD": "",
"FAKE_API_DISABLE_CACHE": "false"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
_defaults:
autowire: true

Datana\Formulario\Api\FormularioClient:
arguments:
- '%env(FORMULARIO_API_BASE_URI)%'
- '%env(FORMULARIO_API_TOKEN)%'

Datana\Formulario\Api\DateneingabenApi: null
Datana\Formulario\Api\DateneingabenApiInterface: '@Datana\Formulario\Api\DateneingabenApi'

Datana\Formulario\Api\StatisticsApi: null
Datana\Formulario\Api\StatisticsApiInterface: '@Datana\Formulario\Api\StatisticsApi'
9 changes: 9 additions & 0 deletions datana-gmbh/formulario-api/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"FORMULARIO_API_BASE_URI": "",
"FORMULARIO_API_TOKEN": ""
}
}
12 changes: 12 additions & 0 deletions datana-gmbh/iusta-api/1.0/config/packages/datana_iusta_api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
_defaults:
autowire: true

Datana\Iusta\Api\IustaClient:
arguments:
- '%env(IUSTA_API_BASE_URI)%'
- '%env(IUSTA_API_USERNAME)%'
- '%env(IUSTA_API_PASSWORD)%'

Datana\Iusta\Api\AktenApi: null
Datana\Iusta\Api\AktenApiInterface: '@Datana\Iusta\Api\AktenApi'
10 changes: 10 additions & 0 deletions datana-gmbh/iusta-api/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"IUSTA_API_BASE_URI": "",
"IUSTA_API_USERNAME": "",
"IUSTA_API_PASSWORD": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Read the documentation: https://github.com/gponty/symfony-monday-api/blob/main/README.md
monday:
api_key: '%env(MONDAY_API_KEY)%'
api_version: '%env(MONDAY_API_VERSION)%'
12 changes: 12 additions & 0 deletions gponty/symfony-monday-api-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"bundles": {
"Gponty\\MondayBundle\\MondayBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MONDAY_API_KEY": "your_monday_api_key",
"MONDAY_API_VERSION": "your_monday_api_version"
}
}
13 changes: 13 additions & 0 deletions luzrain/workerman-bundle/0.1/config/packages/workerman.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
workerman:
servers:
-
name: 'Symfony webserver'
listen: http://0.0.0.0:80
processes: 4

reload_strategy:
exception:
active: true

file_monitor:
active: true
8 changes: 8 additions & 0 deletions luzrain/workerman-bundle/0.1/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Luzrain\\WorkermanBundle\\WorkermanBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
3 changes: 3 additions & 0 deletions mongodb/symfony-bundle/0.1/config/packages/mongodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mongodb:
clients:
default: '%env(MONGODB_URI)%'
11 changes: 11 additions & 0 deletions mongodb/symfony-bundle/0.1/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"MongoDB\\Bundle\\MongoDBBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MONGODB_URI": "mongodb://localhost:27017"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
imports:
- { resource: "@MonsieurBizSyliusMediaManagerPlugin/Resources/config/config.yaml" }

liip_imagine:
loaders:
default:
filesystem:
data_root:
- "%sylius_core.public_dir%/media/image"
- "%sylius_core.public_dir%/media" # Add media folder
twig:
form_themes: ['@MonsieurBizSyliusMediaManagerPlugin/Admin/MediaManager/Form/_theme.html.twig']
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
monsieurbiz_sylius_media_manager_admin:
resource: "@MonsieurBizSyliusMediaManagerPlugin/Resources/config/routes.yaml"
15 changes: 15 additions & 0 deletions monsieurbiz/sylius-media-manager-plugin/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"bundles": {
"MonsieurBiz\\SyliusMediaManagerPlugin\\MonsieurBizSyliusMediaManagerPlugin": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_PUBLIC_FOLDER": "%kernel.project_dir%/public",
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_ROOT_FOLDER_FROM_PUBLIC": "media",
"MONSIEURBIZ_SYLIUS_MEDIA_MANAGER_MAX_FILE_SIZE": "5M"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: "@MonsieurBizSyliusOrderHistoryPlugin/Resources/config/config.yaml" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
resource: '@MonsieurBizSyliusOrderHistoryPlugin/Resources/config/routes.yaml'
10 changes: 10 additions & 0 deletions monsieurbiz/sylius-order-history-plugin/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bundles": {
"MonsieurBiz\\SyliusOrderHistoryPlugin\\MonsieurBizSyliusOrderHistoryPlugin": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: "@MonsieurBizSyliusSearchPlugin/Resources/config/config.yaml" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
monsieurbiz_search_plugin:
resource: "@MonsieurBizSyliusSearchPlugin/Resources/config/routing.yaml"
22 changes: 22 additions & 0 deletions monsieurbiz/sylius-search-plugin/2.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"bundles": {
"Jane\\Bundle\\AutoMapperBundle\\JaneAutoMapperBundle": [
"all"
],
"MonsieurBiz\\SyliusSearchPlugin\\MonsieurBizSyliusSearchPlugin": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"copy-from-package": {
"src/Resources/templates/": "templates/"
},
"env": {
"MONSIEURBIZ_SEARCHPLUGIN_ES_HOST": "${ELASTICSEARCH_HOST:-localhost}",
"MONSIEURBIZ_SEARCHPLUGIN_ES_PORT": "${ELASTICSEARCH_PORT:-9200}",
"MONSIEURBIZ_SEARCHPLUGIN_ES_URL": "http://${MONSIEURBIZ_SEARCHPLUGIN_ES_HOST}:${MONSIEURBIZ_SEARCHPLUGIN_ES_PORT}/",
"MONSIEURBIZ_SEARCHPLUGIN_MESSENGER_TRANSPORT_DSN": "doctrine://default"
}
}
7 changes: 5 additions & 2 deletions phpstan/phpstan/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"copy-from-recipe": {
"phpstan.neon": "phpstan.neon"
}
"phpstan.dist.neon": "phpstan.dist.neon"
},
"gitignore": [
"phpstan.neon"
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion phpstan/phpstan/1.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Edit the <comment>phpstan.neon</comment> file to configure PHPStan.
* Edit the <comment>phpstan.dist.neon</comment> file to configure PHPStan.

* For the full options, see
<comment>https://phpstan.org/user-guide/getting-started</comment>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rekalogika_gotenberg_pdf:
url: '%env(GOTENBERG_URL)%'
32 changes: 32 additions & 0 deletions rekalogika/gotenberg-pdf-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"bundles": {
"Rekalogika\\GotenbergPdfBundle\\RekalogikaGotenbergPdfBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "The variables GOTENBERG_HOST & GOTENBERG_PORT are only used for Docker",
"#2": "integration. The library uses only GOTENBERG_URL. You can override",
"#3": "GOTENBERG_URL and safely ignore GOTENBERG_HOST & GOTENBERG_PORT.",
"GOTENBERG_HOST": "localhost",
"GOTENBERG_PORT": "3000",
"GOTENBERG_URL": "http://${GOTENBERG_HOST}:${GOTENBERG_PORT}"
},
"docker-compose": {
"docker-compose.yml": {
"services": [
"gotenberg:",
" image: docker.io/gotenberg/gotenberg:7"
]
},
"docker-compose.override.yml": {
"services": [
"gotenberg:",
" ports:",
" - \"3000\""
]
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rekalogika_temporary_url:
resource: '@RekalogikaTemporaryUrlBundle/config/routes.xml'
prefix: /_temporary
8 changes: 8 additions & 0 deletions rekalogika/temporary-url-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bundles": {
"Rekalogika\\TemporaryUrl\\RekalogikaTemporaryUrlBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
setono_google_analytics:
gtag:
properties:
- measurement_id: '%env(GOOGLE_ANALYTICS_MEASUREMENT_ID)%'

# If you want to use tag manager instead of gtag, just remove the lines above and enable tag_manager below
# tag_manager:
# containers:
# - container_id: '%env(GOOGLE_ANALYTICS_CONTAINER_ID)%'
11 changes: 11 additions & 0 deletions setono/google-analytics-bundle/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"Setono\\GoogleAnalyticsBundle\\SetonoGoogleAnalyticsBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"GOOGLE_ANALYTICS_MEASUREMENT_ID": "YOUR_GOOGLE_ANALYTICS_MEASUREMENT_ID"
}
}
Loading

0 comments on commit ba61c00

Please sign in to comment.