From e1cac2ebcb9d44f23d8f6cc79ca6c6ffa37c1f7b Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Thu, 12 Dec 2024 01:10:32 +0100 Subject: [PATCH] Improve installation guide --- README.md | 12 ++++++------ docs/legacy_installation.md | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f87293910..3a47321b5 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,12 @@ From Administrator's point of view, every Refund request results in creating two ## Installation +#### Beware! + +This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the +[legacy installation instruction](docs/legacy_installation.md). However, we strongly encourage you to use +Symfony Flex, it's much quicker! + 1. Require plugin with composer: ```bash @@ -68,12 +74,6 @@ From Administrator's point of view, every Refund request results in creating two WKHTMLTOPDF_PATH=/usr/local/bin/wkhtmltopdf # Change this! :) ``` -#### Beware! - -This installation instruction assumes that you're using Symfony Flex. If you don't, take a look at the -[legacy installation instruction](docs/legacy_installation.md). However, we strongly encourage you to use -Symfony Flex, it's much quicker! :) - ## Extension points Refund Plugin is strongly based on both commands and events. Let's take RefundUnitsAction as an example. The whole diff --git a/docs/legacy_installation.md b/docs/legacy_installation.md index 85e6c9c3f..d86c6009a 100644 --- a/docs/legacy_installation.md +++ b/docs/legacy_installation.md @@ -1,4 +1,4 @@ -### Legacy installation (without SymfonyFlex) +### Legacy installation (without Symfony Flex) 1. Require plugin with composer: @@ -10,8 +10,8 @@ ```php $bundles = [ - new \Knp\Bundle\SnappyBundle\KnpSnappyBundle(), - new \Sylius\RefundPlugin\SyliusRefundPlugin(), + Knp\Bundle\SnappyBundle\KnpSnappyBundle::class => ['all' => true], + Sylius\RefundPlugin\SyliusRefundPlugin::class => ['all' => true], ]; ```