You've already forked symfony-billing
add services && controller && first configuration tree builder
This commit is contained in:
25
BillingBundle/DependencyInjection/Configuration.php
Normal file
25
BillingBundle/DependencyInjection/Configuration.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Acme\SocialBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||
use Symfony\Component\Config\Definition\ConfigurationInterface;
|
||||
|
||||
class Configuration implements ConfigurationInterface
|
||||
{
|
||||
public function getConfigTreeBuilder()
|
||||
{
|
||||
$treeBuilder = new TreeBuilder('billing');
|
||||
|
||||
$treeBuilder->getRootNode()->children()
|
||||
->arrayNode('stripe')->children()
|
||||
->scalarNode('stripe_api_key_pub')->end()
|
||||
->scalarNode('stripe_api_key')->end()
|
||||
->scalarNode('stripe_webhook_key')->end()
|
||||
->end()
|
||||
->end();
|
||||
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user