Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrenth committed Nov 22, 2015
2 parents 85845e2 + 8039fad commit a918451
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
phpunit.xml
vendor/
composer.lock
.idea/*
.idea/*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ matrix:
- php: hhvm
notifications:
email:
- [email protected]
- [email protected]
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog


## 1.0.1
* Update code style
* Removed `encoding` configuration parameter
* Add badges to README

## 1.0.0
* Initial version of the `rdrenth/twig-extension-bundle` bundle.
1 change: 0 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Rdrenth\Bundle\TwigExtensionBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\NodeBuilder;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
Expand Down
3 changes: 1 addition & 2 deletions DependencyInjection/RdrenthTwigExtensionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ private function registerStringyConfiguration(array $config, ContainerBuilder $c

$definition = $container->findDefinition('rdrenth_twig_extension.stringy');
$definition->addTag('twig.extension')
->addArgument($filters)
->addArgument($config['encoding']);
->addArgument($filters);
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
RdrenthTwigExtensionBundle
=============

[![Build Status](https://travis-ci.org/rdrenth/twig-extension-bundle.svg?branch=master)](https://travis-ci.org/rdrenth/twig-extension-bundle) [![Latest Stable Version](https://poser.pugx.org/rdrenth/twig-extension-bundle/v/stable)](https://packagist.org/packages/rdrenth/twig-extension-bundle) [![Total Downloads](https://poser.pugx.org/rdrenth/twig-extension-bundle/downloads)](https://packagist.org/packages/rdrenth/twig-extension-bundle) [![Latest Unstable Version](https://poser.pugx.org/rdrenth/twig-extension-bundle/v/unstable)](https://packagist.org/packages/rdrenth/twig-extension-bundle) [![License](https://poser.pugx.org/rdrenth/twig-extension-bundle/license)](https://packagist.org/packages/rdrenth/twig-extension-bundle) [![SensioLabsInsight](https://insight.sensiolabs.com/projects/0545e7a1-6179-48df-8628-9e5b0afc13bb/mini.png)](https://insight.sensiolabs.com/projects/0545e7a1-6179-48df-8628-9e5b0afc13bb)

## About
This is a Symfony2 Bundle that provides you with some extensions to Twig!

Expand Down
2 changes: 1 addition & 1 deletion Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
<service id="rdrenth_twig_extension.stringy" class="%rdrenth_twig_extension.stringy.class%"/>
</services>

</container>
</container>
11 changes: 2 additions & 9 deletions Twig/StringyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,14 @@ class StringyExtension extends \Twig_Extension
*/
private $filters;

/**
* @type string|null
*/
private $encoding;

/**
* StringyExtension constructor.
*
* @param array $filters
* @param null|string $encoding
*/
public function __construct(array $filters = array(), $encoding = null)
public function __construct(array $filters = array())
{
$this->filters = $filters;
$this->encoding = $encoding;
}

/**
Expand All @@ -57,4 +50,4 @@ public function getFilters()

return $filters;
}
}
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
<directory>vendor</directory>
</blacklist>
</filter>
</phpunit>
</phpunit>

0 comments on commit a918451

Please sign in to comment.