valantic-spryker / glue-application
Glue Application Valantic Spryker package
Requires
- php: >=8.0
- spryker/glue-application: >=1.53
Requires (Dev)
README
Description
- In Spryker default only header [{"key":"Accept-Language","value":"de_DE, de;q=0.9"}] is allowed (https://docs.spryker.com/docs/scos/dev/feature-integration-guides/202212.0/glue-api/glue-api-spryker-core-feature-integration.html)
- with this package we also allow passing de-DE
Install
composer require valantic-spryker/glue-application
HowTos Cli
PHP Container: docker run -it --rm --name my-running-script -v "$PWD":/data spryker/php:latest bash
Run Tests: codecept run --env standalone
Fixer: vendor/bin/phpcbf --standard=phpcs.xml --report=full src/ValanticSpryker/
Disable opcache: mv /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini /usr/local/etc/php/conf.d/docker-php-ext-opcache.iniold
XDEBUG:
-
ip addr | grep '192.'
-
$docker-php-ext-enable xdebug
-
configure phpstorm (add 127.0.0.1 phpstorm server with name valantic)
-
$PHP_IDE_CONFIG=serverName=valantic php -dxdebug.mode=debug -dxdebug.client_host=192.168.87.39 -dxdebug.start_with_request=yes ./vendor/bin/codecept run --env standalone
-
Run Tests with coverage:
XDEBUG_MODE=coverage vendor/bin/codecept run --env standalone --coverage --coverage-xml --coverage-html
use nodejs
- docker run -it --rm --name my-running-script -v "$PWD":/data node:18 bash