forked from schmittjoh/JMSPaymentCoreBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brought up to speed with symfony HEAD
- Loading branch information
1 parent
9b9fd32
commit 9031f5b
Showing
74 changed files
with
678 additions
and
611 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Cryptography; | ||
namespace JMS\Payment\CoreBundle\Cryptography; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Cryptography; | ||
namespace JMS\Payment\CoreBundle\Cryptography; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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,38 @@ | ||
<?php | ||
|
||
namespace JMS\Payment\CoreBundle\DependencyInjection\Compiler; | ||
|
||
use Symfony\Component\DependencyInjection\Reference; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
|
||
/* | ||
* Copyright 2011 Johannes M. Schmitt <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
class AddPaymentPluginsPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container) | ||
{ | ||
if (!$container->hasDefinition('payment.plugin_controller')) { | ||
return; | ||
} | ||
|
||
$def = $container->getDefinition('payment.plugin_controller'); | ||
foreach ($container->findTaggedServiceIds('payment.plugin') as $id => $attr) { | ||
$def->addMethodCall('addPlugin', array(new Reference($id))); | ||
} | ||
} | ||
} |
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,35 @@ | ||
<?php | ||
|
||
namespace JMS\Payment\CoreBundle\DependencyInjection; | ||
|
||
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
class Configuration | ||
{ | ||
public function getConfigTree() | ||
{ | ||
$tb = new TreeBuilder(); | ||
|
||
return $tb | ||
->root('jms_payment_core', 'array') | ||
->scalarNode('secret')->isRequired()->cannotBeEmpty()->end() | ||
->end() | ||
->buildTree(); | ||
} | ||
} |
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,44 @@ | ||
<?php | ||
|
||
namespace JMS\Payment\CoreBundle\DependencyInjection; | ||
|
||
use JMS\Payment\CoreBundle\DependencyInjection\Configuration; | ||
use Symfony\Component\Config\FileLocator; | ||
use Symfony\Component\Config\Definition\Processor; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; | ||
use Symfony\Component\DependencyInjection\Reference; | ||
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
class JMSPaymentCoreExtension extends Extension | ||
{ | ||
public function load(array $configs, ContainerBuilder $container) | ||
{ | ||
$xmlLoader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | ||
$xmlLoader->load('payment.xml'); | ||
|
||
$configuration = new Configuration(); | ||
$processor = new Processor(); | ||
$config = $processor->process($configuration->getConfigTree(), $configs); | ||
|
||
if (isset($config['secret'])) { | ||
$container->setParameter('payment.encryption_service.secret', $config['secret']); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Entity; | ||
namespace JMS\Payment\CoreBundle\Entity; | ||
|
||
use Bundle\JMS\Payment\CorePaymentBundle\Model\ExtendedDataInterface; | ||
use JMS\Payment\CoreBundle\Model\ExtendedDataInterface; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Entity; | ||
namespace JMS\Payment\CoreBundle\Entity; | ||
|
||
use Bundle\JMS\Payment\CorePaymentBundle\Model\CreditInterface; | ||
use Bundle\JMS\Payment\CorePaymentBundle\Model\ExtendedDataInterface; | ||
use Bundle\JMS\Payment\CorePaymentBundle\Model\FinancialTransactionInterface; | ||
use Bundle\JMS\Payment\CorePaymentBundle\Model\PaymentInterface; | ||
use JMS\Payment\CoreBundle\Model\CreditInterface; | ||
use JMS\Payment\CoreBundle\Model\ExtendedDataInterface; | ||
use JMS\Payment\CoreBundle\Model\FinancialTransactionInterface; | ||
use JMS\Payment\CoreBundle\Model\PaymentInterface; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Exception; | ||
namespace JMS\Payment\CoreBundle\Exception; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Model; | ||
namespace JMS\Payment\CoreBundle\Model; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Model; | ||
namespace JMS\Payment\CoreBundle\Model; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Model; | ||
namespace JMS\Payment\CoreBundle\Model; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Bundle\JMS\Payment\CorePaymentBundle\Model; | ||
namespace JMS\Payment\CoreBundle\Model; | ||
|
||
/* | ||
* Copyright 2010 Johannes M. Schmitt <[email protected]> | ||
|
Oops, something went wrong.