Refactor removing Manager notion

This commit is contained in:
gmorel
2013-11-23 20:18:04 +01:00
parent 8ce1030178
commit 90b5fbde05
34 changed files with 442 additions and 411 deletions

View File

@@ -24,7 +24,7 @@
namespace Thelia\Coupon;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Condition\ConditionManagerInterface;
use Thelia\Condition\ConditionInterface;
use Thelia\Coupon\Type\CouponInterface;
use Thelia\Model\Coupon;
@@ -213,9 +213,9 @@ class CouponManager
/**
* Add an available ConstraintManager (Services)
*
* @param ConditionManagerInterface $condition ConditionManagerInterface
* @param ConditionInterface $condition ConditionInterface
*/
public function addAvailableCondition(ConditionManagerInterface $condition)
public function addAvailableCondition(ConditionInterface $condition)
{
$this->availableConditions[] = $condition;
}