process module toggle activation

This commit is contained in:
Manuel Raynaud
2013-10-17 18:50:00 +02:00
parent d25ad53d5a
commit 6d791f5bf7
7 changed files with 99 additions and 63 deletions

View File

@@ -23,6 +23,7 @@
namespace FakeCB;
use Propel\Runtime\Connection\ConnectionInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
use Thelia\Model\Base\ModuleImageQuery;
@@ -59,12 +60,8 @@ class FakeCB extends BaseModule implements PaymentModuleInterface
// TODO: Implement pay() method.
}
public function install()
{
}
public function afterActivation()
public function postActivation(ConnectionInterface $con = null)
{
/* insert the images from image folder if first module activation */
$module = $this->getModuleModel();
@@ -82,10 +79,6 @@ class FakeCB extends BaseModule implements PaymentModuleInterface
);
}
public function destroy()
{
// TODO: Implement destroy() method.
}
public function getCode()
{