Coupon : Fix mistake with chmod, file mode set as 644 as it originally was

Remove submodule
This commit is contained in:
gmorel
2013-12-30 21:37:26 +01:00
parent 67b89dbecd
commit cfbc579022
47 changed files with 14 additions and 192 deletions

View File

@@ -38,10 +38,6 @@ use Thelia\Model\Coupon as CouponModel;
use Thelia\Model\CouponQuery; use Thelia\Model\CouponQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Process Coupon Events * Process Coupon Events
* *
* @package Coupon * @package Coupon

View File

@@ -27,10 +27,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
use Thelia\Condition\Implementation\ConditionInterface; use Thelia\Condition\Implementation\ConditionInterface;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage a set of ConditionInterface * Manage a set of ConditionInterface
* *
* @package Condition * @package Condition

View File

@@ -30,10 +30,6 @@ use Thelia\Condition\ConditionCollection;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Validate Conditions * Validate Conditions
* *
* @package Condition * @package Condition

View File

@@ -30,10 +30,6 @@ use Thelia\Condition\ConditionCollection;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage how Condition could interact with the current application state (Thelia) * Manage how Condition could interact with the current application state (Thelia)
* *
* @package Constraint * @package Constraint

View File

@@ -24,10 +24,6 @@
namespace Thelia\Condition; namespace Thelia\Condition;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage how Condition could interact with each others * Manage how Condition could interact with each others
* *
* @package Condition * @package Condition

View File

@@ -24,10 +24,6 @@
namespace Thelia\Condition; namespace Thelia\Condition;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage how Condition could interact with each other * Manage how Condition could interact with each other
* *
* @package Condition * @package Condition

View File

@@ -34,10 +34,6 @@ use Thelia\Model\Currency;
use Thelia\Type\FloatType; use Thelia\Type\FloatType;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Assist in writing a condition of whether the Condition is applied or not * Assist in writing a condition of whether the Condition is applied or not
* *
* @package Constraint * @package Constraint

View File

@@ -28,10 +28,6 @@ use Thelia\Core\Translation\Translator;
use Thelia\Coupon\FacadeInterface; use Thelia\Coupon\FacadeInterface;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage how the application checks its state in order to check if it matches the implemented condition * Manage how the application checks its state in order to check if it matches the implemented condition
* *
* @package Condition * @package Condition

View File

@@ -27,10 +27,6 @@ use InvalidArgumentException;
use Thelia\Condition\Implementation\ConditionAbstract; use Thelia\Condition\Implementation\ConditionAbstract;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Allow every one, perform no check * Allow every one, perform no check
* *
* @package Condition * @package Condition

View File

@@ -31,10 +31,6 @@ use Thelia\Model\Currency;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Condition AvailableForTotalAmount * Condition AvailableForTotalAmount
* Check if a Checkout total amount match criteria * Check if a Checkout total amount match criteria
* *

View File

@@ -30,10 +30,6 @@ use Thelia\Exception\InvalidConditionOperatorException;
use Thelia\Exception\InvalidConditionValueException; use Thelia\Exception\InvalidConditionValueException;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Check a Checkout against its Product number * Check a Checkout against its Product number
* *
* @package Condition * @package Condition

View File

@@ -26,10 +26,6 @@ namespace Thelia\Condition;
use Thelia\Core\Translation\Translator; use Thelia\Core\Translation\Translator;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Represent available Operations in condition checking * Represent available Operations in condition checking
* *
* @package Constraint * @package Constraint

View File

@@ -24,10 +24,6 @@
namespace Thelia\Condition; namespace Thelia\Condition;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* A condition ready to be serialized and stored in DataBase * A condition ready to be serialized and stored in DataBase
* *
* @package Condition * @package Condition

View File

@@ -47,10 +47,6 @@ use Thelia\Tools\I18n;
use Thelia\Tools\Rest\ResponseRest; use Thelia\Tools\Rest\ResponseRest;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Control View and Action (Model) via Events * Control View and Action (Model) via Events
* *
* @package Coupon * @package Coupon
@@ -349,7 +345,19 @@ class CouponController extends BaseAdminController
} }
$couponEvent = new CouponCreateOrUpdateEvent( $couponEvent = new CouponCreateOrUpdateEvent(
$coupon->getCode(), $coupon->getType(), $coupon->getTitle(), array('quantity' => $coupon->getAmount()), $coupon->getShortDescription(), $coupon->getDescription(), $coupon->getIsEnabled(), $coupon->getExpirationDate(), $coupon->getIsAvailableOnSpecialOffers(), $coupon->getIsCumulative(), $coupon->getIsRemovingPostage(), $coupon->getMaxUsage(), $coupon->getLocale() $coupon->getCode(),
$coupon->getType(),
$coupon->getTitle(),
array('quantity' => $coupon->getAmount()),
$coupon->getShortDescription(),
$coupon->getDescription(),
$coupon->getIsEnabled(),
$coupon->getExpirationDate(),
$coupon->getIsAvailableOnSpecialOffers(),
$coupon->getIsCumulative(),
$coupon->getIsRemovingPostage(),
$coupon->getMaxUsage(),
$coupon->getLocale()
); );
$couponEvent->setCouponModel($coupon); $couponEvent->setCouponModel($coupon);
$couponEvent->setConditions($conditions); $couponEvent->setConditions($conditions);

View File

@@ -28,10 +28,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
/** /**
* Created by JetBrains PhpStorm.
* Date: 9/05/13
* Time: 3:24 PM
*
* Class RegisterListenersPass * Class RegisterListenersPass
* Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class * Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class
* *

View File

@@ -28,10 +28,6 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\DependencyInjection\Reference;
/** /**
* Created by JetBrains PhpStorm.
* Date: 9/05/13
* Time: 3:24 PM
*
* Class RegisterListenersPass * Class RegisterListenersPass
* Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class * Source code come from Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\RegisterKernelListenersPass class
* *

View File

@@ -25,10 +25,6 @@ namespace Thelia\Core\Event\Coupon;
use Thelia\Core\Event\ActionEvent; use Thelia\Core\Event\ActionEvent;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/29/13
* Time: 3:45 PM
*
* Occurring when a Coupon is consumed * Occurring when a Coupon is consumed
* *
* @package Coupon * @package Coupon

View File

@@ -28,10 +28,6 @@ use Thelia\Model\Coupon;
use Thelia\Model\Exception\InvalidArgumentException; use Thelia\Model\Exception\InvalidArgumentException;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/29/13
* Time: 3:45 PM
*
* Occurring when a Coupon is created or updated * Occurring when a Coupon is created or updated
* *
* @package Coupon * @package Coupon
@@ -107,9 +103,7 @@ class CouponCreateOrUpdateEvent extends ActionEvent
* @param int $maxUsage Coupon quantity * @param int $maxUsage Coupon quantity
* @param string $locale Coupon Language code ISO (ex: fr_FR) * @param string $locale Coupon Language code ISO (ex: fr_FR)
*/ */
public function __construct( public function __construct($code, $serviceId, $title, array $effects, $shortDescription, $description, $isEnabled, \DateTime $expirationDate, $isAvailableOnSpecialOffers, $isCumulative, $isRemovingPostage, $maxUsage, $locale)
$code, $serviceId, $title, array $effects, $shortDescription, $description, $isEnabled, \DateTime $expirationDate, $isAvailableOnSpecialOffers, $isCumulative, $isRemovingPostage, $maxUsage, $locale
)
{ {
$this->code = $code; $this->code = $code;
$this->description = $description; $this->description = $description;

View File

@@ -40,10 +40,6 @@ use Thelia\Model\CouponQuery;
use Thelia\Type; use Thelia\Type;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Coupon Loop * Coupon Loop
* *
* @package Thelia\Core\Template\Loop * @package Thelia\Core\Template\Loop

View File

@@ -36,10 +36,6 @@ use Thelia\Model\Currency;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Allow to assist in getting relevant data on the current application state * Allow to assist in getting relevant data on the current application state
* *
* @package Coupon * @package Coupon

View File

@@ -31,10 +31,6 @@ use Thelia\Exception\InvalidConditionException;
use Thelia\Model\Coupon; use Thelia\Model\Coupon;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Generate a CouponInterface * Generate a CouponInterface
* *
* @package Coupon * @package Coupon

View File

@@ -29,10 +29,6 @@ use Thelia\Coupon\Type\CouponInterface;
use Thelia\Model\Coupon; use Thelia\Model\Coupon;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Manage how Coupons could interact with a Checkout * Manage how Coupons could interact with a Checkout
* *
* @package Coupon * @package Coupon

View File

@@ -31,10 +31,6 @@ use Thelia\Core\HttpFoundation\Request;
use Thelia\Model\Coupon; use Thelia\Model\Coupon;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Allow to assist in getting relevant data on the current application state * Allow to assist in getting relevant data on the current application state
* *
* @package Coupon * @package Coupon

View File

@@ -32,10 +32,6 @@ use Thelia\Condition\ConditionOrganizerInterface;
use Thelia\Exception\InvalidConditionException; use Thelia\Exception\InvalidConditionException;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Assist in writing a CouponInterface * Assist in writing a CouponInterface
* *
* @package Coupon * @package Coupon

View File

@@ -27,10 +27,6 @@ use Thelia\Condition\ConditionCollection;
use Thelia\Coupon\FacadeInterface; use Thelia\Coupon\FacadeInterface;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Represents a Coupon ready to be processed in a Checkout process * Represents a Coupon ready to be processed in a Checkout process
* *
* @package Coupon * @package Coupon

View File

@@ -27,10 +27,6 @@ use Thelia\Coupon\FacadeInterface;
use Thelia\Coupon\Type\CouponAbstract; use Thelia\Coupon\Type\CouponAbstract;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Allow to remove an amount from the checkout total * Allow to remove an amount from the checkout total
* *
* @package Coupon * @package Coupon

View File

@@ -28,10 +28,6 @@ use Thelia\Coupon\Type\CouponAbstract;
use Thelia\Exception\MissingFacadeException; use Thelia\Exception\MissingFacadeException;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* @package Coupon * @package Coupon
* @author Guillaume MOREL <gmorel@openstudio.fr> * @author Guillaume MOREL <gmorel@openstudio.fr>
* *

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Thelia\Log\Tlog; use Thelia\Log\Tlog;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when an Expired Coupon is tried * Thrown when an Expired Coupon is tried
* *
* @package Coupon * @package Coupon

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Thelia\Log\Tlog; use Thelia\Log\Tlog;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when a Condition is badly implemented * Thrown when a Condition is badly implemented
* *
* @package Condition * @package Condition

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Thelia\Log\Tlog; use Thelia\Log\Tlog;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when a Condition receive an invalid Operator * Thrown when a Condition receive an invalid Operator
* *
* @package Condition * @package Condition

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Thelia\Log\Tlog; use Thelia\Log\Tlog;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when a Condition receives an invalid Parameter * Thrown when a Condition receives an invalid Parameter
* *
* @package Condition * @package Condition

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Thelia\Log\Tlog; use Thelia\Log\Tlog;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when the Facade is not set * Thrown when the Facade is not set
* *
* @package Coupon * @package Coupon

View File

@@ -26,10 +26,6 @@ namespace Thelia\Exception;
use Symfony\Component\DependencyInjection\Exception\BadMethodCallException; use Symfony\Component\DependencyInjection\Exception\BadMethodCallException;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when an Abstract method has not been implemented * Thrown when an Abstract method has not been implemented
* *
* @package Exception * @package Exception

View File

@@ -29,10 +29,6 @@ use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\NotEqualTo; use Symfony\Component\Validator\Constraints\NotEqualTo;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/29/13
* Time: 3:45 PM
*
* Allow to build a form Coupon * Allow to build a form Coupon
* *
* @package Coupon * @package Coupon

View File

@@ -31,10 +31,6 @@ use Thelia\Model\Exception\InvalidArgumentException;
use Thelia\Model\Map\CouponTableMap; use Thelia\Model\Map\CouponTableMap;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Used to provide an effect (mostly a discount) * Used to provide an effect (mostly a discount)
* at the end of the Customer checkout tunnel * at the end of the Customer checkout tunnel
* It will be usable for a Customer only if it matches the Coupon criteria (Rules) * It will be usable for a Customer only if it matches the Coupon criteria (Rules)

View File

@@ -26,10 +26,6 @@ use Thelia\Condition\Implementation\MatchForTotalAmount;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test ConditionCollection Class * Unit Test ConditionCollection Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *

View File

@@ -28,10 +28,6 @@ use Thelia\Condition\Operators;
use Thelia\Condition\ConditionCollection; use Thelia\Condition\ConditionCollection;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test ConditionEvaluator Class * Unit Test ConditionEvaluator Class
* *
* @package Constraint * @package Constraint

View File

@@ -31,10 +31,6 @@ use Thelia\Condition\ConditionCollection;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test ConditionFactory Class * Unit Test ConditionFactory Class
* *
* @package Condition * @package Condition

View File

@@ -29,10 +29,6 @@ use Thelia\Coupon\FacadeInterface;
use Thelia\Model\Currency; use Thelia\Model\Currency;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test MatchForEveryone Class * Unit Test MatchForEveryone Class
* *
* @package Condition * @package Condition

View File

@@ -33,10 +33,6 @@ use Thelia\Model\Currency;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test MatchForTotalAmount Class * Unit Test MatchForTotalAmount Class
* *
* @package Condition * @package Condition

View File

@@ -29,10 +29,6 @@ use Thelia\Condition\SerializableCondition;
use Thelia\Coupon\FacadeInterface; use Thelia\Coupon\FacadeInterface;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test MatchForXArticles Class * Unit Test MatchForXArticles Class
* *
* @package Constraint * @package Constraint

View File

@@ -26,10 +26,6 @@ namespace Thelia\Condition;
use Thelia\Core\Translation\Translator; use Thelia\Core\Translation\Translator;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test Operators Class * Unit Test Operators Class
* *
* @package Condition * @package Condition

View File

@@ -24,10 +24,6 @@
namespace Thelia\Coupon; namespace Thelia\Coupon;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test BaseFacade Class * Unit Test BaseFacade Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *

View File

@@ -32,10 +32,6 @@ use Thelia\Model\Coupon;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test CouponFactory Class * Unit Test CouponFactory Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *

View File

@@ -32,10 +32,6 @@ use Thelia\Model\Coupon;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test CouponManager Class * Unit Test CouponManager Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *

View File

@@ -30,10 +30,6 @@ use Thelia\Coupon\FacadeInterface;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test RemoveXAmount Class * Unit Test RemoveXAmount Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *

View File

@@ -30,10 +30,6 @@ use Thelia\Coupon\FacadeInterface;
use Thelia\Model\CurrencyQuery; use Thelia\Model\CurrencyQuery;
/** /**
* Created by JetBrains PhpStorm.
* Date: 8/19/13
* Time: 3:24 PM
*
* Unit Test RemoveXPercent Class * Unit Test RemoveXPercent Class
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24. * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-17 at 18:59:24.
* *