Skip to content

Commit

Permalink
Rename mailchimp to mail_chimp
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Aug 22, 2013
1 parent 5c9b815 commit 8025c7b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('zfr_mailchimp');
$rootNode = $treeBuilder->root('zfr_mail_chimp');

$rootNode
->children()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container)

foreach (array('api_key', 'default_list', 'async') as $attribute) {
if (isset($config[$attribute])) {
$container->setParameter('zfr_mailchimp.' . $attribute, $config[$attribute]);
$container->setParameter('zfr_mail_chimp.' . $attribute, $config[$attribute]);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To configure the bundle, add the following to your app/config/config.yml:

``` yml
# app/config/config.yml
zfr_mailchimp:
zfr_mail_chimp:
api_key: #your MailChimp API key here (required)
async: #use Guzzle's Asyncronous library (default: false)
```
Expand All @@ -62,5 +62,5 @@ zfr_mailchimp:
Lastly, call the client using Symfony's DI Container:
```php
$mailchimp = $this->get('zfr_mailchimp')->getClient();
$mailchimp = $this->get('zfr_mail_chimp')->getClient();
```
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ parameters:
services:
zfr_mailchimp:
class: ZfrMailChimpBundle\Services\MailChimpHandler
arguments: [%zfr_mailchimp.api_key%,%zfr_mailchimp.async%]
arguments: [%zfr_mail_chimp.api_key%,%zfr_mail_chimp.async%]
File renamed without changes.

0 comments on commit 8025c7b

Please sign in to comment.