From fd2e5725199468b005096350f8928342524f4bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Po=C5=82a=C4=87?= Date: Thu, 5 May 2016 20:24:45 +0200 Subject: [PATCH] Move extension to main namespace --- Extension/LambdaExtension.php => LambdaExtension.php | 2 +- README.md | 2 +- Tests/IntegrationTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename Extension/LambdaExtension.php => LambdaExtension.php (98%) diff --git a/Extension/LambdaExtension.php b/LambdaExtension.php similarity index 98% rename from Extension/LambdaExtension.php rename to LambdaExtension.php index c8f2c34..3e19953 100644 --- a/Extension/LambdaExtension.php +++ b/LambdaExtension.php @@ -8,7 +8,7 @@ * file that was distributed with this source code. */ -namespace DPolac\TwigLambda\Extension; +namespace DPolac\TwigLambda; use Underscore\Types\Arrays; diff --git a/README.md b/README.md index 02dd3be..ac7efda 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ composer require dpolac/twig-lambda ### Add the extension to Twig: ```php -$twig->addExtension(new \DPolac\TwigLambda\Extension\LambdaExtension()); +$twig->addExtension(new \DPolac\TwigLambda\LambdaExtension()); ``` ---------------------------------------------------------------- diff --git a/Tests/IntegrationTest.php b/Tests/IntegrationTest.php index 99f18d0..453bc7b 100644 --- a/Tests/IntegrationTest.php +++ b/Tests/IntegrationTest.php @@ -2,7 +2,7 @@ namespace DPolac\TwigLambda\Tests; -use DPolac\TwigLambda\Extension\LambdaExtension; +use DPolac\TwigLambda\LambdaExtension; class IntegrationTest extends \Twig_Test_IntegrationTestCase {