marcofaul/sw-dev-tool-six-bundle

Helper tool for developing with showpare six

v1.1.0 2020-06-04 19:49 UTC

This package is auto-updated.

Last update: 2024-05-07 03:22:04 UTC


README

GitHub tag (latest by date) Build Status License: MIT Coverage Status PRs Welcome

Features

  • Set administration login token ttl (time to live)
  • Disable dal entity caching
  • Set default development parameters
  • Disables twig cache
  • Disable storefront error handling

Installation

composer require marcofaul/sw-dev-tool-six-bundle --dev

This is optional. Shopware 6 is using flex, so it will be automatically added to your config/bundles.php:

return [
      // ...
      MarcoFaul\SwDevToolSixBundle\SwDevToolSixBundle::class => ['all' => true]  
      // ...
];

Configuration

Simply configure your shop connection over the global config.yml:

sw_dev_tool_six:
    access_token_ttl: P1W
    enable_dal_caching: false
    shopware:
        run_wizard: true
        auto_update: false
        api_auth_require: false
        storefront_csrf: false
    twig:
        debug: true

Tests

php vendor/bin/simple-phpunit
or
php vendor/bin/phpunit