Skip to content

Commit 3b00a06

Browse files
Update recipes 2023-09-02 (#48)
1 parent bb01fb8 commit 3b00a06

File tree

8 files changed

+102
-3
lines changed

8 files changed

+102
-3
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Datana\Iusta\Api\AktenApi;
6+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
7+
8+
return static function (ContainerConfigurator $containerConfigurator): void {
9+
$services = $containerConfigurator->services();
10+
11+
$services->defaults()
12+
->autowire();
13+
14+
$services->set('Datana\Iusta\Api\IustaClient')
15+
->args(['%env(IUSTA_API_BASE_URI)%', '%env(IUSTA_API_USERNAME)%', '%env(IUSTA_API_PASSWORD)%']);
16+
17+
$services->set(AktenApi::class);
18+
19+
$services->alias('Datana\Iusta\Api\AktenApiInterface', 'Datana\Iusta\Api\AktenApi');
20+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"env": {
6+
"IUSTA_API_BASE_URI": "",
7+
"IUSTA_API_USERNAME": "",
8+
"IUSTA_API_PASSWORD": ""
9+
}
10+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $containerConfigurator): void {
8+
$containerConfigurator->extension('workerman', [
9+
'servers' => [[
10+
'name' => 'Symfony webserver',
11+
'listen' => 'http://0.0.0.0:80',
12+
'processes' => 4,
13+
]],
14+
'reload_strategy' => [
15+
'exception' => [
16+
'active' => true,
17+
],
18+
'file_monitor' => [
19+
'active' => true,
20+
],
21+
],
22+
]);
23+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bundles": {
3+
"Luzrain\\WorkermanBundle\\WorkermanBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
6+
7+
return static function (ContainerConfigurator $containerConfigurator): void {
8+
$containerConfigurator->import('@MonsieurBizSyliusSearchPlugin/Resources/config/config.yaml');
9+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
6+
7+
return static function (RoutingConfigurator $routingConfigurator): void {
8+
$routingConfigurator->import('@MonsieurBizSyliusSearchPlugin/Resources/config/routing.yaml');
9+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"bundles": {
3+
"Jane\\Bundle\\AutoMapperBundle\\JaneAutoMapperBundle": [
4+
"all"
5+
],
6+
"MonsieurBiz\\SyliusSearchPlugin\\MonsieurBizSyliusSearchPlugin": [
7+
"all"
8+
]
9+
},
10+
"copy-from-recipe": {
11+
"config/": "%CONFIG_DIR%/"
12+
},
13+
"copy-from-package": {
14+
"src/Resources/templates/": "templates/"
15+
},
16+
"env": {
17+
"MONSIEURBIZ_SEARCHPLUGIN_ES_HOST": "${ELASTICSEARCH_HOST:-localhost}",
18+
"MONSIEURBIZ_SEARCHPLUGIN_ES_PORT": "${ELASTICSEARCH_PORT:-9200}",
19+
"MONSIEURBIZ_SEARCHPLUGIN_ES_URL": "http://${MONSIEURBIZ_SEARCHPLUGIN_ES_HOST}:${MONSIEURBIZ_SEARCHPLUGIN_ES_PORT}/",
20+
"MONSIEURBIZ_SEARCHPLUGIN_MESSENGER_TRANSPORT_DSN": "doctrine://default"
21+
}
22+
}

mtarld/symbok-bundle/2.0/config/packages/symbok.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@
55
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
66

77
return static function (ContainerConfigurator $containerConfigurator): void {
8-
$containerConfigurator->extension('symbok', [
9-
'namespaces' => null,
10-
]);
8+
$containerConfigurator->extension('symbok', ['namespaces' => null]);
119
};

0 commit comments

Comments
 (0)