This repository has been archived by the owner on May 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added the basis for new plugin engine. * Fields are generated dinamically, so making new plugins are more easy since now * Added FreePaymentBundle and PaypalWebCheckoutBundle as plugins * Added the basis for new payment engine
- Loading branch information
mmoreram
committed
Jun 8, 2015
1 parent
92c314a
commit a9b3002
Showing
94 changed files
with
1,241 additions
and
746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,10 @@ | |
}, | ||
"autoload": { | ||
"psr-4": { | ||
"": "src/", | ||
"": [ | ||
"src/", | ||
"plugin/" | ||
], | ||
"Elcodi\\": [ | ||
"src/Elcodi" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
src/Elcodi/Admin/ConfigurationBundle/Resources/config/formTypes.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,15 @@ | |
* @author Elcodi Team <[email protected]> | ||
*/ | ||
|
||
namespace Elcodi\Common\PaymentBridgeBundle; | ||
namespace Elcodi\Admin\PaymentBundle; | ||
|
||
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; | ||
use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
|
||
use Elcodi\Common\PaymentBridgeBundle\DependencyInjection\PaymentBridgeExtension; | ||
|
||
/** | ||
* Class PaymentBridgeBundle | ||
* Class AdminPaymentBundle | ||
*/ | ||
class PaymentBridgeBundle extends Bundle | ||
class AdminPaymentBundle extends Bundle | ||
{ | ||
/** | ||
* Returns the bundle's container extension. | ||
|
@@ -34,6 +32,6 @@ class PaymentBridgeBundle extends Bundle | |
*/ | ||
public function getContainerExtension() | ||
{ | ||
return new PaymentBridgeExtension(); | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,13 @@ | |
* @author Elcodi Team <[email protected]> | ||
*/ | ||
|
||
namespace Elcodi\Admin\ConfigurationBundle\Controller; | ||
namespace Elcodi\Admin\PaymentBundle\Controller; | ||
|
||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | ||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | ||
|
||
use Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController; | ||
use Elcodi\Component\Plugin\PluginTypes; | ||
|
||
/** | ||
* Class Controller for payment configuration | ||
|
@@ -39,19 +39,22 @@ class PaymentController extends AbstractAdminController | |
* | ||
* @Route( | ||
* path = "", | ||
* name = "admin_payment_configuration_list" | ||
* name = "admin_payment_list", | ||
* methods = {"GET"} | ||
* ) | ||
* @Template | ||
* @Method({"GET"}) | ||
* @Template("AdminPluginBundle:Plugin:list.html.twig") | ||
*/ | ||
public function listAction() | ||
{ | ||
$enabledPaymentMethods = $this | ||
->container | ||
->getParameter('store.payment_bridge.enabled_methods'); | ||
$plugins = $this | ||
->get('elcodi.repository.plugin') | ||
->findBy([ | ||
'type' => PluginTypes::TYPE_PLUGIN, | ||
'category' => 'payment', | ||
]); | ||
|
||
return [ | ||
'enabledPaymentMethods' => $enabledPaymentMethods, | ||
'plugins' => $plugins, | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
AdminPaymentBundle: | ||
resource: "@AdminPaymentBundle/Controller/" | ||
type: annotation |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,21 +15,21 @@ | |
* @author Elcodi Team <[email protected]> | ||
*/ | ||
|
||
namespace Elcodi\Admin\ConfigurationBundle\DependencyInjection; | ||
namespace Elcodi\Bridge\PaymentSuiteBridgeBundle\DependencyInjection; | ||
|
||
use Elcodi\Bundle\CoreBundle\DependencyInjection\Abstracts\AbstractExtension; | ||
|
||
/** | ||
* Class AdminConfigurationExtension | ||
* Class ElcodiPaymentSuiteBridgeExtension | ||
*/ | ||
class AdminConfigurationExtension extends AbstractExtension | ||
class ElcodiPaymentSuiteBridgeExtension extends AbstractExtension | ||
{ | ||
/** | ||
* @var string | ||
* | ||
* Extension name | ||
*/ | ||
const EXTENSION_NAME = 'admin_configuration'; | ||
const EXTENSION_NAME = 'elcodi_payment_suite_bridge'; | ||
|
||
/** | ||
* Get the Config file location | ||
|
@@ -44,20 +44,15 @@ public function getConfigFilesLocation() | |
/** | ||
* Config files to load | ||
* | ||
* return array( | ||
* 'file1.yml', | ||
* 'file2.yml', | ||
* ... | ||
* ); | ||
* | ||
* @param array $config Config | ||
* @param array $config Config array | ||
* | ||
* @return array Config files | ||
*/ | ||
public function getConfigFiles(array $config) | ||
{ | ||
return [ | ||
'formTypes', | ||
'services', | ||
'eventListeners', | ||
]; | ||
} | ||
|
||
|
@@ -68,6 +63,6 @@ public function getConfigFiles(array $config) | |
*/ | ||
public function getAlias() | ||
{ | ||
return self::EXTENSION_NAME; | ||
return static::EXTENSION_NAME; | ||
} | ||
} |
Oops, something went wrong.