Merge branch 'cleanmaster' into modules

This commit is contained in:
Etienne Roudeix
2013-12-16 14:33:15 +01:00
3 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
namespace Thelia\Core\Security\Exception; namespace Thelia\Core\Security\Exception;
class RessourceException extends \RuntimeException class ResourceException extends \RuntimeException
{ {
const UNKNOWN_EXCEPTION = 0; const UNKNOWN_EXCEPTION = 0;

View File

@@ -23,10 +23,12 @@
namespace Thelia\Module; namespace Thelia\Module;
use Thelia\Model\Order;
interface PaymentModuleInterface extends BaseModuleInterface interface PaymentModuleInterface extends BaseModuleInterface
{ {
/** /**
* @return mixed * @return mixed
*/ */
public function pay(); public function pay(Order $order);
} }

View File

@@ -27,6 +27,7 @@ use Propel\Runtime\Connection\ConnectionInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Thelia\Model\ModuleImageQuery; use Thelia\Model\ModuleImageQuery;
use Thelia\Model\Order;
use Thelia\Module\BaseModule; use Thelia\Module\BaseModule;
use Thelia\Module\PaymentModuleInterface; use Thelia\Module\PaymentModuleInterface;
@@ -55,7 +56,7 @@ class Cheque extends BaseModule implements PaymentModuleInterface
return $this->dispatcher; return $this->dispatcher;
} }
public function pay() public function pay(Order $order)
{ {
// no special process, waiting for the cheque. // no special process, waiting for the cheque.
} }