update changelog and fix cs
This commit is contained in:
@@ -2,6 +2,13 @@
|
|||||||
- Remove container from BaseAction.
|
- Remove container from BaseAction.
|
||||||
- fix sending mail on order creation
|
- fix sending mail on order creation
|
||||||
- less files in default templates are already compile in css.
|
- less files in default templates are already compile in css.
|
||||||
|
- all validator message are translated
|
||||||
|
- type argument is now a default argument and used for generating loop cache
|
||||||
|
- fix total amount without discount in backoffice. Fix #235
|
||||||
|
- description is not required anymore in coupon form. Fix #233
|
||||||
|
- Do not allow to cumulate the same coupon many times. Fix #217
|
||||||
|
- colissimo module is now fully configurable
|
||||||
|
- test suite are executed on PHP 5.4, 5.5, 5.6 and HHVM. Thelia is not fully compatible with HHVM
|
||||||
|
|
||||||
#2.0.0-beta4
|
#2.0.0-beta4
|
||||||
- Tinymce is now a dedicated module. You need to activate it.
|
- Tinymce is now a dedicated module. You need to activate it.
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
namespace Thelia\Action;
|
namespace Thelia\Action;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
|
||||||
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
||||||
|
|
||||||
use Thelia\Core\Event\UpdatePositionEvent;
|
use Thelia\Core\Event\UpdatePositionEvent;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Action;
|
namespace Thelia\Action;
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
use Thelia\Core\Event\Cart\CartEvent;
|
use Thelia\Core\Event\Cart\CartEvent;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Action;
|
namespace Thelia\Action;
|
||||||
|
|
||||||
use Propel\Runtime\ServiceContainer\ServiceContainerInterface;
|
|
||||||
use Symfony\Component\DependencyInjection\Container;
|
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
use Thelia\Condition\ConditionFactory;
|
use Thelia\Condition\ConditionFactory;
|
||||||
use Thelia\Condition\Implementation\ConditionInterface;
|
use Thelia\Condition\Implementation\ConditionInterface;
|
||||||
|
|||||||
@@ -158,8 +158,8 @@ class Module extends BaseAction implements EventSubscriberInterface
|
|||||||
* @param OrderPaymentEvent $event
|
* @param OrderPaymentEvent $event
|
||||||
* @throws \RuntimeException if no payment module can be found.
|
* @throws \RuntimeException if no payment module can be found.
|
||||||
*/
|
*/
|
||||||
public function pay(OrderPaymentEvent $event) {
|
public function pay(OrderPaymentEvent $event)
|
||||||
|
{
|
||||||
$order = $event->getOrder();
|
$order = $event->getOrder();
|
||||||
|
|
||||||
/* call pay method */
|
/* call pay method */
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ namespace Thelia\Action;
|
|||||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
use Thelia\Cart\CartTrait;
|
use Thelia\Cart\CartTrait;
|
||||||
use Thelia\Core\Event\Cart\CartEvent;
|
|
||||||
use Thelia\Core\Event\Order\OrderAddressEvent;
|
use Thelia\Core\Event\Order\OrderAddressEvent;
|
||||||
use Thelia\Core\Event\Order\OrderEvent;
|
use Thelia\Core\Event\Order\OrderEvent;
|
||||||
use Thelia\Core\Event\Order\OrderManualEvent;
|
use Thelia\Core\Event\Order\OrderManualEvent;
|
||||||
@@ -53,7 +52,6 @@ use Thelia\Model\OrderStatus;
|
|||||||
use Thelia\Model\OrderStatusQuery;
|
use Thelia\Model\OrderStatusQuery;
|
||||||
use Thelia\Tools\I18n;
|
use Thelia\Tools\I18n;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Class Order
|
* Class Order
|
||||||
@@ -157,7 +155,6 @@ class Order extends BaseAction implements EventSubscriberInterface
|
|||||||
|
|
||||||
$con->beginTransaction();
|
$con->beginTransaction();
|
||||||
|
|
||||||
|
|
||||||
$placedOrder = $sessionOrder->copy();
|
$placedOrder = $sessionOrder->copy();
|
||||||
$placedOrder->setDispatcher($dispatcher);
|
$placedOrder->setDispatcher($dispatcher);
|
||||||
|
|
||||||
@@ -307,8 +304,8 @@ class Order extends BaseAction implements EventSubscriberInterface
|
|||||||
/**
|
/**
|
||||||
* Create an order outside of the front-office context, e.g. manually from the back-office.
|
* Create an order outside of the front-office context, e.g. manually from the back-office.
|
||||||
*/
|
*/
|
||||||
public function createManual(OrderManualEvent $event) {
|
public function createManual(OrderManualEvent $event)
|
||||||
|
{
|
||||||
$placedOrder = $this->createOrder(
|
$placedOrder = $this->createOrder(
|
||||||
$event->getDispatcher(),
|
$event->getDispatcher(),
|
||||||
$event->getOrder(),
|
$event->getOrder(),
|
||||||
@@ -339,7 +336,6 @@ class Order extends BaseAction implements EventSubscriberInterface
|
|||||||
|
|
||||||
$event->getDispatcher()->dispatch(TheliaEvents::ORDER_BEFORE_PAYMENT, new OrderEvent($placedOrder));
|
$event->getDispatcher()->dispatch(TheliaEvents::ORDER_BEFORE_PAYMENT, new OrderEvent($placedOrder));
|
||||||
|
|
||||||
|
|
||||||
/* but memorize placed order */
|
/* but memorize placed order */
|
||||||
$event->setOrder(new \Thelia\Model\Order());
|
$event->setOrder(new \Thelia\Model\Order());
|
||||||
$event->setPlacedOrder($placedOrder);
|
$event->setPlacedOrder($placedOrder);
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
|
|
||||||
use Symfony\Component\Filesystem\Exception\IOException;
|
use Symfony\Component\Filesystem\Exception\IOException;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Event\Cache\CacheEvent;
|
use Thelia\Core\Event\Cache\CacheEvent;
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Command;
|
namespace Thelia\Command;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Thelia\Core\Event\Image\ImageEvent;
|
use Thelia\Core\Event\Image\ImageEvent;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
|||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Model\Admin;
|
use Thelia\Model\Admin;
|
||||||
|
|
||||||
class CreateAdminUser extends ContainerAwareCommand
|
class CreateAdminUser extends ContainerAwareCommand
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ use Symfony\Component\Console\Input\InputInterface;
|
|||||||
use Symfony\Component\Console\Input\InputOption;
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Security\Resource\AdminResources;
|
use Thelia\Core\Security\Resource\AdminResources;
|
||||||
|
|
||||||
use Thelia\Model\Map\ResourceI18nTableMap;
|
use Thelia\Model\Map\ResourceI18nTableMap;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Controller\Admin;
|
namespace Thelia\Controller\Admin;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Security\Resource\AdminResources;
|
use Thelia\Core\Security\Resource\AdminResources;
|
||||||
use Thelia\Core\Event\Category\CategoryDeleteEvent;
|
use Thelia\Core\Event\Category\CategoryDeleteEvent;
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ class CouponController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
$this->checkAuth(AdminResources::COUPON, array(), AccessManager::VIEW);
|
$this->checkAuth(AdminResources::COUPON, array(), AccessManager::VIEW);
|
||||||
|
|
||||||
|
|
||||||
$coupon = CouponQuery::create()->findPk($couponId);
|
$coupon = CouponQuery::create()->findPk($couponId);
|
||||||
|
|
||||||
if ($coupon === null) {
|
if ($coupon === null) {
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ use Thelia\Form\CustomerCreateForm;
|
|||||||
use Thelia\Form\CustomerUpdateForm;
|
use Thelia\Form\CustomerUpdateForm;
|
||||||
use Thelia\Model\CustomerQuery;
|
use Thelia\Model\CustomerQuery;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class CustomerController
|
* Class CustomerController
|
||||||
* @package Thelia\Controller\Admin
|
* @package Thelia\Controller\Admin
|
||||||
|
|||||||
@@ -841,8 +841,6 @@ class FileController extends BaseAdminController
|
|||||||
$model->setPostscriptum($data['postscriptum']);
|
$model->setPostscriptum($data['postscriptum']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$imageCreateEvent->setModelImage($model);
|
$imageCreateEvent->setModelImage($model);
|
||||||
|
|
||||||
return $imageCreateEvent;
|
return $imageCreateEvent;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Controller\Admin;
|
namespace Thelia\Controller\Admin;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Security\Resource\AdminResources;
|
use Thelia\Core\Security\Resource\AdminResources;
|
||||||
use Thelia\Core\Event\Order\OrderAddressEvent;
|
use Thelia\Core\Event\Order\OrderAddressEvent;
|
||||||
use Thelia\Core\Event\Order\OrderEvent;
|
use Thelia\Core\Event\Order\OrderEvent;
|
||||||
@@ -46,7 +45,6 @@ class OrderController extends BaseAdminController
|
|||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
if (null !== $response = $this->checkAuth(AdminResources::ORDER, array(), AccessManager::VIEW)) return $response;
|
if (null !== $response = $this->checkAuth(AdminResources::ORDER, array(), AccessManager::VIEW)) return $response;
|
||||||
|
|
||||||
return $this->render("orders", array(
|
return $this->render("orders", array(
|
||||||
"display_order" => 20,
|
"display_order" => 20,
|
||||||
"orders_order" => $this->getListOrderFromSession("orders", "orders_order", "create-date-reverse")
|
"orders_order" => $this->getListOrderFromSession("orders", "orders_order", "create-date-reverse")
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ use Thelia\Core\Security\Exception\AuthenticationException;
|
|||||||
use Thelia\Model\Lang;
|
use Thelia\Model\Lang;
|
||||||
use Thelia\Model\LangQuery;
|
use Thelia\Model\LangQuery;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
use Thelia\Core\Security\Authentication\AdminTokenAuthenticator;
|
use Thelia\Core\Security\Authentication\AdminTokenAuthenticator;
|
||||||
|
|
||||||
@@ -75,8 +74,8 @@ class SessionController extends BaseAdminController
|
|||||||
return $this->render("login");
|
return $this->render("login");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function applyUserLocale(Admin $user) {
|
protected function applyUserLocale(Admin $user)
|
||||||
|
{
|
||||||
// Set the current language according to Admin locale preference
|
// Set the current language according to Admin locale preference
|
||||||
$locale = $user->getLocale();
|
$locale = $user->getLocale();
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ class TaxRuleController extends AbstractCrudController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function defaultAction() {
|
public function defaultAction()
|
||||||
|
{
|
||||||
// In the tax rule template we use the TaxCreationForm.
|
// In the tax rule template we use the TaxCreationForm.
|
||||||
//
|
//
|
||||||
// The TaxCreationForm require the TaxEngine, but we cannot pass it from the Parser Form plugin,
|
// The TaxCreationForm require the TaxEngine, but we cannot pass it from the Parser Form plugin,
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
namespace Thelia\Core\Event;
|
namespace Thelia\Core\Event;
|
||||||
|
|
||||||
use Thelia\Model\Accessory;
|
use Thelia\Model\Accessory;
|
||||||
use Thelia\Core\Event\ActionEvent;
|
|
||||||
|
|
||||||
class AccessoryEvent extends ActionEvent
|
class AccessoryEvent extends ActionEvent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ class AdministratorEvent extends ActionEvent
|
|||||||
public function setLocale($locale)
|
public function setLocale($locale)
|
||||||
{
|
{
|
||||||
$this->locale = $locale;
|
$this->locale = $locale;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeAvEvent;
|
|
||||||
|
|
||||||
class AttributeAvCreateEvent extends AttributeAvEvent
|
class AttributeAvCreateEvent extends AttributeAvEvent
|
||||||
{
|
{
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeAvEvent;
|
|
||||||
|
|
||||||
class AttributeAvDeleteEvent extends AttributeAvEvent
|
class AttributeAvDeleteEvent extends AttributeAvEvent
|
||||||
{
|
{
|
||||||
protected $attributeAv_id;
|
protected $attributeAv_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeAvCreateEvent;
|
|
||||||
|
|
||||||
class AttributeAvUpdateEvent extends AttributeAvCreateEvent
|
class AttributeAvUpdateEvent extends AttributeAvCreateEvent
|
||||||
{
|
{
|
||||||
protected $attributeAv_id;
|
protected $attributeAv_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeEvent;
|
|
||||||
|
|
||||||
class AttributeCreateEvent extends AttributeEvent
|
class AttributeCreateEvent extends AttributeEvent
|
||||||
{
|
{
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeEvent;
|
|
||||||
|
|
||||||
class AttributeDeleteEvent extends AttributeEvent
|
class AttributeDeleteEvent extends AttributeEvent
|
||||||
{
|
{
|
||||||
protected $attribute_id;
|
protected $attribute_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Attribute;
|
namespace Thelia\Core\Event\Attribute;
|
||||||
|
|
||||||
use Thelia\Core\Event\Attribute\AttributeCreateEvent;
|
|
||||||
|
|
||||||
class AttributeUpdateEvent extends AttributeCreateEvent
|
class AttributeUpdateEvent extends AttributeCreateEvent
|
||||||
{
|
{
|
||||||
protected $attribute_id;
|
protected $attribute_id;
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setAppend($append)
|
public function setAppend($append)
|
||||||
{
|
{
|
||||||
$this->append = $append;
|
$this->append = $append;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setCartItem($cartItem)
|
public function setCartItem($cartItem)
|
||||||
{
|
{
|
||||||
$this->cartItem = $cartItem;
|
$this->cartItem = $cartItem;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,6 +84,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setNewness($newness)
|
public function setNewness($newness)
|
||||||
{
|
{
|
||||||
$this->newness = $newness;
|
$this->newness = $newness;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,6 +102,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setProduct($product)
|
public function setProduct($product)
|
||||||
{
|
{
|
||||||
$this->product = $product;
|
$this->product = $product;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,6 +120,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setProductSaleElementsId($productSaleElementsId)
|
public function setProductSaleElementsId($productSaleElementsId)
|
||||||
{
|
{
|
||||||
$this->productSaleElementsId = $productSaleElementsId;
|
$this->productSaleElementsId = $productSaleElementsId;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,6 +138,7 @@ class CartEvent extends ActionEvent
|
|||||||
public function setQuantity($quantity)
|
public function setQuantity($quantity)
|
||||||
{
|
{
|
||||||
$this->quantity = $quantity;
|
$this->quantity = $quantity;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryEvent;
|
|
||||||
use Thelia\Model\Category;
|
use Thelia\Model\Category;
|
||||||
|
|
||||||
class CategoryAddContentEvent extends CategoryEvent
|
class CategoryAddContentEvent extends CategoryEvent
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryEvent;
|
|
||||||
|
|
||||||
class CategoryCreateEvent extends CategoryEvent
|
class CategoryCreateEvent extends CategoryEvent
|
||||||
{
|
{
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryEvent;
|
|
||||||
use Thelia\Model\Category;
|
use Thelia\Model\Category;
|
||||||
|
|
||||||
class CategoryDeleteContentEvent extends CategoryEvent
|
class CategoryDeleteContentEvent extends CategoryEvent
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryEvent;
|
|
||||||
|
|
||||||
class CategoryDeleteEvent extends CategoryEvent
|
class CategoryDeleteEvent extends CategoryEvent
|
||||||
{
|
{
|
||||||
public function __construct($category_id)
|
public function __construct($category_id)
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryEvent;
|
|
||||||
|
|
||||||
class CategoryToggleVisibilityEvent extends CategoryEvent
|
class CategoryToggleVisibilityEvent extends CategoryEvent
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Category;
|
namespace Thelia\Core\Event\Category;
|
||||||
|
|
||||||
use Thelia\Core\Event\Category\CategoryCreateEvent;
|
|
||||||
|
|
||||||
class CategoryUpdateEvent extends CategoryCreateEvent
|
class CategoryUpdateEvent extends CategoryCreateEvent
|
||||||
{
|
{
|
||||||
protected $category_id;
|
protected $category_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Config;
|
namespace Thelia\Core\Event\Config;
|
||||||
|
|
||||||
use Thelia\Core\Event\Config\ConfigEvent;
|
|
||||||
|
|
||||||
class ConfigCreateEvent extends ConfigEvent
|
class ConfigCreateEvent extends ConfigEvent
|
||||||
{
|
{
|
||||||
protected $event_name;
|
protected $event_name;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Config;
|
namespace Thelia\Core\Event\Config;
|
||||||
|
|
||||||
use Thelia\Core\Event\Config\ConfigEvent;
|
|
||||||
|
|
||||||
class ConfigDeleteEvent extends ConfigEvent
|
class ConfigDeleteEvent extends ConfigEvent
|
||||||
{
|
{
|
||||||
protected $config_id;
|
protected $config_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Config;
|
namespace Thelia\Core\Event\Config;
|
||||||
|
|
||||||
use Thelia\Core\Event\Config\ConfigCreateEvent;
|
|
||||||
|
|
||||||
class ConfigUpdateEvent extends ConfigCreateEvent
|
class ConfigUpdateEvent extends ConfigCreateEvent
|
||||||
{
|
{
|
||||||
protected $config_id;
|
protected $config_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Currency;
|
namespace Thelia\Core\Event\Currency;
|
||||||
|
|
||||||
use Thelia\Core\Event\Currency\CurrencyEvent;
|
|
||||||
|
|
||||||
class CurrencyCreateEvent extends CurrencyEvent
|
class CurrencyCreateEvent extends CurrencyEvent
|
||||||
{
|
{
|
||||||
protected $currency_name;
|
protected $currency_name;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Currency;
|
namespace Thelia\Core\Event\Currency;
|
||||||
|
|
||||||
use Thelia\Core\Event\Currency\CurrencyEvent;
|
|
||||||
|
|
||||||
class CurrencyDeleteEvent extends CurrencyEvent
|
class CurrencyDeleteEvent extends CurrencyEvent
|
||||||
{
|
{
|
||||||
protected $currency_id;
|
protected $currency_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Currency;
|
namespace Thelia\Core\Event\Currency;
|
||||||
|
|
||||||
use Thelia\Core\Event\Currency\CurrencyCreateEvent;
|
|
||||||
|
|
||||||
class CurrencyUpdateEvent extends CurrencyCreateEvent
|
class CurrencyUpdateEvent extends CurrencyCreateEvent
|
||||||
{
|
{
|
||||||
protected $currency_id;
|
protected $currency_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event;
|
namespace Thelia\Core\Event;
|
||||||
|
|
||||||
use Thelia\Core\Event\ActionEvent;
|
|
||||||
|
|
||||||
class DefaultActionEvent extends ActionEvent
|
class DefaultActionEvent extends ActionEvent
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureAvEvent;
|
|
||||||
|
|
||||||
class FeatureAvCreateEvent extends FeatureAvEvent
|
class FeatureAvCreateEvent extends FeatureAvEvent
|
||||||
{
|
{
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureAvEvent;
|
|
||||||
|
|
||||||
class FeatureAvDeleteEvent extends FeatureAvEvent
|
class FeatureAvDeleteEvent extends FeatureAvEvent
|
||||||
{
|
{
|
||||||
protected $featureAv_id;
|
protected $featureAv_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureAvCreateEvent;
|
|
||||||
|
|
||||||
class FeatureAvUpdateEvent extends FeatureAvCreateEvent
|
class FeatureAvUpdateEvent extends FeatureAvCreateEvent
|
||||||
{
|
{
|
||||||
protected $featureAv_id;
|
protected $featureAv_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureEvent;
|
|
||||||
|
|
||||||
class FeatureCreateEvent extends FeatureEvent
|
class FeatureCreateEvent extends FeatureEvent
|
||||||
{
|
{
|
||||||
protected $title;
|
protected $title;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureEvent;
|
|
||||||
|
|
||||||
class FeatureDeleteEvent extends FeatureEvent
|
class FeatureDeleteEvent extends FeatureEvent
|
||||||
{
|
{
|
||||||
protected $feature_id;
|
protected $feature_id;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Feature;
|
namespace Thelia\Core\Event\Feature;
|
||||||
|
|
||||||
use Thelia\Core\Event\Feature\FeatureCreateEvent;
|
|
||||||
|
|
||||||
class FeatureUpdateEvent extends FeatureCreateEvent
|
class FeatureUpdateEvent extends FeatureCreateEvent
|
||||||
{
|
{
|
||||||
protected $feature_id;
|
protected $feature_id;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\FeatureProduct;
|
namespace Thelia\Core\Event\FeatureProduct;
|
||||||
use Thelia\Core\Event\FeatureProduct\FeatureProductEvent;
|
|
||||||
use Thelia\Model\FeatureProduct;
|
use Thelia\Model\FeatureProduct;
|
||||||
|
|
||||||
class FeatureProductDeleteEvent extends FeatureProductEvent
|
class FeatureProductDeleteEvent extends FeatureProductEvent
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\FeatureProduct;
|
namespace Thelia\Core\Event\FeatureProduct;
|
||||||
use Thelia\Core\Event\FeatureProduct\FeatureProductEvent;
|
|
||||||
use Thelia\Model\FeatureProduct;
|
use Thelia\Model\FeatureProduct;
|
||||||
|
|
||||||
class FeatureProductUpdateEvent extends FeatureProductEvent
|
class FeatureProductUpdateEvent extends FeatureProductEvent
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\Folder;
|
namespace Thelia\Core\Event\Folder;
|
||||||
use Thelia\Core\Event\Folder\FolderEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FolderCreateEvent
|
* Class FolderCreateEvent
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\Folder;
|
namespace Thelia\Core\Event\Folder;
|
||||||
use Thelia\Core\Event\Folder\FolderEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FolderDeleteEvent
|
* Class FolderDeleteEvent
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\Folder;
|
namespace Thelia\Core\Event\Folder;
|
||||||
use Thelia\Core\Event\Folder\FolderEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FolderToggleVisibilityEvent
|
* Class FolderToggleVisibilityEvent
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\Folder;
|
namespace Thelia\Core\Event\Folder;
|
||||||
use Thelia\Core\Event\Folder\FolderCreateEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FolderUpdateEvent
|
* Class FolderUpdateEvent
|
||||||
|
|||||||
@@ -90,8 +90,6 @@ class ImageCreateOrUpdateEvent extends ActionEvent
|
|||||||
return $this->locale;
|
return $this->locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Image to save
|
* Set Image to save
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Message;
|
namespace Thelia\Core\Event\Message;
|
||||||
|
|
||||||
use Thelia\Core\Event\Message\MessageEvent;
|
|
||||||
|
|
||||||
class MessageCreateEvent extends MessageEvent
|
class MessageCreateEvent extends MessageEvent
|
||||||
{
|
{
|
||||||
protected $message_name;
|
protected $message_name;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Message;
|
namespace Thelia\Core\Event\Message;
|
||||||
|
|
||||||
use Thelia\Core\Event\Message\MessageEvent;
|
|
||||||
|
|
||||||
class MessageDeleteEvent extends MessageEvent
|
class MessageDeleteEvent extends MessageEvent
|
||||||
{
|
{
|
||||||
protected $message_id;
|
protected $message_id;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
|
|
||||||
namespace Thelia\Core\Event\Message;
|
namespace Thelia\Core\Event\Message;
|
||||||
use Thelia\Core\Event\Message\MessageCreateEvent;
|
|
||||||
|
|
||||||
class MessageUpdateEvent extends MessageCreateEvent
|
class MessageUpdateEvent extends MessageCreateEvent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setOrder(Order $order)
|
public function setOrder(Order $order)
|
||||||
{
|
{
|
||||||
$this->order = $order;
|
$this->order = $order;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setPlacedOrder(Order $order)
|
public function setPlacedOrder(Order $order)
|
||||||
{
|
{
|
||||||
$this->placedOrder = $order;
|
$this->placedOrder = $order;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,6 +76,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setInvoiceAddress($address)
|
public function setInvoiceAddress($address)
|
||||||
{
|
{
|
||||||
$this->invoiceAddress = $address;
|
$this->invoiceAddress = $address;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,6 +86,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setDeliveryAddress($address)
|
public function setDeliveryAddress($address)
|
||||||
{
|
{
|
||||||
$this->deliveryAddress = $address;
|
$this->deliveryAddress = $address;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,6 +96,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setDeliveryModule($module)
|
public function setDeliveryModule($module)
|
||||||
{
|
{
|
||||||
$this->deliveryModule = $module;
|
$this->deliveryModule = $module;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,6 +106,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setPaymentModule($module)
|
public function setPaymentModule($module)
|
||||||
{
|
{
|
||||||
$this->paymentModule = $module;
|
$this->paymentModule = $module;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,6 +116,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setPostage($postage)
|
public function setPostage($postage)
|
||||||
{
|
{
|
||||||
$this->postage = $postage;
|
$this->postage = $postage;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,6 +126,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setRef($ref)
|
public function setRef($ref)
|
||||||
{
|
{
|
||||||
$this->ref = $ref;
|
$this->ref = $ref;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +136,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setStatus($status)
|
public function setStatus($status)
|
||||||
{
|
{
|
||||||
$this->status = $status;
|
$this->status = $status;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,6 +236,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setCurrency($currency)
|
public function setCurrency($currency)
|
||||||
{
|
{
|
||||||
$this->currency = $currency;
|
$this->currency = $currency;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -238,6 +248,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setLang($lang)
|
public function setLang($lang)
|
||||||
{
|
{
|
||||||
$this->lang = $lang;
|
$this->lang = $lang;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,6 +260,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setCart($cart)
|
public function setCart($cart)
|
||||||
{
|
{
|
||||||
$this->cart = $cart;
|
$this->cart = $cart;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,6 +272,7 @@ class OrderManualEvent extends OrderEvent
|
|||||||
public function setCustomer($customer)
|
public function setCustomer($customer)
|
||||||
{
|
{
|
||||||
$this->customer = $customer;
|
$this->customer = $customer;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ class OrderPaymentEvent extends ActionEvent
|
|||||||
*/
|
*/
|
||||||
protected $response;
|
protected $response;
|
||||||
|
|
||||||
public function __construct(Order $order) {
|
public function __construct(Order $order)
|
||||||
|
{
|
||||||
$this->order = $order;
|
$this->order = $order;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,5 +80,4 @@ class OrderPaymentEvent extends ActionEvent
|
|||||||
return null !== $this->response;
|
return null !== $this->response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Product;
|
namespace Thelia\Core\Event\Product;
|
||||||
|
|
||||||
use Thelia\Core\Event\Product\ProductEvent;
|
|
||||||
|
|
||||||
class ProductToggleVisibilityEvent extends ProductEvent
|
class ProductToggleVisibilityEvent extends ProductEvent
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Product;
|
namespace Thelia\Core\Event\Product;
|
||||||
|
|
||||||
use Thelia\Core\Event\Product\ProductCreateEvent;
|
|
||||||
|
|
||||||
class ProductUpdateEvent extends ProductCreateEvent
|
class ProductUpdateEvent extends ProductCreateEvent
|
||||||
{
|
{
|
||||||
protected $product_id;
|
protected $product_id;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
use Thelia\Model\Template;
|
use Thelia\Model\Template;
|
||||||
class TemplateAddAttributeEvent extends TemplateEvent
|
class TemplateAddAttributeEvent extends TemplateEvent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
use Thelia\Model\Template;
|
use Thelia\Model\Template;
|
||||||
class TemplateAddFeatureEvent extends TemplateEvent
|
class TemplateAddFeatureEvent extends TemplateEvent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
|
|
||||||
class TemplateCreateEvent extends TemplateEvent
|
class TemplateCreateEvent extends TemplateEvent
|
||||||
{
|
{
|
||||||
protected $template_name;
|
protected $template_name;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
use Thelia\Model\Template;
|
use Thelia\Model\Template;
|
||||||
|
|
||||||
class TemplateDeleteAttributeEvent extends TemplateEvent
|
class TemplateDeleteAttributeEvent extends TemplateEvent
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
|
|
||||||
class TemplateDeleteEvent extends TemplateEvent
|
class TemplateDeleteEvent extends TemplateEvent
|
||||||
{
|
{
|
||||||
protected $template_id;
|
protected $template_id;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateEvent;
|
|
||||||
use Thelia\Model\Template;
|
use Thelia\Model\Template;
|
||||||
|
|
||||||
class TemplateDeleteFeatureEvent extends TemplateEvent
|
class TemplateDeleteFeatureEvent extends TemplateEvent
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Event\Template;
|
namespace Thelia\Core\Event\Template;
|
||||||
|
|
||||||
use Thelia\Core\Event\Template\TemplateCreateEvent;
|
|
||||||
|
|
||||||
class TemplateUpdateEvent extends TemplateCreateEvent
|
class TemplateUpdateEvent extends TemplateCreateEvent
|
||||||
{
|
{
|
||||||
protected $template_id;
|
protected $template_id;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
|||||||
use Symfony\Component\HttpKernel\KernelEvents;
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class RequestListener
|
* Class RequestListener
|
||||||
* @package Thelia\Core\EventListener
|
* @package Thelia\Core\EventListener
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ namespace Thelia\Core\Security\Authentication;
|
|||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Security\UserProvider\AdminUserProvider;
|
use Thelia\Core\Security\UserProvider\AdminUserProvider;
|
||||||
|
|
||||||
use Thelia\Form\AdminLogin;
|
use Thelia\Form\AdminLogin;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Security\Authentication;
|
namespace Thelia\Core\Security\Authentication;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Security\UserProvider\TokenUserProvider;
|
use Thelia\Core\Security\UserProvider\TokenUserProvider;
|
||||||
use Thelia\Core\Security\Exception\TokenAuthenticationException;
|
use Thelia\Core\Security\Exception\TokenAuthenticationException;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Security\Authentication;
|
namespace Thelia\Core\Security\Authentication;
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Thelia\Core\Security\UserProvider\UserProviderInterface;
|
use Thelia\Core\Security\UserProvider\UserProviderInterface;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Security\UserProvider;
|
namespace Thelia\Core\Security\UserProvider;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Model\AdminQuery;
|
use Thelia\Model\AdminQuery;
|
||||||
|
|
||||||
class AdminUserProvider implements UserProviderInterface
|
class AdminUserProvider implements UserProviderInterface
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Security\UserProvider;
|
namespace Thelia\Core\Security\UserProvider;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Model\CustomerQuery;
|
use Thelia\Model\CustomerQuery;
|
||||||
class CustomerUserProvider implements UserProviderInterface
|
class CustomerUserProvider implements UserProviderInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Template\Element;
|
namespace Thelia\Core\Template\Element;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Template\Loop\Argument\Argument;
|
use Thelia\Core\Template\Loop\Argument\Argument;
|
||||||
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
||||||
use Thelia\Model\Tools\ModelCriteriaTools;
|
use Thelia\Model\Tools\ModelCriteriaTools;
|
||||||
|
|||||||
@@ -337,8 +337,7 @@ abstract class BaseLoop
|
|||||||
public function count()
|
public function count()
|
||||||
{
|
{
|
||||||
$hash = $this->args->getHash();
|
$hash = $this->args->getHash();
|
||||||
if(false === isset(self::$cacheCount[$hash]))
|
if (false === isset(self::$cacheCount[$hash])) {
|
||||||
{
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
if ($this instanceof PropelSearchLoopInterface) {
|
if ($this instanceof PropelSearchLoopInterface) {
|
||||||
$searchModelCriteria = $this->buildModelCriteria();
|
$searchModelCriteria = $this->buildModelCriteria();
|
||||||
@@ -368,8 +367,7 @@ abstract class BaseLoop
|
|||||||
public function exec(&$pagination)
|
public function exec(&$pagination)
|
||||||
{
|
{
|
||||||
$hash = $this->args->getHash();
|
$hash = $this->args->getHash();
|
||||||
if(false === isset(self::$cacheLoopResult[$hash]))
|
if (false === isset(self::$cacheLoopResult[$hash])) {
|
||||||
{
|
|
||||||
if ($this instanceof PropelSearchLoopInterface) {
|
if ($this instanceof PropelSearchLoopInterface) {
|
||||||
$searchModelCriteria = $this->buildModelCriteria();
|
$searchModelCriteria = $this->buildModelCriteria();
|
||||||
if (null === $searchModelCriteria) {
|
if (null === $searchModelCriteria) {
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ namespace Thelia\Core\Template\Element;
|
|||||||
use Propel\Runtime\Collection\ObjectCollection;
|
use Propel\Runtime\Collection\ObjectCollection;
|
||||||
use Propel\Runtime\Util\PropelModelPager;
|
use Propel\Runtime\Util\PropelModelPager;
|
||||||
|
|
||||||
|
|
||||||
class LoopResult implements \Iterator
|
class LoopResult implements \Iterator
|
||||||
{
|
{
|
||||||
private $position;
|
private $position;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Template\Loop;
|
namespace Thelia\Core\Template\Loop;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use Propel\Runtime\ActiveQuery\Criteria;
|
use Propel\Runtime\ActiveQuery\Criteria;
|
||||||
use Thelia\Core\Template\Element\LoopResult;
|
use Thelia\Core\Template\Element\LoopResult;
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Template\Loop;
|
namespace Thelia\Core\Template\Loop;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use Propel\Runtime\ActiveQuery\Criteria;
|
use Propel\Runtime\ActiveQuery\Criteria;
|
||||||
use Thelia\Core\Template\Element\LoopResult;
|
use Thelia\Core\Template\Element\LoopResult;
|
||||||
|
|
||||||
|
|||||||
@@ -194,7 +194,6 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
{
|
{
|
||||||
foreach ($loopResult->getResultDataCollection() as $category) {
|
foreach ($loopResult->getResultDataCollection() as $category) {
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* no cause pagination lost :
|
* no cause pagination lost :
|
||||||
* if ($this->getNotEmpty() && $category->countAllProducts() == 0) continue;
|
* if ($this->getNotEmpty() && $category->countAllProducts() == 0) continue;
|
||||||
@@ -254,7 +253,6 @@ class Category extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$loopResult->addRow($loopResultRow);
|
$loopResult->addRow($loopResultRow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ use Thelia\Model\CountryQuery;
|
|||||||
use Thelia\Module\BaseModule;
|
use Thelia\Module\BaseModule;
|
||||||
use Thelia\Module\DeliveryModuleInterface;
|
use Thelia\Module\DeliveryModuleInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Delivery
|
* Class Delivery
|
||||||
* @package Thelia\Core\Template\Loop
|
* @package Thelia\Core\Template\Loop
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ class Lang extends BaseLoop implements PropelSearchLoopInterface
|
|||||||
$search->filterById($exclude, Criteria::NOT_IN);
|
$search->filterById($exclude, Criteria::NOT_IN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$orders = $this->getOrder();
|
$orders = $this->getOrder();
|
||||||
|
|
||||||
foreach ($orders as $order) {
|
foreach ($orders as $order) {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ abstract class AbstractSmartyPlugin
|
|||||||
|
|
||||||
$array = explode(',', $commaSeparatedValues);
|
$array = explode(',', $commaSeparatedValues);
|
||||||
|
|
||||||
if (array_walk($array, function(&$item) {
|
if (array_walk($array, function (&$item) {
|
||||||
$item = strtoupper(trim($item));
|
$item = strtoupper(trim($item));
|
||||||
})) {
|
})) {
|
||||||
return $array;
|
return $array;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Template\Smarty\Assets;
|
namespace Thelia\Core\Template\Smarty\Assets;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Log\Tlog;
|
|
||||||
use Thelia\Tools\URL;
|
use Thelia\Tools\URL;
|
||||||
use Thelia\Core\Template\Assets\AssetManagerInterface;
|
use Thelia\Core\Template\Assets\AssetManagerInterface;
|
||||||
|
|
||||||
|
|||||||
@@ -109,8 +109,7 @@ class Form extends AbstractSmartyPlugin
|
|||||||
if (null != $form) {
|
if (null != $form) {
|
||||||
// Re-use the form
|
// Re-use the form
|
||||||
$instance = $form;
|
$instance = $form;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Create a new one
|
// Create a new one
|
||||||
$class = new \ReflectionClass($formClass);
|
$class = new \ReflectionClass($formClass);
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,8 @@ use \Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|||||||
|
|
||||||
use \Smarty;
|
use \Smarty;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Template\ParserInterface;
|
use Thelia\Core\Template\ParserInterface;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Template\Exception\ResourceNotFoundException;
|
use Thelia\Core\Template\Exception\ResourceNotFoundException;
|
||||||
use Thelia\Core\Template\ParserContext;
|
use Thelia\Core\Template\ParserContext;
|
||||||
use Thelia\Core\Template\TemplateDefinition;
|
use Thelia\Core\Template\TemplateDefinition;
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ use Symfony\Component\Config\Loader\LoaderInterface;
|
|||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
||||||
|
|
||||||
use Thelia\Core\Bundle;
|
|
||||||
use Thelia\Core\Event\TheliaEvents;
|
use Thelia\Core\Event\TheliaEvents;
|
||||||
use Thelia\Config\DatabaseConfiguration;
|
use Thelia\Config\DatabaseConfiguration;
|
||||||
use Thelia\Config\DefinePropel;
|
use Thelia\Config\DefinePropel;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
class TheliaContainerBuilder extends ContainerBuilder
|
class TheliaContainerBuilder extends ContainerBuilder
|
||||||
{
|
{
|
||||||
|
|
||||||
public function compile(){}
|
public function compile() {}
|
||||||
|
|
||||||
public function customCompile()
|
public function customCompile()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ class BaseFacade implements FacadeInterface
|
|||||||
public function getCartTotalTaxPrice()
|
public function getCartTotalTaxPrice()
|
||||||
{
|
{
|
||||||
$taxCountry = $this->getContainer()->get('thelia.taxEngine')->getDeliveryCountry();
|
$taxCountry = $this->getContainer()->get('thelia.taxEngine')->getDeliveryCountry();
|
||||||
|
|
||||||
return $this->getCart()->getTaxedAmount($taxCountry);
|
return $this->getCart()->getTaxedAmount($taxCountry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ use Thelia\Coupon\FacadeInterface;
|
|||||||
use Thelia\Condition\ConditionCollection;
|
use Thelia\Condition\ConditionCollection;
|
||||||
use Thelia\Condition\ConditionOrganizerInterface;
|
use Thelia\Condition\ConditionOrganizerInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assist in writing a CouponInterface
|
* Assist in writing a CouponInterface
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Coupon\Type;
|
namespace Thelia\Coupon\Type;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allow to remove an amount from the checkout total
|
* Allow to remove an amount from the checkout total
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ namespace Thelia\Coupon\Type;
|
|||||||
|
|
||||||
use Thelia\Coupon\FacadeInterface;
|
use Thelia\Coupon\FacadeInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package Coupon
|
* @package Coupon
|
||||||
* @author Guillaume MOREL <gmorel@openstudio.fr>
|
* @author Guillaume MOREL <gmorel@openstudio.fr>
|
||||||
@@ -104,7 +103,6 @@ class RemoveXPercent extends CouponAbstract
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return round($this->facade->getCartTotalTaxPrice() * $this->percentage/100, 2);
|
return round($this->facade->getCartTotalTaxPrice() * $this->percentage/100, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
namespace Thelia\Exception;
|
namespace Thelia\Exception;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class CustomerException
|
* Class CustomerException
|
||||||
* @package Thelia\Exception
|
* @package Thelia\Exception
|
||||||
|
|||||||
@@ -118,12 +118,13 @@ class AdministratorCreationForm extends BaseForm
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getLocaleList() {
|
protected function getLocaleList()
|
||||||
|
{
|
||||||
$locales = array();
|
$locales = array();
|
||||||
|
|
||||||
$list = LangQuery::create()->find();
|
$list = LangQuery::create()->find();
|
||||||
|
|
||||||
foreach($list as $item) {
|
foreach ($list as $item) {
|
||||||
$locales[$item->getLocale()] = $item->getLocale();
|
$locales[$item->getLocale()] = $item->getLocale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
namespace Thelia\Form\Area;
|
namespace Thelia\Form\Area;
|
||||||
use Symfony\Component\Validator\Constraints\GreaterThan;
|
use Symfony\Component\Validator\Constraints\GreaterThan;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class AreaModificationForm
|
* Class AreaModificationForm
|
||||||
* @package Thelia\Form\Shipping
|
* @package Thelia\Form\Shipping
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
namespace Thelia\Form;
|
namespace Thelia\Form;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\GreaterThan;
|
use Symfony\Component\Validator\Constraints\GreaterThan;
|
||||||
use Thelia\Form\StandardDescriptionFieldsTrait;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ContentModificationForm
|
* Class ContentModificationForm
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace Thelia\Form;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Constraints;
|
use Symfony\Component\Validator\Constraints;
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\Validator\ConstraintViolation;
|
use Symfony\Component\Validator\ConstraintViolation;
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
namespace Thelia\Form\Image;
|
namespace Thelia\Form\Image;
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
use Thelia\Form\BaseForm;
|
use Thelia\Form\BaseForm;
|
||||||
|
|||||||
@@ -22,10 +22,8 @@
|
|||||||
/*************************************************************************************/
|
/*************************************************************************************/
|
||||||
namespace Thelia\Form;
|
namespace Thelia\Form;
|
||||||
|
|
||||||
|
|
||||||
use Thelia\Core\Translation\Translator;
|
use Thelia\Core\Translation\Translator;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class MailingSystemModificationForm
|
* Class MailingSystemModificationForm
|
||||||
* @package Thelia\Form
|
* @package Thelia\Form
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ class TaxCreationForm extends BaseForm
|
|||||||
|
|
||||||
protected $taxEngine = null;
|
protected $taxEngine = null;
|
||||||
|
|
||||||
public function __construct(Request $request, $type= "form", $data = array(), $options = array(), TaxEngine $taxEngine = null) {
|
public function __construct(Request $request, $type= "form", $data = array(), $options = array(), TaxEngine $taxEngine = null)
|
||||||
|
{
|
||||||
$this->taxEngine = $taxEngine;
|
$this->taxEngine = $taxEngine;
|
||||||
|
|
||||||
parent::__construct($request, $type, $data, $options);
|
parent::__construct($request, $type, $data, $options);
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ abstract class AbstractTlogDestination
|
|||||||
|
|
||||||
// Appliquer les changements
|
// Appliquer les changements
|
||||||
if ($apply_changes) $this->configure();
|
if ($apply_changes) $this->configure();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,11 +46,13 @@ class TlogDestinationFile extends AbstractTlogDestination
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getFilePath() {
|
protected function getFilePath()
|
||||||
|
{
|
||||||
return $this->getConfig(self::VAR_PATH_FILE);
|
return $this->getConfig(self::VAR_PATH_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getOpenMode() {
|
protected function getOpenMode()
|
||||||
|
{
|
||||||
return strtolower($this->getConfig(self::VAR_MODE, self::VALEUR_MODE_DEFAULT)) == 'a' ? 'a' : 'w';
|
return strtolower($this->getConfig(self::VAR_MODE, self::VALEUR_MODE_DEFAULT)) == 'a' ? 'a' : 'w';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user