Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Dec 1, 2019
1 parent acf2665 commit e2486ff
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.0.1](https://github.com/sonata-project/ecommerce/compare/2.3.0...3.0.0) - 2019-11-24
## [3.1.0](https://github.com/sonata-project/ecommerce/compare/3.0.1...3.1.0) - 2019-12-01
### Fixed
- crash on payment validation

## [3.0.1](https://github.com/sonata-project/ecommerce/compare/3.0.0...3.0.1) - 2019-11-24
### Fixed
- crash when using doctrine bundle 2

Expand Down
8 changes: 8 additions & 0 deletions UPGRADE-3.x.md
@@ -1,2 +1,10 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.0 to 3.1
=======================

## Deprecated not passing dependencies to `Sonata\PaymentBundle\Controller\PaymentController`

Dependencies are no longer fetched from the container, so if you manually
instantiate that controller, you will need to pass arguments to it.
6 changes: 3 additions & 3 deletions src/PaymentBundle/Controller/PaymentController.php
Expand Up @@ -45,23 +45,23 @@ public function __construct(BasketFactoryInterface $basketFactory = null, Paymen
{
if (!$basketFactory) {
@trigger_error(sprintf(
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.x. Providing it will be mandatory in 4.0',
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.1.0. Providing it will be mandatory in 4.0',
BasketFactoryInterface::class,
__METHOD__
), E_USER_DEPRECATED);
}

if (!$paymentHandler) {
@trigger_error(sprintf(
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.x. Providing it will be mandatory in 4.0',
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.1.0. Providing it will be mandatory in 4.0',
PaymentHandlerInterface::class,
__METHOD__
), E_USER_DEPRECATED);
}

if (!$basket) {
@trigger_error(sprintf(
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.x. Providing it will be mandatory in 4.0',
'Not providing a %s instance to %s is deprecated since sonata-project/ecommerce 3.1.0. Providing it will be mandatory in 4.0',
Basket::class,
__METHOD__
), E_USER_DEPRECATED);
Expand Down

0 comments on commit e2486ff

Please sign in to comment.