Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61b128e

Browse files
committed
Add Mercure support
1 parent 7178aee commit 61b128e

File tree

11 files changed

+391
-15
lines changed

11 files changed

+391
-15
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ script:
2222
- if jq '.extra.symfony.id != null' api/composer.json -e > /dev/null; then echo 'composer.json must not have symfony.id' 1>&2 && false; fi
2323
- docker-compose pull --ignore-pull-failures
2424
- docker-compose build --pull
25-
- docker-compose run --no-deps -T php composer validate --no-check-publish
2625
- docker-compose up -d
2726
- sleep 30
2827
- docker-compose exec -T php composer req sensiolabs/security-checker

api/.env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Use real environment variables when deploying to production.
55
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
66

7+
VARNISH_URL=http://cache-proxy
8+
79
###> symfony/framework-bundle ###
810
APP_ENV=dev
911
APP_SECRET=!ChangeMe!
@@ -22,4 +24,8 @@ DATABASE_URL=postgres://api-platform:!ChangeMe!@db/api
2224
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
2325
###< nelmio/cors-bundle ###
2426

25-
VARNISH_URL=http://cache-proxy
27+
###> symfony/mercure-bundle ###
28+
MERCURE_PUBLISH_URL=http://mercure/hub
29+
MERCURE_SUBSCRIBE_URL=http://localhost:1337/hub
30+
MERCURE_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyJmb28iLCJiYXIiXSwicHVibGlzaCI6WyJmb28iXX19.LRLvirgONK13JgacQ_VbcjySbVhkSmHy3IznH3tA9PM
31+
###< symfony/mercure-bundle ###

api/composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"php": "^7.1.3",
66
"ext-ctype": "*",
77
"ext-iconv": "*",
8+
"api-platform/core": "^2.4@dev",
89
"api-platform/api-pack": "^1.1",
910
"guzzlehttp/guzzle": "^6.3",
1011
"symfony/console": "4.2.*",
1112
"symfony/dotenv": "4.2.*",
1213
"symfony/flex": "^1.1",
1314
"symfony/framework-bundle": "4.2.*",
15+
"symfony/mercure-bundle": "*",
1416
"symfony/yaml": "4.2.*"
1517
},
1618
"require-dev": {

0 commit comments

Comments
 (0)