Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.5 KB

legacy_installation.md

File metadata and controls

60 lines (44 loc) · 1.5 KB

Legacy installation (without SymfonyFlex)

  1. Require plugin with composer:

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

    $bundles = [
        new \Knp\Bundle\SnappyBundle\KnpSnappyBundle(),
        new \Sylius\RefundPlugin\SyliusRefundPlugin(),
    ];
  3. Import configuration:

    imports:
        - { resource: "@SyliusRefundPlugin/Resources/config/app/config.yml" }
  4. Import routing:

    sylius_refund:
        resource: "@SyliusRefundPlugin/Resources/config/routing.yml"
  5. 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 config.yml:

    knp_snappy:
        pdf:
            enabled: true
            binary: /usr/local/bin/wkhtmltopdf # Change this! :)
            options: []
  6. Apply migrations to your database:

    bin/console doctrine:migrations:migrate
  7. Copy Sylius templates overridden in plugin to your templates directory (e.g templates/bundles/):

    mkdir -p templates/bundles/SyliusAdminBundle/
    cp -R vendor/sylius/refund-plugin/src/Resources/views/SyliusAdminBundle/* templates/bundles/SyliusAdminBundle/
  8. Clear cache:

    bin/console cache:clear