-
-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
168 changed files
with
829 additions
and
1,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
UPGRADE FROM 2.x to 3.0 | ||
======================= | ||
|
||
### Dependencies | ||
|
||
You will need to follow the dependencies upgrade instructions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
UPGRADE FROM 3.x to 4.0 | ||
======================= | ||
|
||
### Sonata\DatagridBundle\Pager\PageableInterface | ||
|
||
Usages of `Sonata\Doctrine\Model\PageableManagerInterface` were replaced in favor of `Sonata\DatagridBundle\Pager\PageableInterface`. | ||
|
||
### Dependencies | ||
|
||
- Drop support for `sonata-project/datagrid-bundle` < 3.0. | ||
|
||
If you are extending these methods, you MUST add argument and return type declarations: | ||
|
||
- `Sonata\MediaBundle\Entity\GalleryManager::getPager()` | ||
- `Sonata\MediaBundle\Entity\MediaManager::getPager()` | ||
- `Sonata\MediaBundle\Model\GalleryManager::getPager()` | ||
- `Sonata\MediaBundle\Model\MediaManager::getPager()` | ||
|
||
## Deprecations | ||
|
||
All the deprecated code introduced on 3.x is removed on 4.0. | ||
|
||
Please read [3.x](https://github.com/sonata-project/SonataMediaBundle/tree/3.x) upgrade guides for more information. | ||
|
||
See also the [diff code](https://github.com/sonata-project/SonataMediaBundle/compare/3.x...4.0.0). | ||
|
||
## Controllers | ||
|
||
`MediaController` actions were changed to introduce `Request $request` as first parameter. | ||
You must update those signatures if you want to still extend this class: | ||
`downloadAction`, `listAction` and `liipImagineFilterAction` | ||
|
||
## Blocks | ||
|
||
The property `wrap` in `GalleryBlockService` was removed. You must create a custom block, if you still want to use it. | ||
|
||
## Models | ||
|
||
If you have implemented a custom model, you must adapt the signature of the following new methods: | ||
* `GalleryHasMediaInterface::getId` | ||
* `GalleryInterface::getId` | ||
|
||
## Renamed GalleryHasMedia to GalleryItem | ||
|
||
All Actions, Controllers, Interfaces and anything related to this is renamed accordingly. | ||
|
||
## Removed classification dependency | ||
|
||
The category feature is now optional and can be disabled in the configuration. | ||
If you need this feature you have to require `sonata-project/classifcation-bundle` via composer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.