Skip to content

Commit 283216b

Browse files
committed
improve poc startup
1 parent 3b62009 commit 283216b

File tree

4 files changed

+10
-20
lines changed

4 files changed

+10
-20
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# POC
22
### for zikula/dynamic-form-property-bundle
33

4-
1. change path in `composer.json` for the repository
4+
1. Clone `zikula/dynamic-form-property-bundle` next to this repository.
55
2. `composer install`
6-
3. `docker compose up`
7-
4. `symfony serve`
6+
3. `./start.sh`
7+
8+
Stop with `./stop.sh`

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/EventSubscriber/SupportedLocaleSubscriber.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
class SupportedLocaleSubscriber implements EventSubscriberInterface
99
{
10-
public static function getSubscribedEvents()
10+
public static function getSubscribedEvents(): array
1111
{
1212
return [
1313
SupportedLocalesEvent::class => 'addSupportedLocales'
1414
];
1515
}
1616

17-
public function addSupportedLocales(SupportedLocalesEvent $event)
17+
public function addSupportedLocales(SupportedLocalesEvent $event): void
1818
{
1919
$supportedLocales = $event->getSupportedLocales(); // [0 => 'default']
2020
$supportedLocales = array_merge($supportedLocales, ['de', 'es', 'fr_FR', 'fr_BE']);

start.sh

+3-14
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,14 @@
22

33
docker compose up -d
44

5-
#echo "waiting for database to be available:"
6-
#until [ "`docker exec work-database-1 sh "psql -Usymfony -WChangeMe -l" 2> /dev/null`" ]; do
7-
# sleep 2;
8-
# echo "waiting...";
9-
#done;
5+
echo "waiting 10 seconds for database to become available:"
6+
sleep 10;
107

118
symfony console doctrine:migrations:migrate -n
129

13-
# add symfony console doctrine:fixtures:load --append
14-
1510
# run "symfony server:ca:install" first if you want to run the web server with TLS support (then remove the --no-tls flag)
1611
symfony serve -d --no-tls
1712

1813
symfony console cache:clear
1914

20-
exit 0;
21-
22-
# show all the env vars
23-
# symfony var:export --debug
24-
25-
# When running console commands, add the https_proxy env var to make custom domains work:
26-
# https_proxy=http://127.0.0.1:7080 curl https://my-domain.wip
15+
exit 0;

0 commit comments

Comments
 (0)