Skip to content

Commit

Permalink
Fix Dwoo version in composer.json + Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MacFJA committed Oct 1, 2017
1 parent 90fed39 commit 3985c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"phptransformers/phptransformer": "~1.0.0",
"dwoo/dwoo": "dev-beta"
"dwoo/dwoo": "^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "~4.6",
Expand Down
6 changes: 1 addition & 5 deletions lib/DwooTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Dwoo\Core;
use Dwoo\Exception;
use Dwoo\Exception\CoreException;
use Dwoo\Template\Str;
use PhpTransformers\PhpTransformer\TransformerInterface;

Expand Down Expand Up @@ -35,7 +34,7 @@ class DwooTransformer implements TransformerInterface
*
* @param array $options The DwooTransformer options
*
* @throws CoreException
* @throws Exception
*/
public function __construct(array $options = array())
{
Expand All @@ -61,7 +60,6 @@ public function __construct(array $options = array())
if (array_key_exists('template-dir', $options)) {
$this->dwoo->setTemplateDir($options['template-dir']);
}

}

/**
Expand All @@ -81,7 +79,6 @@ public function getName()
* @param array $locals The variable to use in template
* @return null|string
*
* @throws CoreException
* @throws Exception
* @throws \Exception
*/
Expand All @@ -97,7 +94,6 @@ public function renderFile($file, array $locals = array())
* @param array $locals The variable to use in template
* @return null|string
*
* @throws CoreException
* @throws Exception
* @throws \Exception
*/
Expand Down

0 comments on commit 3985c1b

Please sign in to comment.