From 8ba9d0d257222019fdc8e9a0a4249602e6f1c087 Mon Sep 17 00:00:00 2001 From: Cristiano Cinotti Date: Thu, 28 Jul 2016 07:47:11 +0200 Subject: [PATCH] Add appropriate vendor to namespace --- composer.json | 4 ++-- resources/template/icon_button.html.twig | 2 -- src/IconButtonTypeExtension.php | 2 +- tests/DataProviderTrait.php | 2 +- tests/IconButtonExtensionTestCase.php | 4 ++-- tests/IconButtonTypeExtensionTest.php | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index fdf8e4e..a350528 100644 --- a/composer.json +++ b/composer.json @@ -23,12 +23,12 @@ }, "autoload": { "psr-4": { - "IconButton\\": "src" + "cristianoc72\\IconButton\\": "src" } }, "autoload-dev": { "psr-4": { - "IconButton\\Tests\\": "tests" + "cristianoc72\\IconButton\\Tests\\": "tests" } } } diff --git a/resources/template/icon_button.html.twig b/resources/template/icon_button.html.twig index b75d5f5..9363133 100644 --- a/resources/template/icon_button.html.twig +++ b/resources/template/icon_button.html.twig @@ -1,5 +1,3 @@ -{% use "bootstrap_3_layout.html.twig" %} - {% block button_widget -%} {%- if label is empty -%} {%- if label_format is not empty -%} diff --git a/src/IconButtonTypeExtension.php b/src/IconButtonTypeExtension.php index 6a5c91a..5047a1b 100644 --- a/src/IconButtonTypeExtension.php +++ b/src/IconButtonTypeExtension.php @@ -7,7 +7,7 @@ * @license MIT License */ -namespace IconButton; +namespace cristianoc72\IconButton; use Symfony\Component\Form\AbstractTypeExtension; use Symfony\Component\Form\Extension\Core\Type\ButtonType; diff --git a/tests/DataProviderTrait.php b/tests/DataProviderTrait.php index 6703809..53db9f1 100644 --- a/tests/DataProviderTrait.php +++ b/tests/DataProviderTrait.php @@ -7,7 +7,7 @@ * @license MIT License */ -namespace IconButton\Tests; +namespace cristianoc72\IconButton\Tests; use Symfony\Component\Form\Extension\Core\Type\ButtonType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; diff --git a/tests/IconButtonExtensionTestCase.php b/tests/IconButtonExtensionTestCase.php index 110ab8b..30218bc 100644 --- a/tests/IconButtonExtensionTestCase.php +++ b/tests/IconButtonExtensionTestCase.php @@ -7,9 +7,9 @@ * @license MIT License */ -namespace IconButton\Tests; +namespace cristianoc72\IconButton\Tests; -use IconButton\IconButtonTypeExtension; +use cristianoc72\IconButton\IconButtonTypeExtension; use Symfony\Bridge\Twig\Extension\FormExtension; use Symfony\Bridge\Twig\Extension\TranslationExtension; use Symfony\Bridge\Twig\Form\TwigRenderer; diff --git a/tests/IconButtonTypeExtensionTest.php b/tests/IconButtonTypeExtensionTest.php index e63389f..8801fe2 100644 --- a/tests/IconButtonTypeExtensionTest.php +++ b/tests/IconButtonTypeExtensionTest.php @@ -7,7 +7,7 @@ * @license MIT License */ -namespace IconButton\Tests; +namespace cristianoc72\IconButton\Tests; use Symfony\Component\Form\Extension\Core\Type\ButtonType;