Skip to content

Commit

Permalink
add doc about GlobalConfig's bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Leny Bernard committed Apr 23, 2018
1 parent 43ba546 commit 57805c0
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,22 @@
# Change Log

## [2.3.34](https://github.com/Victoire/victoire/compare/2.3.33...2.3.34)

- Introduce VictoireGlobalConfigBundle to manage global config :
- head code
- meta title pattern
- favicons
- main color
- semantical json+ld

by [Leny Bernard](https://github.com/lenybernard)

## [2.3.33](https://github.com/Victoire/victoire/compare/2.3.32...2.3.33)

- remove use of @template annotation

by [Baptiste Foucher](https://github.com/bfoucher)

## [2.3.32](https://github.com/Victoire/victoire/tree/2.3.32)

- BC break: Require `sensio/framework-extra-bundle:^5.0` that introduce a BC break (from 4.0):
Expand Down
29 changes: 17 additions & 12 deletions UPGRADE-v2.md
@@ -1,16 +1,11 @@
#UPGRADE 2.0
# UPGRADE v2

##UPGRADE 2.0.0
## UPGRADE 2.3.34

The 2.0 version cleans the widget edit views.
To upgrade to this version, you have to refactor your widgets "edit" and "new" templates to use the "form_static" and "form_entity" blocks.
You don't have to redefine the "picker" div because it's been put outside the block in the parent template.
To get the new GlobalConfig feature, you just need to declare the `VictoireGlobalConfigBundle` in your `AppKernel`.

## UPGRADE 2.2.0
You need to execute the following SQL command to upgrade your database.
```sql
UPDATE vic_link SET target = '_modal' WHERE target = 'ajax-modal';
```
## UPGRADE 2.3.10
Event listeners and subscribers using `WidgetFormEvents::PRE_CREATE` will now receive `WidgetFormPreCreateEvent` instead of `WidgetFormCreateEvent`.

## UPGRADE 2.2.18
You need to execute the following SQL command to upgrade your database.
Expand All @@ -20,5 +15,15 @@ UPDATE vic_widget_map SET widget_id = NULL;
UPDATE vic_widget SET view_id = NULL;
```

## UPGRADE 2.3.10
Event listeners and subscribers using `WidgetFormEvents::PRE_CREATE` will now receive `WidgetFormPreCreateEvent` instead of `WidgetFormCreateEvent`.
## UPGRADE 2.2.0
You need to execute the following SQL command to upgrade your database.
```sql
UPDATE vic_link SET target = '_modal' WHERE target = 'ajax-modal';
```

##UPGRADE 2.0.0

The 2.0 version cleans the widget edit views.
To upgrade to this version, you have to refactor your widgets "edit" and "new" templates to use the "form_static" and "form_entity" blocks.
You don't have to redefine the "picker" div because it's been put outside the block in the parent template.

5 changes: 3 additions & 2 deletions doc/setup.md
Expand Up @@ -54,6 +54,7 @@ class AppKernel extends Kernel
new Victoire\Bundle\BusinessEntityBundle\VictoireBusinessEntityBundle(),
new Victoire\Bundle\BusinessPageBundle\VictoireBusinessPageBundle(),
new Victoire\Bundle\CoreBundle\VictoireCoreBundle(),
new Victoire\Bundle\ConfigBundle\VictoireConfigBundle(),
new Victoire\Bundle\CriteriaBundle\VictoireCriteriaBundle(),
new Victoire\Bundle\FilterBundle\VictoireFilterBundle(),
new Victoire\Bundle\FormBundle\VictoireFormBundle(),
Expand Down Expand Up @@ -341,11 +342,11 @@ Find others widget [**here**](http://packagist.org/search/?tags=victoire)

### Prepare Victoire assets

#### Fetch bower assets
#### Fetch front assets (thanks to bower and yarn)

Run the following command to fetch the Victoire assets:

`CAUTION` you need to install bower first
`CAUTION` you need to install bower and yarn first
```shell
bin/console victoire:ui:fetchAssets --force
```
Expand Down

0 comments on commit 57805c0

Please sign in to comment.