Skip to content

Commit

Permalink
Improve installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Dec 12, 2024
1 parent 0bf9b0d commit e1cac2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/legacy_installation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Legacy installation (without SymfonyFlex)
### Legacy installation (without Symfony Flex)

1. Require plugin with composer:

Expand All @@ -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],
];
```

Expand Down

0 comments on commit e1cac2e

Please sign in to comment.