Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.35 KB

legacy_installation.md

File metadata and controls

59 lines (41 loc) · 1.35 KB

Legacy installation (without Symfony Flex)

  1. Require plugin with composer:

    composer require sylius/refund-plugin
  2. Add plugin class and other required bundles to your config/bundles.php:

    $bundles = [
        Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true],
        Sylius\RefundPlugin\SyliusRefundPlugin::class => ['all' => true],
    ];
  3. Import configuration:

    imports:
        - { resource: "@SyliusRefundPlugin/config/config.yaml" }
  4. Import routes:

    sylius_refund:
       resource: "@SyliusRefundPlugin/config/routes.yaml"
  5. Apply migrations to your database:

    bin/console doctrine:migrations:migrate
  6. Install assets:

    Add the following line to your assets/admin/entrypoint.js file:

    import '../../vendor/sylius/refund-plugin/assets/entrypoint';
  7. Run yarn encore dev or yarn encore production

  8. Check if you have wkhtmltopdf binary. If not, you can download it here.

    In case wkhtmltopdf is not located in /usr/local/bin/wkhtmltopdf, add a following snippet at the end of your application's .env:

    WKHTMLTOPDF_PATH=/path/to/your/wkhtmltopdf
  9. Clear cache:

    bin/console cache:clear