This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'http://localhost:8001/api/printable.pdf' \ | |
--header 'Content-Type: application/json' \ | |
--header 'Cookie: XDEBUG_SESSION=PHPSTORM' \ | |
--data-raw '{ | |
"products": [ | |
{ | |
"sku": "L40676700-8", | |
"brand": "Brooks", | |
"brandLogo": "https://cdn.leoburnett.media/image/2/885/0/5/uploads/brooks1920.png", | |
"image": "https://www.wigglestatic.com/product-media/102729584/L40790800_0_Jr_speedcross_cs_wp_j_lyons_blue.jpg.originale.jpg?w=100&h=100&a=7", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ "id": 1, "label": "dances", "sports": [120, 121] }, | |
{ "id": 2, "label": "courses", "sports": [155, 156] }, | |
{ "id": 3, "label": "fitness", "sports": [155, 156, 120, 121] } | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find timeslot by sku in a collection | |
def findById(def timeslots, def timeslotId) { | |
for (def timeslot: timeslots) { | |
if (timeslot.timeslotId == timeslotId) { | |
return timeslot; | |
} | |
} | |
return null; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"checkout": { | |
"summary": { | |
"information": "Subscription details", | |
"payment-method": "Payment method", | |
"payment-methods": { | |
"online": "Online payment" | |
}, | |
"cart": { | |
"title": "Attendee(s) and price", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"checkout": { | |
"summary": { | |
"information": "Détail d'inscription", | |
"payment-method": "Mode de paiement", | |
"payment-methods": { | |
"online": "Paiement en ligne" | |
}, | |
"cart": { | |
"title": "Participant(s) et prix", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec < /dev/tty | |
make requirements-status | |
make code-analysis | |
make coding-standard | |
make deprecation-detection | |
docker-compose exec php make unit-test | |
docker-compose exec php make behavior-test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec < /dev/tty | |
while true; do | |
read -p "Is the documentation, coding-standard and tests okay? (Y/n) " yn | |
if [ "$yn" = "" ]; then | |
yn='Y' | |
fi | |
case $yn in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _update_project { | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo 'You have to call this method with 2 parameters, the git tag/branch name and the environment (prod, dev, ...)' | |
return | |
fi | |
git fetch -a | |
git checkout $1 | |
git pull | |
composer install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias comp="php -n $(which composer)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARGS=$* | |
function checkSf { | |
if [ -f $1 ]; | |
then | |
php $1 $ARGS | |
fi | |
} |
NewerOlder