refactor shipping object into area
This commit is contained in:
@@ -21,18 +21,18 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Form\Shipping;
|
||||
namespace Thelia\Form\Area;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use Thelia\Form\BaseForm;
|
||||
|
||||
|
||||
/**
|
||||
* Class ShippingCreateForm
|
||||
* Class AreaCreateForm
|
||||
* @package Thelia\Form\Shipping
|
||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||
*/
|
||||
class ShippingCreateForm extends BaseForm
|
||||
class AreaCreateForm extends BaseForm
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -74,6 +74,6 @@ class ShippingCreateForm extends BaseForm
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return 'thelia_shipping_creation';
|
||||
return 'thelia_area_creation';
|
||||
}
|
||||
}
|
||||
@@ -21,16 +21,17 @@
|
||||
/* */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Thelia\Form\Shipping;
|
||||
namespace Thelia\Form\Area;
|
||||
use Symfony\Component\Validator\Constraints\GreaterThan;
|
||||
use Thelia\Form\Area\AreaCreateForm;
|
||||
|
||||
|
||||
/**
|
||||
* Class ShippingModificationForm
|
||||
* Class AreaModificationForm
|
||||
* @package Thelia\Form\Shipping
|
||||
* @author Manuel Raynaud <mraynaud@openstudio.fr>
|
||||
*/
|
||||
class ShippingModificationForm extends ShippingCreateForm
|
||||
class AreaModificationForm extends AreaCreateForm
|
||||
{
|
||||
public function buildForm()
|
||||
{
|
||||
@@ -43,6 +44,6 @@ class ShippingModificationForm extends ShippingCreateForm
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'thelia_shipping_modification';
|
||||
return 'thelia_area_modification';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user