Skip to content

Commit

Permalink
OP-558 - update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 29, 2025
1 parent 9a38e41 commit a7d096a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion UPGRADE-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,17 @@ Following Symfony's latest recommendations, the directory structure has been upd
## How to Upgrade

1. Ensure your application is upgraded to Sylius 2.0.
```bash
composer require sylius/sylius:~2.0.0 --no-update
```
2. To update the plugin, run the following command:
```bash
composer require bitbag/blacklist-plugin
composer require bitbag/blacklist-plugin:^2.0 --no-update
```
3. Update your dependencies:
```bash
composer update
```
3. Verify your routes and service configurations as described above.
4. Verify your templates and hooks for any required adjustments.

Expand Down
6 changes: 3 additions & 3 deletions doc/installation/xml-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ doctrine:
App:
...
type: xml
dir: '%kernel.project_dir%/src/Resources/config/doctrine'
dir: '%kernel.project_dir%/config/doctrine'
```
Extend entities with parameters and methods using attributes and traits:
Expand All @@ -38,11 +38,11 @@ class Customer extends BaseCustomer implements CustomerInterface
}
```

Define new Entity mapping inside `src/Resources/config/doctrine` directory.
Define new Entity mapping inside `config/doctrine` directory.

- `Customer` entity:

`src/Resources/config/doctrine/Customer.orm.xml`
`config/doctrine/Customer.orm.xml`

```xml
<?xml version="1.0" encoding="UTF-8"?>
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ doctrine:
is_bundle: false
type: xml
dir: '%kernel.project_dir%/src/Resources/config/doctrine'
prefix: 'Tests\BitBag\SyliusBlacklistPlugin\Entity'
prefix: 'Tests\BitBag\SyliusBlacklistPlugin\Entity'

0 comments on commit a7d096a

Please sign in to comment.