From 670fbd59c4355802b186517c98e99e19b5c6daa4 Mon Sep 17 00:00:00 2001 From: webeweb Date: Wed, 27 Mar 2024 20:46:07 +0100 Subject: [PATCH] Remove jQuery keyword --- Api/DataTablesColumnInterface.php | 6 +- Api/DataTablesLoopInterface.php | 6 +- Api/DataTablesMappingInterface.php | 6 +- Api/DataTablesOptionsInterface.php | 6 +- Api/DataTablesOrderInterface.php | 6 +- Api/DataTablesRequestInterface.php | 6 +- Api/DataTablesResponseInterface.php | 6 +- Api/DataTablesSearchInterface.php | 6 +- Api/DataTablesWrapperInterface.php | 8 +- Command/AbstractCommand.php | 8 +- Command/ListDataTablesProviderCommand.php | 16 ++-- Controller/AbstractController.php | 48 +++++----- Controller/DataTablesController.php | 36 ++++---- .../DataTablesProviderCompilerPass.php | 12 +-- DependencyInjection/Configuration.php | 24 ++--- ...tension.php => WBWDataTablesExtension.php} | 12 +-- Entity/DataTablesEntityInterface.php | 6 +- Event/DataTablesEvent.php | 32 +++---- Exception/AbstractDataTablesException.php | 6 +- ...yRegisteredDataTablesProviderException.php | 6 +- .../BadDataTablesCSVExporterException.php | 8 +- Exception/BadDataTablesColumnException.php | 6 +- Exception/BadDataTablesEditorException.php | 8 +- .../BadDataTablesRepositoryException.php | 8 +- ...nregisteredDataTablesProviderException.php | 6 +- Factory/DataTablesFactory.php | 38 ++++---- Helper/DataTablesEntityHelper.php | 8 +- Helper/DataTablesExportHelper.php | 6 +- Helper/DataTablesMappingHelper.php | 10 +-- Helper/DataTablesRepositoryHelper.php | 8 +- Helper/DataTablesWrapperHelper.php | 16 ++-- Manager/DataTablesManager.php | 14 +-- Manager/DataTablesManagerTrait.php | 6 +- Model/DataTablesColumn.php | 12 +-- Model/DataTablesEnumerator.php | 14 +-- Model/DataTablesLoop.php | 10 +-- Model/DataTablesMapping.php | 10 +-- Model/DataTablesOptions.php | 8 +- Model/DataTablesOrder.php | 8 +- Model/DataTablesRequest.php | 14 +-- Model/DataTablesResponse.php | 10 +-- Model/DataTablesSearch.php | 8 +- Model/DataTablesWrapper.php | 20 ++--- Model/DataTablesWrapperTrait.php | 8 +- Normalizer/DataTablesNormalizer.php | 10 +-- Provider/AbstractDataTablesProvider.php | 24 ++--- Provider/DataTablesButtonsRendererTrait.php | 28 +++--- Provider/DataTablesCSVExporterInterface.php | 6 +- Provider/DataTablesEditorInterface.php | 8 +- Provider/DataTablesProviderInterface.php | 12 +-- Provider/DataTablesProviderTrait.php | 6 +- Provider/DataTablesRouterInterface.php | 6 +- README.md | 38 ++++---- Renderer/Assets/ColorRendererTrait.php | 6 +- Renderer/Assets/EnabledBadgeRendererTrait.php | 10 +-- Renderer/Assets/EnabledLabelRendererTrait.php | 10 +-- Renderer/Assets/IconRendererTrait.php | 6 +- Renderer/Assets/ImageRendererTrait.php | 6 +- Renderer/CenterAlignedRendererTrait.php | 6 +- Renderer/ColumnWidthInterface.php | 6 +- Renderer/DateTimes/DateRendererTrait.php | 6 +- Renderer/DateTimes/DateTimeRendererTrait.php | 6 +- Renderer/Floats/FloatRendererTrait.php | 6 +- Renderer/RightAlignedRendererTrait.php | 6 +- Renderer/Strings/BoldTextRendererTrait.php | 6 +- .../CenterAlignedTextRendererTrait.php | 6 +- Renderer/Strings/DeletedTextRendererTrait.php | 6 +- .../Strings/InsertedTextRendererTrait.php | 6 +- Renderer/Strings/ItalicTextRendererTrait.php | 6 +- .../JustifiedAlignedTextRendererTrait.php | 6 +- .../Strings/LeftAlignedTextRendererTrait.php | 6 +- Renderer/Strings/MarkedTextRendererTrait.php | 6 +- Renderer/Strings/NoWrapTextRendererTrait.php | 6 +- .../Strings/RightAlignedTextRendererTrait.php | 6 +- Renderer/Strings/SmallTextRendererTrait.php | 6 +- .../StrikethroughTextRendererTrait.php | 6 +- Renderer/Strings/StringWrapperTrait.php | 6 +- .../Strings/UnderlinedTextRendererTrait.php | 6 +- Repository/DataTablesRepositoryInterface.php | 8 +- Repository/DefaultDataTablesRepository.php | 10 +-- Resources/config/assets.yml | 2 +- Resources/config/commands.yml | 6 +- Resources/config/controllers.yml | 10 +-- Resources/config/managers.yml | 4 +- Resources/config/routing.yml | 4 +- Resources/config/routing/datatables.yml | 32 +++---- Resources/config/twig.yml | 4 +- Resources/doc/index.md | 20 ++--- ...ndle.en.yml => WBWDataTablesBundle.en.yml} | 2 +- ...ndle.fr.yml => WBWDataTablesBundle.fr.yml} | 2 +- Resources/views/assets/_functions.html.twig | 6 +- Resources/views/assets/_javascripts.html.twig | 14 +-- Resources/views/assets/_stylesheets.html.twig | 12 +-- Tests/AbstractTestCase.php | 26 +++--- Tests/AbstractWebTestCase.php | 88 +++++++++---------- Tests/Api/DataTablesColumnInterfaceTest.php | 10 +-- Tests/Api/DataTablesOrderInterfaceTest.php | 10 +-- Tests/Api/DataTablesResponseInterfaceTest.php | 10 +-- Tests/Api/DataTablesSearchInterfaceTest.php | 10 +-- .../ListDataTablesProviderCommandTest.php | 16 ++-- Tests/Controller/DataTablesControllerTest.php | 14 +-- Tests/Controller/ViewsControllerTest.php | 8 +- .../DataTablesProviderCompilerPassTest.php | 16 ++-- ...est.php => WBWDataTablesExtensionTest.php} | 34 +++---- Tests/Event/DataTablesEventTest.php | 32 +++---- ...isteredDataTablesProviderExceptionTest.php | 10 +-- .../BadDataTablesCSVExporterExceptionTest.php | 12 +-- .../BadDataTablesColumnExceptionTest.php | 10 +-- .../BadDataTablesEditorExceptionTest.php | 12 +-- .../BadDataTablesRepositoryExceptionTest.php | 12 +-- ...isteredDataTablesProviderExceptionTest.php | 10 +-- Tests/Factory/DataTablesFactoryTest.php | 26 +++--- .../Controller/TestViewsController.php | 10 +-- Tests/Fixtures/Entity/Employee.php | 6 +- Tests/Fixtures/Entity/Office.php | 6 +- .../EventListener/DataTablesEventListener.php | 8 +- .../Factory/TestDataTablesFactory.php | 20 ++--- .../Manager/TestDataTablesManagerTrait.php | 8 +- .../Model/TestDataTablesWrapperTrait.php | 8 +- .../Provider/EmployeeDataTablesProvider.php | 22 ++--- .../Provider/OfficeDataTablesProvider.php | 24 ++--- .../Provider/TestDataTablesProvider.php | 10 +-- .../Provider/TestDataTablesProviderTrait.php | 8 +- .../Assets/TestColorRendererTrait.php | 8 +- .../Assets/TestEnabledBadgeRendererTrait.php | 8 +- .../Assets/TestEnabledLabelRendererTrait.php | 8 +- .../Renderer/Assets/TestIconRendererTrait.php | 8 +- .../Assets/TestImageRendererTrait.php | 8 +- .../DateTimes/TestDateRendererTrait.php | 8 +- .../DateTimes/TestDateTimeRendererTrait.php | 8 +- .../Floats/TestFloatRendererTrait.php | 8 +- .../Strings/TestBoldTextRendererTrait.php | 8 +- .../TestCenterAlignedTextRendererTrait.php | 8 +- .../Strings/TestDeletedTextRendererTrait.php | 8 +- .../Strings/TestInsertedTextRendererTrait.php | 8 +- .../Strings/TestItalicTextRendererTrait.php | 8 +- .../TestJustifiedAlignedTextRendererTrait.php | 8 +- .../TestLeftAlignedTextRendererTrait.php | 8 +- .../Strings/TestMarkedTextRendererTrait.php | 8 +- .../Strings/TestNoWrapTextRendererTrait.php | 8 +- .../TestRightAlignedTextRendererTrait.php | 8 +- .../Strings/TestSmallTextRendererTrait.php | 8 +- .../TestStrikethroughTextRendererTrait.php | 8 +- .../Strings/TestStringWrapperTrait.php | 8 +- .../TestUnderlinedTextRendererTrait.php | 8 +- .../TestCenterAlignedRendererTrait.php | 8 +- .../TestRightAlignedRendererTrait.php | 8 +- .../Repository/EmployeeRepository.php | 8 +- .../Fixtures/Repository/OfficeRepository.php | 6 +- Tests/Fixtures/TestFixtures.php | 16 ++-- .../Traits/Arrays/TestArrayEntitiesTrait.php | 8 +- .../Translation/TestTranslatorTrait.php | 8 +- .../TestDataTablesTwigExtensionTrait.php | 8 +- Tests/Fixtures/app/TestKernel.php | 4 +- Tests/Fixtures/app/config/config_test.old.yml | 8 +- Tests/Fixtures/app/config/config_test.yml | 8 +- .../app/config/doctrine/Employee.orm.xml | 2 +- .../app/config/doctrine/Office.orm.xml | 2 +- Tests/Fixtures/app/config/routing_test.yml | 16 ++-- Tests/Fixtures/app/config/services_test.yml | 40 ++++----- .../datatables/index.html.twig | 10 +-- Tests/Helper/DataTablesEntityHelperTest.php | 14 +-- Tests/Helper/DataTablesExportHelperTest.php | 10 +-- Tests/Helper/DataTablesMappingHelperTest.php | 14 +-- .../Helper/DataTablesRepositoryHelperTest.php | 14 +-- Tests/Helper/DataTablesWrapperHelperTest.php | 18 ++-- Tests/Manager/DataTablesManagerTest.php | 18 ++-- Tests/Manager/DataTablesManagerTraitTest.php | 12 +-- Tests/Model/DataTablesColumnTest.php | 12 +-- Tests/Model/DataTablesEnumeratorTest.php | 18 ++-- Tests/Model/DataTablesLoopTest.php | 12 +-- Tests/Model/DataTablesMappingTest.php | 12 +-- Tests/Model/DataTablesOptionsTest.php | 10 +-- Tests/Model/DataTablesOrderTest.php | 10 +-- Tests/Model/DataTablesRequestTest.php | 14 +-- Tests/Model/DataTablesResponseTest.php | 10 +-- Tests/Model/DataTablesSearchTest.php | 10 +-- Tests/Model/DataTablesWrapperTest.php | 18 ++-- Tests/Model/DataTablesWrapperTraitTest.php | 12 +-- Tests/Normalizer/DataTablesNormalizerTest.php | 14 +-- .../AbstractDataTablesProviderTest.php | 22 ++--- .../DataTablesProviderInterfaceTest.php | 12 +-- .../Provider/DataTablesProviderTraitTest.php | 12 +-- .../Assets/ColorRendererTraitTest.php | 10 +-- .../Assets/EnabledBadgeRendererTraitTest.php | 10 +-- .../Assets/EnabledLabelRendererTraitTest.php | 10 +-- .../Renderer/Assets/IconRendererTraitTest.php | 10 +-- .../Assets/ImageRendererTraitTest.php | 10 +-- .../CenterAlignedRendererTraitTest.php | 10 +-- Tests/Renderer/ColumnWidthInterfaceTest.php | 10 +-- .../DateTimes/DateRendererTraitTest.php | 10 +-- .../DateTimes/DateTimeRendererTraitTest.php | 10 +-- .../Floats/FloatRendererTraitTest.php | 10 +-- .../RightAlignedRendererTraitTest.php | 10 +-- .../Strings/BoldTextRendererTraitTest.php | 10 +-- .../CenterAlignedTextRendererTraitTest.php | 10 +-- .../Strings/DeletedTextRendererTraitTest.php | 10 +-- .../Strings/InsertedTextRendererTraitTest.php | 10 +-- .../Strings/ItalicTextRendererTraitTest.php | 10 +-- .../JustifiedAlignedTextRendererTraitTest.php | 10 +-- .../LeftAlignedTextRendererTraitTest.php | 10 +-- .../Strings/MarkedTextRendererTraitTest.php | 10 +-- .../Strings/NoWrapTextRendererTraitTest.php | 10 +-- .../RightAlignedTextRendererTraitTest.php | 10 +-- .../Strings/SmallTextRendererTraitTest.php | 10 +-- .../StrikethroughTextRendererTraitTest.php | 10 +-- .../Strings/StringWrapperTraitTest.php | 10 +-- .../UnderlinedTextRendererTraitTest.php | 10 +-- .../Traits/Arrays/ArrayEntitiesTraitTest.php | 10 +-- Tests/Translation/TranslatorTraitTest.php | 10 +-- .../Extension/DataTablesTwigExtensionTest.php | 12 +-- ...Test.testJQueryDataTablesFunction.html.txt | 2 +- ...QueryDataTablesStandaloneFunction.html.txt | 2 +- .../DataTablesTwigExtensionTraitTest.php | 10 +-- ...leTest.php => WBWDataTablesBundleTest.php} | 32 +++---- Tests/autoload.php.dist | 2 +- Tests/bootstrap.php | 2 +- Traits/Arrays/ArrayEntitiesTrait.php | 6 +- Translation/TranslatorTrait.php | 10 +-- .../AbstractDataTablesTwigExtension.php | 12 +-- Twig/Extension/DataTablesTwigExtension.php | 28 +++--- .../DataTablesTwigExtensionTrait.php | 6 +- ...ablesBundle.php => WBWDataTablesBundle.php | 18 ++-- composer.json | 13 ++- 224 files changed, 1256 insertions(+), 1257 deletions(-) rename DependencyInjection/{WBWJQueryDataTablesExtension.php => WBWDataTablesExtension.php} (85%) rename Resources/translations/{WBWJQueryDataTablesBundle.en.yml => WBWDataTablesBundle.en.yml} (94%) rename Resources/translations/{WBWJQueryDataTablesBundle.fr.yml => WBWDataTablesBundle.fr.yml} (92%) rename Tests/DependencyInjection/{WBWJQueryDataTablesExtensionTest.php => WBWDataTablesExtensionTest.php} (63%) rename Tests/Fixtures/app/templates/bundles/{WBWJQueryDataTablesBundle => WBWDataTablesBundle}/datatables/index.html.twig (81%) rename Tests/{WBWJQueryDataTablesBundleTest.php => WBWDataTablesBundleTest.php} (77%) rename WBWJQueryDataTablesBundle.php => WBWDataTablesBundle.php (67%) diff --git a/Api/DataTablesColumnInterface.php b/Api/DataTablesColumnInterface.php index 34244e88..407ec00c 100644 --- a/Api/DataTablesColumnInterface.php +++ b/Api/DataTablesColumnInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; use InvalidArgumentException; @@ -19,7 +19,7 @@ * DataTables column interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesColumnInterface { diff --git a/Api/DataTablesLoopInterface.php b/Api/DataTablesLoopInterface.php index a611252a..81042abb 100644 --- a/Api/DataTablesLoopInterface.php +++ b/Api/DataTablesLoopInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; /** * DataTables loop interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesLoopInterface { diff --git a/Api/DataTablesMappingInterface.php b/Api/DataTablesMappingInterface.php index 9b93d7c9..b33c137e 100644 --- a/Api/DataTablesMappingInterface.php +++ b/Api/DataTablesMappingInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; /** * DataTables mapping interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesMappingInterface { diff --git a/Api/DataTablesOptionsInterface.php b/Api/DataTablesOptionsInterface.php index 88b6b963..5461784b 100644 --- a/Api/DataTablesOptionsInterface.php +++ b/Api/DataTablesOptionsInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; use WBW\Library\Types\Exception\StringArgumentException; @@ -19,7 +19,7 @@ * DataTables options interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesOptionsInterface { diff --git a/Api/DataTablesOrderInterface.php b/Api/DataTablesOrderInterface.php index 3d5e0019..af38b63e 100644 --- a/Api/DataTablesOrderInterface.php +++ b/Api/DataTablesOrderInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; /** * DataTables order interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesOrderInterface { diff --git a/Api/DataTablesRequestInterface.php b/Api/DataTablesRequestInterface.php index 2b79a24c..ca0c800d 100644 --- a/Api/DataTablesRequestInterface.php +++ b/Api/DataTablesRequestInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; use Symfony\Component\HttpFoundation\ParameterBag; @@ -19,7 +19,7 @@ * DataTables request interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesRequestInterface { diff --git a/Api/DataTablesResponseInterface.php b/Api/DataTablesResponseInterface.php index 335a0216..2eea809b 100644 --- a/Api/DataTablesResponseInterface.php +++ b/Api/DataTablesResponseInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; use JsonSerializable; @@ -19,7 +19,7 @@ * DataTables response interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesResponseInterface extends JsonSerializable { diff --git a/Api/DataTablesSearchInterface.php b/Api/DataTablesSearchInterface.php index 760225a8..6a07c660 100644 --- a/Api/DataTablesSearchInterface.php +++ b/Api/DataTablesSearchInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; /** * DataTables search interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesSearchInterface { diff --git a/Api/DataTablesWrapperInterface.php b/Api/DataTablesWrapperInterface.php index 00c70ae3..12d59ae1 100644 --- a/Api/DataTablesWrapperInterface.php +++ b/Api/DataTablesWrapperInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Api; +namespace WBW\Bundle\DataTablesBundle\Api; use Symfony\Component\Security\Core\User\UserInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; /** * DataTables wrapper interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ interface DataTablesWrapperInterface { diff --git a/Command/AbstractCommand.php b/Command/AbstractCommand.php index 9d4309b8..16fad7c5 100644 --- a/Command/AbstractCommand.php +++ b/Command/AbstractCommand.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,17 +11,17 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Command; +namespace WBW\Bundle\DataTablesBundle\Command; use Symfony\Component\Console\Style\StyleInterface; use WBW\Bundle\CoreBundle\Command\AbstractCommand as BaseCommand; -use WBW\Bundle\JQuery\DataTablesBundle\Translation\TranslatorTrait; +use WBW\Bundle\DataTablesBundle\Translation\TranslatorTrait; /** * Abstract command. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Command + * @package WBW\Bundle\DataTablesBundle\Command * @abstract */ abstract class AbstractCommand extends BaseCommand { diff --git a/Command/ListDataTablesProviderCommand.php b/Command/ListDataTablesProviderCommand.php index 88f9db80..4f186972 100644 --- a/Command/ListDataTablesProviderCommand.php +++ b/Command/ListDataTablesProviderCommand.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,20 +11,20 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Command; +namespace WBW\Bundle\DataTablesBundle\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use WBW\Bundle\CoreBundle\Console\ConsoleHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Manager\DataTablesManagerTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesCSVExporterInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Manager\DataTablesManagerTrait; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesCSVExporterInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; /** * List DataTables provider command. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Command + * @package WBW\Bundle\DataTablesBundle\Command */ class ListDataTablesProviderCommand extends AbstractCommand { @@ -37,14 +37,14 @@ class ListDataTablesProviderCommand extends AbstractCommand { * * @var string */ - public const COMMAND_NAME = "wbw:jquery:datatables:provider:list"; + public const COMMAND_NAME = "wbw:datatables:provider:list"; /** * Service name. * * @var string */ - public const SERVICE_NAME = "wbw.jquery.datatables.command.list_provider"; + public const SERVICE_NAME = "wbw.datatables.command.list_provider"; /** * {@inheritDoc} diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 7d3a7e40..2580b402 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Controller; +namespace WBW\Bundle\DataTablesBundle\Controller; use Doctrine\ORM\EntityNotFoundException; use Symfony\Component\HttpFoundation\JsonResponse; @@ -19,24 +19,24 @@ use Symfony\Component\HttpFoundation\Response; use Throwable; use WBW\Bundle\BootstrapBundle\Controller\AbstractController as BaseController; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Event\DataTablesEvent; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesColumnException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesCSVExporterException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesEditorException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesRepositoryException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; -use WBW\Bundle\JQuery\DataTablesBundle\Factory\DataTablesFactory; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesExportHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Manager\DataTablesManagerTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesWrapper; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesCSVExporterInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesEditorInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesRouterInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Repository\DataTablesRepositoryInterface; -use WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Event\DataTablesEvent; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesColumnException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesCSVExporterException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesEditorException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesRepositoryException; +use WBW\Bundle\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; +use WBW\Bundle\DataTablesBundle\Factory\DataTablesFactory; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesExportHelper; +use WBW\Bundle\DataTablesBundle\Manager\DataTablesManagerTrait; +use WBW\Bundle\DataTablesBundle\Model\DataTablesWrapper; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesCSVExporterInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesEditorInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesRouterInterface; +use WBW\Bundle\DataTablesBundle\Repository\DataTablesRepositoryInterface; +use WBW\Bundle\DataTablesBundle\WBWDataTablesBundle; use WBW\Library\Database\Helper\PaginateHelper; use WBW\Library\Symfony\Response\SimpleJsonResponseData; use WBW\Library\Symfony\Response\SimpleJsonResponseDataInterface; @@ -45,7 +45,7 @@ * Abstract controller. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Controller + * @package WBW\Bundle\DataTablesBundle\Controller * @abstract */ abstract class AbstractController extends BaseController { @@ -84,7 +84,7 @@ protected function buildDataTablesResponse(Request $request, string $name, Simpl break; } - return $this->redirectToRoute("wbw_jquery_datatables_index", ["name" => $name]); + return $this->redirectToRoute("wbw_datatables_index", ["name" => $name]); } /** @@ -357,7 +357,7 @@ protected function getDataTablesUrl(DataTablesProviderInterface $dtProvider): st if (true === ($dtProvider instanceof DataTablesRouterInterface)) { $url = $dtProvider->getUrl(); } else { - $url = $this->getRouter()->generate("wbw_jquery_datatables_index", ["name" => $dtProvider->getName()]); + $url = $this->getRouter()->generate("wbw_datatables_index", ["name" => $dtProvider->getName()]); } $context["_url"] = $url; @@ -441,7 +441,7 @@ protected function logInfo(string $message, array $context = []): AbstractContro */ protected function prepareActionResponse(int $status, string $notificationId): SimpleJsonResponseDataInterface { - $notify = $this->getTranslator()->trans($notificationId, [], WBWJQueryDataTablesBundle::getTranslationDomain()); + $notify = $this->getTranslator()->trans($notificationId, [], WBWDataTablesBundle::getTranslationDomain()); $response = new SimpleJsonResponseData(); $response->setStatus($status); diff --git a/Controller/DataTablesController.php b/Controller/DataTablesController.php index 363e5158..f7a5655e 100644 --- a/Controller/DataTablesController.php +++ b/Controller/DataTablesController.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Controller; +namespace WBW\Bundle\DataTablesBundle\Controller; use DateTime; use Doctrine\ORM\EntityNotFoundException; @@ -20,25 +20,25 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; use Throwable; -use WBW\Bundle\JQuery\DataTablesBundle\Event\DataTablesEvent; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesColumnException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesCSVExporterException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesEditorException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesRepositoryException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; -use WBW\Bundle\JQuery\DataTablesBundle\Factory\DataTablesFactory; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesEntityHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesExportHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesWrapperHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesEnumerator; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesLoop; +use WBW\Bundle\DataTablesBundle\Event\DataTablesEvent; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesColumnException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesCSVExporterException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesEditorException; +use WBW\Bundle\DataTablesBundle\Exception\BadDataTablesRepositoryException; +use WBW\Bundle\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; +use WBW\Bundle\DataTablesBundle\Factory\DataTablesFactory; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesEntityHelper; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesExportHelper; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesWrapperHelper; +use WBW\Bundle\DataTablesBundle\Model\DataTablesEnumerator; +use WBW\Bundle\DataTablesBundle\Model\DataTablesLoop; use WBW\Library\Types\Helper\BooleanHelper; /** * DataTables controller. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Controller + * @package WBW\Bundle\DataTablesBundle\Controller */ class DataTablesController extends AbstractController { @@ -47,7 +47,7 @@ class DataTablesController extends AbstractController { * * @var string */ - public const SERVICE_NAME = "wbw.jquery.datatables.controller.datatables"; + public const SERVICE_NAME = "wbw.datatables.controller.datatables"; /** * Delete an existing entity. @@ -259,10 +259,10 @@ public function renderAction(string $name, string $alone = null): Response { $dtView = $dtProvider->getView(); if (null === $dtProvider->getView()) { - $dtView = "@WBWJQueryDataTables/datatables/index.html.twig"; + $dtView = "@WBWDataTables/datatables/index.html.twig"; } if (true === BooleanHelper::parseString($alone)) { - $dtView = "@WBWJQueryDataTables/datatables/render.html.twig"; + $dtView = "@WBWDataTables/datatables/render.html.twig"; } return $this->render($dtView, [ diff --git a/DependencyInjection/Compiler/DataTablesProviderCompilerPass.php b/DependencyInjection/Compiler/DataTablesProviderCompilerPass.php index bf570a03..f2081306 100644 --- a/DependencyInjection/Compiler/DataTablesProviderCompilerPass.php +++ b/DependencyInjection/Compiler/DataTablesProviderCompilerPass.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,19 +11,19 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\Compiler; +namespace WBW\Bundle\DataTablesBundle\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Reference; -use WBW\Bundle\JQuery\DataTablesBundle\Manager\DataTablesManager; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Manager\DataTablesManager; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; /** - * jQuery DataTables provider compiler pass. + * DataTables provider compiler pass. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection\Compiler + * @package WBW\Bundle\DataTablesBundle\DependencyInjection\Compiler */ class DataTablesProviderCompilerPass implements CompilerPassInterface { diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 7257f0d4..a53552c5 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection; +namespace WBW\Bundle\DataTablesBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; @@ -21,14 +21,14 @@ * Configuration. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection + * @package WBW\Bundle\DataTablesBundle\DependencyInjection */ class Configuration implements ConfigurationInterface { /** * {@inheritDoc} * - * wbw_jquery_datatables: + * wbw_datatables: * theme: "bootstrap" * plugins: * - "buttons" @@ -37,25 +37,25 @@ class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder(): TreeBuilder { $assets = ConfigurationHelper::loadYamlConfig(__DIR__, "assets"); - $plugins = $assets["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["plugins"]; - $themes = $assets["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["themes"]; + $plugins = $assets["assets"]["wbw.datatables.asset.datatables"]["plugins"]; + $themes = $assets["assets"]["wbw.datatables.asset.datatables"]["themes"]; - $treeBuilder = new TreeBuilder(WBWJQueryDataTablesExtension::EXTENSION_ALIAS); + $treeBuilder = new TreeBuilder(WBWDataTablesExtension::EXTENSION_ALIAS); - $rootNode = ConfigurationHelper::getRootNode($treeBuilder, WBWJQueryDataTablesExtension::EXTENSION_ALIAS); + $rootNode = ConfigurationHelper::getRootNode($treeBuilder, WBWDataTablesExtension::EXTENSION_ALIAS); $rootNode ->children() - ->variableNode("theme")->defaultValue("bootstrap")->info("jQuery DataTables theme") + ->variableNode("theme")->defaultValue("bootstrap")->info("DataTables theme") ->validate() ->ifNotInArray($themes) - ->thenInvalid("The jQuery DataTables theme %s is not supported. Please choose one of " . json_encode($themes)) + ->thenInvalid("The DataTables theme %s is not supported. Please choose one of " . json_encode($themes)) ->end() ->end() - ->arrayNode("plugins")->info("Use jQuery DataTables plug-ins") + ->arrayNode("plugins")->info("Use DataTables plug-ins") ->prototype("scalar") ->validate() ->ifNotInArray(array_keys($plugins)) - ->thenInvalid("The jQuery DataTables plug-in %s is not supported. Please choose one of " . json_encode(array_keys($plugins))) + ->thenInvalid("The DataTables plug-in %s is not supported. Please choose one of " . json_encode(array_keys($plugins))) ->end() ->end() ->end() diff --git a/DependencyInjection/WBWJQueryDataTablesExtension.php b/DependencyInjection/WBWDataTablesExtension.php similarity index 85% rename from DependencyInjection/WBWJQueryDataTablesExtension.php rename to DependencyInjection/WBWDataTablesExtension.php index ecac71f3..58d49600 100644 --- a/DependencyInjection/WBWJQueryDataTablesExtension.php +++ b/DependencyInjection/WBWDataTablesExtension.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection; +namespace WBW\Bundle\DataTablesBundle\DependencyInjection; use Symfony\Component\Config\Definition\ConfigurationInterface; use Symfony\Component\Config\FileLocator; @@ -22,19 +22,19 @@ use WBW\Bundle\CoreBundle\Config\ConfigurationHelper; /** - * jQuery DataTables extension. + * DataTables extension. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\DependencyInjection + * @package WBW\Bundle\DataTablesBundle\DependencyInjection */ -class WBWJQueryDataTablesExtension extends Extension { +class WBWDataTablesExtension extends Extension { /** * Extension alias. * * @var string */ - public const EXTENSION_ALIAS = "wbw_jquery_datatables"; + public const EXTENSION_ALIAS = "wbw_datatables"; /** * {@inheritDoc} diff --git a/Entity/DataTablesEntityInterface.php b/Entity/DataTablesEntityInterface.php index e52fc470..7f742314 100644 --- a/Entity/DataTablesEntityInterface.php +++ b/Entity/DataTablesEntityInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Entity; +namespace WBW\Bundle\DataTablesBundle\Entity; /** * DataTables entity interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Entity + * @package WBW\Bundle\DataTablesBundle\Entity */ interface DataTablesEntityInterface { diff --git a/Event/DataTablesEvent.php b/Event/DataTablesEvent.php index bb03d018..13edaf93 100644 --- a/Event/DataTablesEvent.php +++ b/Event/DataTablesEvent.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,18 +11,18 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Event; +namespace WBW\Bundle\DataTablesBundle\Event; use WBW\Bundle\CoreBundle\Event\AbstractEvent; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Traits\Arrays\ArrayEntitiesTrait; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderTrait; +use WBW\Bundle\DataTablesBundle\Traits\Arrays\ArrayEntitiesTrait; /** * DataTables event. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Event + * @package WBW\Bundle\DataTablesBundle\Event */ class DataTablesEvent extends AbstractEvent { @@ -34,70 +34,70 @@ class DataTablesEvent extends AbstractEvent { * * @var string */ - public const POST_DELETE = "wbw.jquery.datatables.event.post_delete"; + public const POST_DELETE = "wbw.datatables.event.post_delete"; /** * Event "post edit". * * @var string */ - public const POST_EDIT = "wbw.jquery.datatables.event.post_edit"; + public const POST_EDIT = "wbw.datatables.event.post_edit"; /** * Event "post export". * * @var string */ - public const POST_EXPORT = "wbw.jquery.datatables.event.post_export"; + public const POST_EXPORT = "wbw.datatables.event.post_export"; /** * Event "post show". * * @var string */ - public const POST_INDEX = "wbw.jquery.datatables.event.post_index"; + public const POST_INDEX = "wbw.datatables.event.post_index"; /** * Event "pre delete". * * @var string */ - public const PRE_DELETE = "wbw.jquery.datatables.event.pre_delete"; + public const PRE_DELETE = "wbw.datatables.event.pre_delete"; /** * Event "pre edit". * * @var string */ - public const PRE_EDIT = "wbw.jquery.datatables.event.pre_edit"; + public const PRE_EDIT = "wbw.datatables.event.pre_edit"; /** * Event "pre export". * * @var string */ - public const PRE_EXPORT = "wbw.jquery.datatables.event.pre_export"; + public const PRE_EXPORT = "wbw.datatables.event.pre_export"; /** * Event "pre index". * * @var string */ - public const PRE_INDEX = "wbw.jquery.datatables.event.pre_index"; + public const PRE_INDEX = "wbw.datatables.event.pre_index"; /** * Event "pre serialize". * * @var string */ - public const PRE_SERIALIZE = "wbw.jquery.datatables.event.pre_serialize"; + public const PRE_SERIALIZE = "wbw.datatables.event.pre_serialize"; /** * Event "pre show". * * @var string */ - public const PRE_SHOW = "wbw.jquery.datatables.event.pre_show"; + public const PRE_SHOW = "wbw.datatables.event.pre_show"; /** * Constructor. diff --git a/Exception/AbstractDataTablesException.php b/Exception/AbstractDataTablesException.php index 69834036..b9ef3b93 100644 --- a/Exception/AbstractDataTablesException.php +++ b/Exception/AbstractDataTablesException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; use Exception; @@ -19,7 +19,7 @@ * Abstract DataTables exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception * @abstract */ abstract class AbstractDataTablesException extends Exception { diff --git a/Exception/AlreadyRegisteredDataTablesProviderException.php b/Exception/AlreadyRegisteredDataTablesProviderException.php index 9153a79a..6da73f2c 100644 --- a/Exception/AlreadyRegisteredDataTablesProviderException.php +++ b/Exception/AlreadyRegisteredDataTablesProviderException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; /** * Already registered DataTables provider exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class AlreadyRegisteredDataTablesProviderException extends AbstractDataTablesException { diff --git a/Exception/BadDataTablesCSVExporterException.php b/Exception/BadDataTablesCSVExporterException.php index 334083bc..f99e5efe 100644 --- a/Exception/BadDataTablesCSVExporterException.php +++ b/Exception/BadDataTablesCSVExporterException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesCSVExporterInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesCSVExporterInterface; /** * Bad DataTables CSV exporter exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class BadDataTablesCSVExporterException extends AbstractDataTablesException { diff --git a/Exception/BadDataTablesColumnException.php b/Exception/BadDataTablesColumnException.php index e953d13b..f431435f 100644 --- a/Exception/BadDataTablesColumnException.php +++ b/Exception/BadDataTablesColumnException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; /** * Bad DataTables column exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class BadDataTablesColumnException extends AbstractDataTablesException { diff --git a/Exception/BadDataTablesEditorException.php b/Exception/BadDataTablesEditorException.php index 3634b4e6..4d4dcf93 100644 --- a/Exception/BadDataTablesEditorException.php +++ b/Exception/BadDataTablesEditorException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesEditorInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesEditorInterface; /** * BadDataTables editor exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class BadDataTablesEditorException extends AbstractDataTablesException { diff --git a/Exception/BadDataTablesRepositoryException.php b/Exception/BadDataTablesRepositoryException.php index a10e2e39..359869a1 100644 --- a/Exception/BadDataTablesRepositoryException.php +++ b/Exception/BadDataTablesRepositoryException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; -use WBW\Bundle\JQuery\DataTablesBundle\Repository\DataTablesRepositoryInterface; +use WBW\Bundle\DataTablesBundle\Repository\DataTablesRepositoryInterface; /** * Bad DataTables repository exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class BadDataTablesRepositoryException extends AbstractDataTablesException { diff --git a/Exception/UnregisteredDataTablesProviderException.php b/Exception/UnregisteredDataTablesProviderException.php index dc768ff2..b754c6d5 100644 --- a/Exception/UnregisteredDataTablesProviderException.php +++ b/Exception/UnregisteredDataTablesProviderException.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Exception; +namespace WBW\Bundle\DataTablesBundle\Exception; /** * Unregistered DataTables provider exception. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Exception + * @package WBW\Bundle\DataTablesBundle\Exception */ class UnregisteredDataTablesProviderException extends AbstractDataTablesException { diff --git a/Factory/DataTablesFactory.php b/Factory/DataTablesFactory.php index b0308e6e..75f91617 100644 --- a/Factory/DataTablesFactory.php +++ b/Factory/DataTablesFactory.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,27 +11,27 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Factory; +namespace WBW\Bundle\DataTablesBundle\Factory; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\User\UserInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOptionsInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOrderInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesRequestInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesSearchInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesColumn; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesEnumerator; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesOptions; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesOrder; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesRequest; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesResponse; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesSearch; -use WBW\Bundle\JQuery\DataTablesBundle\Model\DataTablesWrapper; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOptionsInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOrderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesRequestInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesSearchInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Model\DataTablesColumn; +use WBW\Bundle\DataTablesBundle\Model\DataTablesEnumerator; +use WBW\Bundle\DataTablesBundle\Model\DataTablesOptions; +use WBW\Bundle\DataTablesBundle\Model\DataTablesOrder; +use WBW\Bundle\DataTablesBundle\Model\DataTablesRequest; +use WBW\Bundle\DataTablesBundle\Model\DataTablesResponse; +use WBW\Bundle\DataTablesBundle\Model\DataTablesSearch; +use WBW\Bundle\DataTablesBundle\Model\DataTablesWrapper; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; use WBW\Library\Types\Helper\ArrayHelper; use WBW\Library\Types\Helper\BooleanHelper; @@ -39,7 +39,7 @@ * DataTables factory. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Factory + * @package WBW\Bundle\DataTablesBundle\Factory */ class DataTablesFactory { diff --git a/Helper/DataTablesEntityHelper.php b/Helper/DataTablesEntityHelper.php index 463a51bb..f8626c6c 100644 --- a/Helper/DataTablesEntityHelper.php +++ b/Helper/DataTablesEntityHelper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Helper; +namespace WBW\Bundle\DataTablesBundle\Helper; use InvalidArgumentException; use JsonSerializable; @@ -19,13 +19,13 @@ use Symfony\Component\Serializer\Normalizer\ObjectNormalizer; use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\SerializerInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Entity\DataTablesEntityInterface; +use WBW\Bundle\DataTablesBundle\Entity\DataTablesEntityInterface; /** * DataTables entity helper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Helper + * @package WBW\Bundle\DataTablesBundle\Helper */ class DataTablesEntityHelper { diff --git a/Helper/DataTablesExportHelper.php b/Helper/DataTablesExportHelper.php index 4ecf80be..28e33da3 100644 --- a/Helper/DataTablesExportHelper.php +++ b/Helper/DataTablesExportHelper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Helper; +namespace WBW\Bundle\DataTablesBundle\Helper; use DeviceDetector\DeviceDetector; use DeviceDetector\Yaml\Symfony as SYP; @@ -22,7 +22,7 @@ * DataTables export helper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Helper + * @package WBW\Bundle\DataTablesBundle\Helper */ class DataTablesExportHelper { diff --git a/Helper/DataTablesMappingHelper.php b/Helper/DataTablesMappingHelper.php index c522875e..3766921c 100644 --- a/Helper/DataTablesMappingHelper.php +++ b/Helper/DataTablesMappingHelper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Helper; +namespace WBW\Bundle\DataTablesBundle\Helper; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesMappingInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesMappingInterface; /** * DataTables mapping helper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Helper + * @package WBW\Bundle\DataTablesBundle\Helper */ class DataTablesMappingHelper { diff --git a/Helper/DataTablesRepositoryHelper.php b/Helper/DataTablesRepositoryHelper.php index bb0ce608..6c5483a0 100644 --- a/Helper/DataTablesRepositoryHelper.php +++ b/Helper/DataTablesRepositoryHelper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Helper; +namespace WBW\Bundle\DataTablesBundle\Helper; use Doctrine\ORM\QueryBuilder; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; /** * DataTables repository helper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Helper + * @package WBW\Bundle\DataTablesBundle\Helper */ class DataTablesRepositoryHelper { diff --git a/Helper/DataTablesWrapperHelper.php b/Helper/DataTablesWrapperHelper.php index 2f723c35..710a28d3 100644 --- a/Helper/DataTablesWrapperHelper.php +++ b/Helper/DataTablesWrapperHelper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,18 +11,18 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Helper; +namespace WBW\Bundle\DataTablesBundle\Helper; use Symfony\Component\Filesystem\Exception\FileNotFoundException; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Normalizer\DataTablesNormalizer; -use WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Normalizer\DataTablesNormalizer; +use WBW\Bundle\DataTablesBundle\WBWDataTablesBundle; /** * DataTables wrapper helper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Helper + * @package WBW\Bundle\DataTablesBundle\Helper */ class DataTablesWrapperHelper { @@ -36,11 +36,11 @@ class DataTablesWrapperHelper { public static function getLanguageUrl(string $language): string { // Initialize the directory. - $dir = (new WBWJQueryDataTablesBundle())->getPath(); + $dir = (new WBWDataTablesBundle())->getPath(); $dir .= "/Resources/public/datatables-i18n/%s.json"; // Initialize the URI. - $uri = "/bundles/wbwjquerydatatables/datatables-i18n/%s.json"; + $uri = "/bundles/wbwdatatables/datatables-i18n/%s.json"; // Initialize the URL. $url = sprintf($uri, $language); diff --git a/Manager/DataTablesManager.php b/Manager/DataTablesManager.php index de2bcde9..4b7f0ae4 100644 --- a/Manager/DataTablesManager.php +++ b/Manager/DataTablesManager.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Manager; +namespace WBW\Bundle\DataTablesBundle\Manager; use InvalidArgumentException; use Throwable; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\AlreadyRegisteredDataTablesProviderException; -use WBW\Bundle\JQuery\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Exception\AlreadyRegisteredDataTablesProviderException; +use WBW\Bundle\DataTablesBundle\Exception\UnregisteredDataTablesProviderException; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; use WBW\Library\Symfony\Manager\AbstractManager; use WBW\Library\Symfony\Manager\ManagerInterface; use WBW\Library\Symfony\Provider\ProviderInterface; @@ -26,7 +26,7 @@ * DataTables manager. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Manager + * @package WBW\Bundle\DataTablesBundle\Manager */ class DataTablesManager extends AbstractManager { @@ -35,7 +35,7 @@ class DataTablesManager extends AbstractManager { * * @var string */ - public const SERVICE_NAME = "wbw.jquery.datatables.manager"; + public const SERVICE_NAME = "wbw.datatables.manager"; /** * {@inheritDoc} diff --git a/Manager/DataTablesManagerTrait.php b/Manager/DataTablesManagerTrait.php index 4e389b76..5c40f654 100644 --- a/Manager/DataTablesManagerTrait.php +++ b/Manager/DataTablesManagerTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Manager; +namespace WBW\Bundle\DataTablesBundle\Manager; /** * DataTables manager trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Manager + * @package WBW\Bundle\DataTablesBundle\Manager */ trait DataTablesManagerTrait { diff --git a/Model/DataTablesColumn.php b/Model/DataTablesColumn.php index 967b4444..57d45451 100644 --- a/Model/DataTablesColumn.php +++ b/Model/DataTablesColumn.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,18 +11,18 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; use InvalidArgumentException; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesMappingInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesSearchInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesMappingInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesSearchInterface; /** * DataTables column. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesColumn implements DataTablesColumnInterface { diff --git a/Model/DataTablesEnumerator.php b/Model/DataTablesEnumerator.php index f4048728..47cf7f14 100644 --- a/Model/DataTablesEnumerator.php +++ b/Model/DataTablesEnumerator.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,18 +11,18 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOrderInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesRequestInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOrderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesRequestInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; /** * DataTables enumerator. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesEnumerator { diff --git a/Model/DataTablesLoop.php b/Model/DataTablesLoop.php index 00dfaab9..c24a4ea3 100644 --- a/Model/DataTablesLoop.php +++ b/Model/DataTablesLoop.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesLoopInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Traits\Arrays\ArrayEntitiesTrait; +use WBW\Bundle\DataTablesBundle\Api\DataTablesLoopInterface; +use WBW\Bundle\DataTablesBundle\Traits\Arrays\ArrayEntitiesTrait; /** * DataTables loop. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesLoop implements DataTablesLoopInterface { diff --git a/Model/DataTablesMapping.php b/Model/DataTablesMapping.php index a58a97d1..bbaf1a04 100644 --- a/Model/DataTablesMapping.php +++ b/Model/DataTablesMapping.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesMappingInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesMappingInterface; /** * DataTables mapping. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesMapping implements DataTablesMappingInterface { diff --git a/Model/DataTablesOptions.php b/Model/DataTablesOptions.php index f4567fb2..5518b4d8 100644 --- a/Model/DataTablesOptions.php +++ b/Model/DataTablesOptions.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOptionsInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOptionsInterface; /** * DataTables options. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesOptions implements DataTablesOptionsInterface { diff --git a/Model/DataTablesOrder.php b/Model/DataTablesOrder.php index cd17fd0a..42def363 100644 --- a/Model/DataTablesOrder.php +++ b/Model/DataTablesOrder.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOrderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOrderInterface; /** * DataTables order. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesOrder implements DataTablesOrderInterface { diff --git a/Model/DataTablesRequest.php b/Model/DataTablesRequest.php index 4bff8977..f164ae57 100644 --- a/Model/DataTablesRequest.php +++ b/Model/DataTablesRequest.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,19 +11,19 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; use Symfony\Component\HttpFoundation\ParameterBag; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOrderInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesRequestInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesSearchInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOrderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesRequestInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesSearchInterface; /** * DataTables request. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesRequest implements DataTablesRequestInterface { diff --git a/Model/DataTablesResponse.php b/Model/DataTablesResponse.php index c5eea43e..cce22825 100644 --- a/Model/DataTablesResponse.php +++ b/Model/DataTablesResponse.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Normalizer\DataTablesNormalizer; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Normalizer\DataTablesNormalizer; /** * DataTables response. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesResponse implements DataTablesResponseInterface { diff --git a/Model/DataTablesSearch.php b/Model/DataTablesSearch.php index 5be35451..7a4910e1 100644 --- a/Model/DataTablesSearch.php +++ b/Model/DataTablesSearch.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesSearchInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesSearchInterface; /** * DataTables search. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Api + * @package WBW\Bundle\DataTablesBundle\Api */ class DataTablesSearch implements DataTablesSearchInterface { diff --git a/Model/DataTablesWrapper.php b/Model/DataTablesWrapper.php index a089fe22..3980a134 100644 --- a/Model/DataTablesWrapper.php +++ b/Model/DataTablesWrapper.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,22 +11,22 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; use WBW\Bundle\CoreBundle\Security\Core\User\UserTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesMappingInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOptionsInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesRequestInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesMappingInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOptionsInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesRequestInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; /** * DataTables wrapper. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ class DataTablesWrapper implements DataTablesWrapperInterface { diff --git a/Model/DataTablesWrapperTrait.php b/Model/DataTablesWrapperTrait.php index 64f17cf0..71216377 100644 --- a/Model/DataTablesWrapperTrait.php +++ b/Model/DataTablesWrapperTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,15 +11,15 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Model; +namespace WBW\Bundle\DataTablesBundle\Model; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; /** * DataTables wrapper trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Model + * @package WBW\Bundle\DataTablesBundle\Model */ trait DataTablesWrapperTrait { diff --git a/Normalizer/DataTablesNormalizer.php b/Normalizer/DataTablesNormalizer.php index 1741cdad..e981f485 100644 --- a/Normalizer/DataTablesNormalizer.php +++ b/Normalizer/DataTablesNormalizer.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,17 +11,17 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Normalizer; +namespace WBW\Bundle\DataTablesBundle\Normalizer; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; use WBW\Library\Types\Helper\ArrayHelper; /** * DataTables normalizer. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Normalizer + * @package WBW\Bundle\DataTablesBundle\Normalizer */ class DataTablesNormalizer { diff --git a/Provider/AbstractDataTablesProvider.php b/Provider/AbstractDataTablesProvider.php index acdef8c1..9d84aa1e 100644 --- a/Provider/AbstractDataTablesProvider.php +++ b/Provider/AbstractDataTablesProvider.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; use InvalidArgumentException; use Symfony\Component\Routing\Exception\InvalidParameterException; @@ -28,13 +28,13 @@ use WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\ButtonTwigExtension; use WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\ButtonTwigExtensionTrait; use WBW\Bundle\CoreBundle\Routing\RouterTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOptionsInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Factory\DataTablesFactory; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesEntityHelper; -use WBW\Bundle\JQuery\DataTablesBundle\Renderer\ColumnWidthInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Renderer\Floats\FloatRendererTrait; -use WBW\Bundle\JQuery\DataTablesBundle\Translation\TranslatorTrait; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOptionsInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Factory\DataTablesFactory; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesEntityHelper; +use WBW\Bundle\DataTablesBundle\Renderer\ColumnWidthInterface; +use WBW\Bundle\DataTablesBundle\Renderer\Floats\FloatRendererTrait; +use WBW\Bundle\DataTablesBundle\Translation\TranslatorTrait; use WBW\Library\Symfony\Renderer\DateTimesRendererTrait; use WBW\Library\Symfony\Renderer\Strings\StringWrapperTrait; use WBW\Library\Symfony\Renderer\StringsRendererTrait; @@ -43,7 +43,7 @@ * Abstract DataTables provider. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider * @abstract */ abstract class AbstractDataTablesProvider implements DataTablesProviderInterface, ColumnWidthInterface { @@ -126,12 +126,12 @@ public function getOptions(): DataTablesOptionsInterface { * @throws InvalidParameterException Throws an invalid parameter exception if a parameter is invalid. * @throws RouteNotFoundException Throws a route not found exception if the route doesn't exist. * @throws MissingMandatoryParametersException Throws a missing mandatory parameter exception if a mandatory exception is missing. - * @deprecated since 3.4.0 use {@see WBW\Bundle\JQuery\DataTablesBundle\Provider\AbstractDataTablesProvider::renderRowButtons()} instead + * @deprecated since 3.4.0 use {@see WBW\Bundle\DataTablesBundle\Provider\AbstractDataTablesProvider::renderRowButtons()} instead */ protected function renderButtons($entity, string $editRoute, string $deleteRoute = null, bool $enableDelete = true): string { if (null === $deleteRoute && true === $enableDelete) { - $deleteRoute = "wbw_jquery_datatables_delete"; + $deleteRoute = "wbw_datatables_delete"; } return $this->renderRowButtons($entity, $editRoute, $deleteRoute); diff --git a/Provider/DataTablesButtonsRendererTrait.php b/Provider/DataTablesButtonsRendererTrait.php index 631a7080..5feb7f73 100644 --- a/Provider/DataTablesButtonsRendererTrait.php +++ b/Provider/DataTablesButtonsRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; use InvalidArgumentException; use Symfony\Component\Routing\Exception\InvalidParameterException; @@ -19,15 +19,15 @@ use Symfony\Component\Routing\Exception\RouteNotFoundException; use Symfony\Component\Routing\RouterInterface; use WBW\Bundle\BootstrapBundle\Twig\Extension\CSS\ButtonTwigExtension; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesEntityHelper; -use WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesEntityHelper; +use WBW\Bundle\DataTablesBundle\WBWDataTablesBundle; use WBW\Library\Types\Helper\ArrayHelper; /** * DataTables buttons renderer trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider * @internal */ trait DataTablesButtonsRendererTrait { @@ -103,7 +103,7 @@ protected function renderActionButtonComment($entity, string $route, ?string $co "type" => "Default", "icon" => null === $comment || 0 === mb_strlen($comment) ? "fa:comment-slash" : "fa:comment", "label" => "label.comment", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), ]); } @@ -120,13 +120,13 @@ protected function renderActionButtonComment($entity, string $route, ?string $co */ protected function renderActionButtonDelete($entity, string $route): string { - $args = "wbw_jquery_datatables_delete" === $route ? ["name" => $this->getName()] : []; + $args = "wbw_datatables_delete" === $route ? ["name" => $this->getName()] : []; return $this->renderActionButton($entity, $route, [ "type" => "Danger", "icon" => "fa:trash", "label" => "label.delete", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), "route" => $args, ]); } @@ -148,7 +148,7 @@ protected function renderActionButtonDuplicate($entity, string $route): string { "type" => "Primary", "icon" => "fa:copy", "label" => "label.duplicate", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), ]); } @@ -169,7 +169,7 @@ protected function renderActionButtonEdit($entity, string $route): string { "type" => "Default", "icon" => "fa:pen", "label" => "label.edit", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), ]); } @@ -191,7 +191,7 @@ protected function renderActionButtonNew($entity, string $route): string { $args = ["id" => $entity->getId()]; } - $title = $this->translate("label.new", [], WBWJQueryDataTablesBundle::getTranslationDomain()); + $title = $this->translate("label.new", [], WBWDataTablesBundle::getTranslationDomain()); $button = $this->getButtonTwigExtension()->bootstrapButtonPrimaryFunction(["icon" => "fa:plus", "title" => $title, "size" => "xs"]); $href = $this->getRouter()->generate($route, $args); @@ -215,7 +215,7 @@ protected function renderActionButtonPdf($entity, string $route): string { "type" => "Danger", "icon" => "fa:file-pdf", "label" => "PDF", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), "target" => "_blank", ]); } @@ -237,7 +237,7 @@ protected function renderActionButtonShow($entity, string $route): string { "type" => "Info", "icon" => "fa:eye", "label" => "label.show", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), ]); } @@ -259,7 +259,7 @@ protected function renderActionButtonSwitch($entity, string $route, ?bool $enabl "type" => true === $enabled ? "Success" : "Danger", "icon" => true === $enabled ? "fa:toggle-on" : "fa:toggle-off", "label" => true === $enabled ? "label.disable" : "label.enable", - "translation_domain" => WBWJQueryDataTablesBundle::getTranslationDomain(), + "translation_domain" => WBWDataTablesBundle::getTranslationDomain(), ]); } diff --git a/Provider/DataTablesCSVExporterInterface.php b/Provider/DataTablesCSVExporterInterface.php index ecf29bd7..c396cc55 100644 --- a/Provider/DataTablesCSVExporterInterface.php +++ b/Provider/DataTablesCSVExporterInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,7 +11,7 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; use WBW\Library\Symfony\Provider\ProviderInterface; @@ -19,7 +19,7 @@ * DataTables CSV exporter interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider */ interface DataTablesCSVExporterInterface extends ProviderInterface { diff --git a/Provider/DataTablesEditorInterface.php b/Provider/DataTablesEditorInterface.php index 78b3ca26..2345ced3 100644 --- a/Provider/DataTablesEditorInterface.php +++ b/Provider/DataTablesEditorInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,17 +11,17 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; use Throwable; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; use WBW\Library\Symfony\Provider\ProviderInterface; /** * DataTables editor interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider */ interface DataTablesEditorInterface extends ProviderInterface { diff --git a/Provider/DataTablesProviderInterface.php b/Provider/DataTablesProviderInterface.php index f6d08a89..2e23a5d8 100644 --- a/Provider/DataTablesProviderInterface.php +++ b/Provider/DataTablesProviderInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,18 +11,18 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; use Throwable; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesOptionsInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesOptionsInterface; use WBW\Library\Symfony\Provider\ProviderInterface; /** * DataTables provider interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider; + * @package WBW\Bundle\DataTablesBundle\Provider; */ interface DataTablesProviderInterface extends ProviderInterface { @@ -31,7 +31,7 @@ interface DataTablesProviderInterface extends ProviderInterface { * * @var string */ - public const DATATABLES_TAG_NAME = "wbw.jquery.datatables.provider"; + public const DATATABLES_TAG_NAME = "wbw.datatables.provider"; /** * Get the CSV exporter. diff --git a/Provider/DataTablesProviderTrait.php b/Provider/DataTablesProviderTrait.php index fb448b2e..823babce 100644 --- a/Provider/DataTablesProviderTrait.php +++ b/Provider/DataTablesProviderTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; /** * DataTables provider trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider */ trait DataTablesProviderTrait { diff --git a/Provider/DataTablesRouterInterface.php b/Provider/DataTablesRouterInterface.php index b263c6e0..91598f40 100644 --- a/Provider/DataTablesRouterInterface.php +++ b/Provider/DataTablesRouterInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2019 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Provider; +namespace WBW\Bundle\DataTablesBundle\Provider; /** * DataTables router interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider + * @package WBW\Bundle\DataTablesBundle\Provider */ interface DataTablesRouterInterface { diff --git a/README.md b/README.md index b9408c8d..0d2a3115 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ jquery-datatables-bundle [![Packagist version](https://img.shields.io/packagist/v/webeweb/jquery-datatables-bundle.svg?style=for-the-badge&color=F28D1A&logo=packagist)](https://packagist.org/packages/webeweb/jquery-datatables-bundle) [![Packagist license](https://img.shields.io/packagist/l/webeweb/jquery-datatables-bundle.svg?style=for-the-badge&colorF28D1A&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0ZGRiIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiIgZD0ibTMgNiAzIDFtMCAwLTMgOWE1LjAwMiA1LjAwMiAwIDAgMCA2LjAwMSAwTTYgN2wzIDlNNiA3bDYtMm02IDIgMy0xbS0zIDEtMyA5YTUuMDAyIDUuMDAyIDAgMCAwIDYuMDAxIDBNMTggN2wzIDltLTMtOS02LTJtMC0ydjJtMCAxNlY1bTAgMTZIOW0zIDBoMyIvPjwvc3ZnPg==)](./LICENSE) -Integrate jQuery DataTables with Symfony 4 and more. +Integrate DataTables with Symfony 4 and more. -`jquery-datatables-bundle` eases the use of **jQuery DataTables** to display rich -DataTables in your Symfony application by providing Twig extensions and PHP +`jquery-datatables-bundle` eases the use of **DataTables** to display rich +data tables in your Symfony application by providing Twig extensions and PHP objects to do the heavy lifting. The bundle include the excellent JS library -[jQuery DataTables](https://datatables.net/) and this plug-ins. +[DataTables](https://datatables.net/) and this plug-ins. Dry out your DataTables code by writing it all in PHP ! -jQuery DataTables bundle +DataTables bundle Includes : @@ -41,13 +41,13 @@ Includes : Provides : -- a "wbw_jquery_datatables_delete" route to delete a managed entity by a DataTable -- a "wbw_jquery_datatables_edit" route to edit all columns provided by a DataTable -- a "wbw_jquery_datatables_export" route to export all managed entities by a DataTable -- a "wbw_jquery_datatables_index" route to display a DataTable (main and columns searches is also provide with a generic implementation) -- a "wbw_jquery_datatables_options" route to retrieve with an XML HTTP request the options of a DataTable -- a "wbw_jquery_datatables_render" route to retrieve with an XML HTTP request the HTML rendering of a DataTable -- a "wbw_jquery_datatables_serialize" route to retrieve with an XML HTTP request a managed entity by a DataTable into JSON format +- a "wbw_datatables_delete" route to delete a managed entity by a DataTable +- a "wbw_datatables_edit" route to edit all columns provided by a DataTable +- a "wbw_datatables_export" route to export all managed entities by a DataTable +- a "wbw_datatables_index" route to display a DataTable (main and columns searches is also provide with a generic implementation) +- a "wbw_datatables_options" route to retrieve with an XML HTTP request the options of a DataTable +- a "wbw_datatables_render" route to retrieve with an XML HTTP request the HTML rendering of a DataTable +- a "wbw_datatables_serialize" route to retrieve with an XML HTTP request a managed entity by a DataTable into JSON format If you like this package, pay me a beer (or a coffee) [![paypal.me](https://img.shields.io/badge/paypal.me-webeweb-003087.svg?style=flat-square&logo=paypal)](https://www.paypal.me/webeweb) @@ -79,7 +79,7 @@ in the `app/AppKernel.php` file of your project: // ... new WBW\Bundle\CoreBundle\WBWCoreBundle(), new WBW\Bundle\BootstrapBundle\WBWBootstrapBundle(), - new WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle(), + new WBW\Bundle\DataTablesBundle\WBWDataTablesBundle(), ]; // ... @@ -108,8 +108,8 @@ wbw_core: wbw_bootstrap: version: 3 -# jQuery DataTables configuration -wbw_jquery_datatables: +# DataTables configuration +wbw_datatables: theme: "bootstrap" plugins: - "responsive" @@ -117,15 +117,15 @@ wbw_jquery_datatables: > IMPORTANT NOTICE: For use with Bootstrap 4 or 5, replace '3' by version number > into wbw_bootstrap.version and append the number number at 'bootstrap' into -> wbw_jquery_datatables theme. +> wbw_datatables theme. Add the bundle routing in the `app/config/routing.yml` file of your project: ```yaml # ... -wbw_jquery_datatables: +wbw_datatables: prefix: "/" - resource: "@WBWJQueryDataTablesBundle/Resources/config/routing.yml" + resource: "@WBWDataTablesBundle/Resources/config/routing.yml" ``` ## Usage @@ -135,7 +135,7 @@ Read the [documentation](Resources/doc/index.md). The following commands are available: ```bash -php bin/console wbw:jquery:datatables:provider:list +php bin/console wbw:datatables:provider:list ``` ## Testing diff --git a/Renderer/Assets/ColorRendererTrait.php b/Renderer/Assets/ColorRendererTrait.php index 05283e41..c6158e6c 100644 --- a/Renderer/Assets/ColorRendererTrait.php +++ b/Renderer/Assets/ColorRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets; +namespace WBW\Bundle\DataTablesBundle\Renderer\Assets; -class_alias("WBW\Library\Symfony\Renderer\Assets\ColorRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets\ColorRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Assets\ColorRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Assets\ColorRendererTrait"); diff --git a/Renderer/Assets/EnabledBadgeRendererTrait.php b/Renderer/Assets/EnabledBadgeRendererTrait.php index aaa34b2f..cd11ecc1 100644 --- a/Renderer/Assets/EnabledBadgeRendererTrait.php +++ b/Renderer/Assets/EnabledBadgeRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,17 +11,17 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets; +namespace WBW\Bundle\DataTablesBundle\Renderer\Assets; use Symfony\Contracts\Translation\TranslatorInterface; use WBW\Bundle\BootstrapBundle\Twig\Extension\Component\BadgeTwigExtension; -use WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle; +use WBW\Bundle\DataTablesBundle\WBWDataTablesBundle; /** * Enabled badge renderer trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Renderer\Assets */ trait EnabledBadgeRendererTrait { @@ -52,7 +52,7 @@ protected function renderEnabledBadge(?bool $enabled): ?string { } $method = sprintf("bootstrapBadge%sFunction", true === $enabled ? "Success" : "Danger"); - $content = $this->getTranslator()->trans(true === $enabled ? "label.enabled" : "label.disabled", [], WBWJQueryDataTablesBundle::getTranslationDomain()); + $content = $this->getTranslator()->trans(true === $enabled ? "label.enabled" : "label.disabled", [], WBWDataTablesBundle::getTranslationDomain()); return $this->getBadgeTwigExtension()->$method(["content" => $content]); } diff --git a/Renderer/Assets/EnabledLabelRendererTrait.php b/Renderer/Assets/EnabledLabelRendererTrait.php index 3500655d..1b3e6cbf 100644 --- a/Renderer/Assets/EnabledLabelRendererTrait.php +++ b/Renderer/Assets/EnabledLabelRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,17 +11,17 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets; +namespace WBW\Bundle\DataTablesBundle\Renderer\Assets; use Symfony\Contracts\Translation\TranslatorInterface; use WBW\Bundle\BootstrapBundle\Twig\Extension\Component\LabelTwigExtension; -use WBW\Bundle\JQuery\DataTablesBundle\WBWJQueryDataTablesBundle; +use WBW\Bundle\DataTablesBundle\WBWDataTablesBundle; /** * Enabled label renderer trait. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Renderer\Assets */ trait EnabledLabelRendererTrait { @@ -52,7 +52,7 @@ protected function renderEnabledLabel(?bool $enabled): ?string { } $method = sprintf("bootstrapLabel%sFunction", true === $enabled ? "Success" : "Danger"); - $content = $this->getTranslator()->trans(true === $enabled ? "label.enabled" : "label.disabled", [], WBWJQueryDataTablesBundle::getTranslationDomain()); + $content = $this->getTranslator()->trans(true === $enabled ? "label.enabled" : "label.disabled", [], WBWDataTablesBundle::getTranslationDomain()); return $this->getLabelTwigExtension()->$method(["content" => $content]); } diff --git a/Renderer/Assets/IconRendererTrait.php b/Renderer/Assets/IconRendererTrait.php index 4fc66702..6d1ba71d 100644 --- a/Renderer/Assets/IconRendererTrait.php +++ b/Renderer/Assets/IconRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets; +namespace WBW\Bundle\DataTablesBundle\Renderer\Assets; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Assets\IconRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets\IconRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Assets\IconRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Assets\IconRendererTrait"); diff --git a/Renderer/Assets/ImageRendererTrait.php b/Renderer/Assets/ImageRendererTrait.php index 78038ec4..2183bee2 100644 --- a/Renderer/Assets/ImageRendererTrait.php +++ b/Renderer/Assets/ImageRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets; +namespace WBW\Bundle\DataTablesBundle\Renderer\Assets; -class_alias("WBW\Library\Symfony\Renderer\Assets\ImageRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Assets\ImageRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Assets\ImageRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Assets\ImageRendererTrait"); diff --git a/Renderer/CenterAlignedRendererTrait.php b/Renderer/CenterAlignedRendererTrait.php index 2a1bf075..fe1e3074 100644 --- a/Renderer/CenterAlignedRendererTrait.php +++ b/Renderer/CenterAlignedRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer; +namespace WBW\Bundle\DataTablesBundle\Renderer; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\CenterAlignedRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\CenterAlignedRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\CenterAlignedRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\CenterAlignedRendererTrait"); diff --git a/Renderer/ColumnWidthInterface.php b/Renderer/ColumnWidthInterface.php index 4ac89611..1c0f28e8 100644 --- a/Renderer/ColumnWidthInterface.php +++ b/Renderer/ColumnWidthInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,13 +11,13 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer; +namespace WBW\Bundle\DataTablesBundle\Renderer; /** * Column width interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Renderer + * @package WBW\Bundle\DataTablesBundle\Renderer */ interface ColumnWidthInterface { diff --git a/Renderer/DateTimes/DateRendererTrait.php b/Renderer/DateTimes/DateRendererTrait.php index 8f8fcba3..5aa636a4 100644 --- a/Renderer/DateTimes/DateRendererTrait.php +++ b/Renderer/DateTimes/DateRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\DateTimes; +namespace WBW\Bundle\DataTablesBundle\Renderer\DateTimes; -class_alias("WBW\Library\Symfony\Renderer\DateTimes\DateRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\DateTimes\DateRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\DateTimes\DateRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\DateTimes\DateRendererTrait"); diff --git a/Renderer/DateTimes/DateTimeRendererTrait.php b/Renderer/DateTimes/DateTimeRendererTrait.php index fb752abc..defd9f92 100644 --- a/Renderer/DateTimes/DateTimeRendererTrait.php +++ b/Renderer/DateTimes/DateTimeRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\DateTimes; +namespace WBW\Bundle\DataTablesBundle\Renderer\DateTimes; -class_alias("WBW\Library\Symfony\Renderer\DateTimes\DateTimeRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\DateTimes\DateTimeRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\DateTimes\DateTimeRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\DateTimes\DateTimeRendererTrait"); diff --git a/Renderer/Floats/FloatRendererTrait.php b/Renderer/Floats/FloatRendererTrait.php index 76236cd1..da3517ac 100644 --- a/Renderer/Floats/FloatRendererTrait.php +++ b/Renderer/Floats/FloatRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2021 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Floats; +namespace WBW\Bundle\DataTablesBundle\Renderer\Floats; -class_alias("WBW\Library\Symfony\Renderer\Floats\FloatRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Floats\FloatRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Floats\FloatRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Floats\FloatRendererTrait"); diff --git a/Renderer/RightAlignedRendererTrait.php b/Renderer/RightAlignedRendererTrait.php index 57b8c1b7..90f62641 100644 --- a/Renderer/RightAlignedRendererTrait.php +++ b/Renderer/RightAlignedRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer; +namespace WBW\Bundle\DataTablesBundle\Renderer; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\RightAlignedRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\RightAlignedRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\RightAlignedRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\RightAlignedRendererTrait"); diff --git a/Renderer/Strings/BoldTextRendererTrait.php b/Renderer/Strings/BoldTextRendererTrait.php index 50657a97..a4aa2b8e 100644 --- a/Renderer/Strings/BoldTextRendererTrait.php +++ b/Renderer/Strings/BoldTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\BoldTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\BoldTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\BoldTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\BoldTextRendererTrait"); diff --git a/Renderer/Strings/CenterAlignedTextRendererTrait.php b/Renderer/Strings/CenterAlignedTextRendererTrait.php index f584e589..5a91a6b9 100644 --- a/Renderer/Strings/CenterAlignedTextRendererTrait.php +++ b/Renderer/Strings/CenterAlignedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\CenterAlignedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\CenterAlignedTextRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\CenterAlignedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\CenterAlignedTextRendererTrait"); diff --git a/Renderer/Strings/DeletedTextRendererTrait.php b/Renderer/Strings/DeletedTextRendererTrait.php index 0d6a056b..7a61d579 100644 --- a/Renderer/Strings/DeletedTextRendererTrait.php +++ b/Renderer/Strings/DeletedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\DeletedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\DeletedTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\DeletedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\DeletedTextRendererTrait"); diff --git a/Renderer/Strings/InsertedTextRendererTrait.php b/Renderer/Strings/InsertedTextRendererTrait.php index d929bb6a..7c148a6f 100644 --- a/Renderer/Strings/InsertedTextRendererTrait.php +++ b/Renderer/Strings/InsertedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\InsertedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\InsertedTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\InsertedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\InsertedTextRendererTrait"); diff --git a/Renderer/Strings/ItalicTextRendererTrait.php b/Renderer/Strings/ItalicTextRendererTrait.php index 44e93901..f34a27ea 100644 --- a/Renderer/Strings/ItalicTextRendererTrait.php +++ b/Renderer/Strings/ItalicTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\ItalicTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\ItalicTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\ItalicTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\ItalicTextRendererTrait"); diff --git a/Renderer/Strings/JustifiedAlignedTextRendererTrait.php b/Renderer/Strings/JustifiedAlignedTextRendererTrait.php index ff7d3157..e1c196cf 100644 --- a/Renderer/Strings/JustifiedAlignedTextRendererTrait.php +++ b/Renderer/Strings/JustifiedAlignedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\JustifiedAlignedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\JustifiedAlignedTextRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\JustifiedAlignedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\JustifiedAlignedTextRendererTrait"); diff --git a/Renderer/Strings/LeftAlignedTextRendererTrait.php b/Renderer/Strings/LeftAlignedTextRendererTrait.php index af599648..00bc4aef 100644 --- a/Renderer/Strings/LeftAlignedTextRendererTrait.php +++ b/Renderer/Strings/LeftAlignedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\LeftAlignedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\LeftAlignedTextRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\LeftAlignedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\LeftAlignedTextRendererTrait"); diff --git a/Renderer/Strings/MarkedTextRendererTrait.php b/Renderer/Strings/MarkedTextRendererTrait.php index 672d54e0..7937fc3a 100644 --- a/Renderer/Strings/MarkedTextRendererTrait.php +++ b/Renderer/Strings/MarkedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\MarkedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\MarkedTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\MarkedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\MarkedTextRendererTrait"); diff --git a/Renderer/Strings/NoWrapTextRendererTrait.php b/Renderer/Strings/NoWrapTextRendererTrait.php index 6d06cda4..a22e6dfc 100644 --- a/Renderer/Strings/NoWrapTextRendererTrait.php +++ b/Renderer/Strings/NoWrapTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\NoWrapTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\NoWrapTextRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\NoWrapTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\NoWrapTextRendererTrait"); diff --git a/Renderer/Strings/RightAlignedTextRendererTrait.php b/Renderer/Strings/RightAlignedTextRendererTrait.php index fb2321ee..71de0a88 100644 --- a/Renderer/Strings/RightAlignedTextRendererTrait.php +++ b/Renderer/Strings/RightAlignedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\RightAlignedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\RightAlignedTextRendererTrait"); +class_alias("WBW\Bundle\BootstrapBundle\Renderer\Strings\RightAlignedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\RightAlignedTextRendererTrait"); diff --git a/Renderer/Strings/SmallTextRendererTrait.php b/Renderer/Strings/SmallTextRendererTrait.php index 3fac417b..601093d2 100644 --- a/Renderer/Strings/SmallTextRendererTrait.php +++ b/Renderer/Strings/SmallTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\SmallTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\SmallTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\SmallTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\SmallTextRendererTrait"); diff --git a/Renderer/Strings/StrikethroughTextRendererTrait.php b/Renderer/Strings/StrikethroughTextRendererTrait.php index bb32c104..4eeebbe4 100644 --- a/Renderer/Strings/StrikethroughTextRendererTrait.php +++ b/Renderer/Strings/StrikethroughTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\StrikethroughTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\StrikethroughTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\StrikethroughTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\StrikethroughTextRendererTrait"); diff --git a/Renderer/Strings/StringWrapperTrait.php b/Renderer/Strings/StringWrapperTrait.php index e2924f0e..a3c23ea9 100644 --- a/Renderer/Strings/StringWrapperTrait.php +++ b/Renderer/Strings/StringWrapperTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\StringWrapperTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\StringWrapperTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\StringWrapperTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\StringWrapperTrait"); diff --git a/Renderer/Strings/UnderlinedTextRendererTrait.php b/Renderer/Strings/UnderlinedTextRendererTrait.php index 62b115e0..882a5fde 100644 --- a/Renderer/Strings/UnderlinedTextRendererTrait.php +++ b/Renderer/Strings/UnderlinedTextRendererTrait.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2022 WEBEWEB * @@ -11,6 +11,6 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings; +namespace WBW\Bundle\DataTablesBundle\Renderer\Strings; -class_alias("WBW\Library\Symfony\Renderer\Strings\UnderlinedTextRendererTrait", "WBW\Bundle\JQuery\DataTablesBundle\Renderer\Strings\UnderlinedTextRendererTrait"); +class_alias("WBW\Library\Symfony\Renderer\Strings\UnderlinedTextRendererTrait", "WBW\Bundle\DataTablesBundle\Renderer\Strings\UnderlinedTextRendererTrait"); diff --git a/Repository/DataTablesRepositoryInterface.php b/Repository/DataTablesRepositoryInterface.php index 01bf99b3..47085197 100644 --- a/Repository/DataTablesRepositoryInterface.php +++ b/Repository/DataTablesRepositoryInterface.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,16 +11,16 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Repository; +namespace WBW\Bundle\DataTablesBundle\Repository; use Doctrine\ORM\QueryBuilder; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; /** * DataTables repository interface. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Provider; + * @package WBW\Bundle\DataTablesBundle\Provider; */ interface DataTablesRepositoryInterface { diff --git a/Repository/DefaultDataTablesRepository.php b/Repository/DefaultDataTablesRepository.php index bbad3ec5..102e15bf 100644 --- a/Repository/DefaultDataTablesRepository.php +++ b/Repository/DefaultDataTablesRepository.php @@ -3,7 +3,7 @@ declare(strict_types = 1); /* - * This file is part of the jquery-datatables-bundle package. + * This file is part of the datatables-bundle package. * * (c) 2018 WEBEWEB * @@ -11,19 +11,19 @@ * file that was distributed with this source code. */ -namespace WBW\Bundle\JQuery\DataTablesBundle\Repository; +namespace WBW\Bundle\DataTablesBundle\Repository; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\QueryBuilder; use Throwable; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Helper\DataTablesRepositoryHelper; +use WBW\Bundle\DataTablesBundle\Api\DataTablesWrapperInterface; +use WBW\Bundle\DataTablesBundle\Helper\DataTablesRepositoryHelper; /** * Default DataTables repository. * * @author webeweb - * @package WBW\Bundle\JQuery\DataTablesBundle\Repository + * @package WBW\Bundle\DataTablesBundle\Repository * @abstract */ abstract class DefaultDataTablesRepository extends EntityRepository implements DataTablesRepositoryInterface { diff --git a/Resources/config/assets.yml b/Resources/config/assets.yml index 94d2be15..df864a00 100644 --- a/Resources/config/assets.yml +++ b/Resources/config/assets.yml @@ -1,7 +1,7 @@ # Resources/config/assets.yml assets: - wbw.jquery_datatables.asset.jquery_datatables: + wbw.datatables.asset.datatables: version: "1.13.8" themes: - "datatables" diff --git a/Resources/config/commands.yml b/Resources/config/commands.yml index fab341a7..db9012d5 100644 --- a/Resources/config/commands.yml +++ b/Resources/config/commands.yml @@ -1,11 +1,11 @@ # Resources/config/commands.yml services: - wbw.jquery.datatables.command.list_provider: - class: WBW\Bundle\JQuery\DataTablesBundle\Command\ListDataTablesProviderCommand + wbw.datatables.command.list_provider: + class: WBW\Bundle\DataTablesBundle\Command\ListDataTablesProviderCommand public: false calls: - - [ "setDataTablesManager", [ "@wbw.jquery.datatables.manager" ] ] + - [ "setDataTablesManager", [ "@wbw.datatables.manager" ] ] - [ "setTranslator", [ "@translator" ] ] tags: - { name: "console.command" } diff --git a/Resources/config/controllers.yml b/Resources/config/controllers.yml index 40607f8a..a765b165 100644 --- a/Resources/config/controllers.yml +++ b/Resources/config/controllers.yml @@ -1,15 +1,15 @@ # Resources/config/controllers.yml services: - WBW\Bundle\JQuery\DataTablesBundle\Controller\DataTablesController: - alias: "wbw.jquery.datatables.controller.datatables" + WBW\Bundle\DataTablesBundle\Controller\DataTablesController: + alias: "wbw.datatables.controller.datatables" public: true - wbw.jquery.datatables.controller.datatables: - class: WBW\Bundle\JQuery\DataTablesBundle\Controller\DataTablesController + wbw.datatables.controller.datatables: + class: WBW\Bundle\DataTablesBundle\Controller\DataTablesController public: false calls: - [ "setContainer", [ "@Psr\\Container\\ContainerInterface" ] ] - - [ "setDataTablesManager", [ "@wbw.jquery.datatables.manager" ] ] + - [ "setDataTablesManager", [ "@wbw.datatables.manager" ] ] tags: - { name: "container.service_subscriber" } diff --git a/Resources/config/managers.yml b/Resources/config/managers.yml index c4f1adfe..12acee7c 100644 --- a/Resources/config/managers.yml +++ b/Resources/config/managers.yml @@ -1,7 +1,7 @@ # Resources/config/managers.yml services: - wbw.jquery.datatables.manager: - class: WBW\Bundle\JQuery\DataTablesBundle\Manager\DataTablesManager + wbw.datatables.manager: + class: WBW\Bundle\DataTablesBundle\Manager\DataTablesManager public: false arguments: [ "@logger" ] diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 2e715ded..3a6d4b39 100644 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -1,4 +1,4 @@ # Resources/config/routing.yml -wbw_jquery_datatables: +wbw_datatables: prefix: "/" - resource: "@WBWJQueryDataTablesBundle/Resources/config/routing/datatables.yml" + resource: "@WBWDataTablesBundle/Resources/config/routing/datatables.yml" diff --git a/Resources/config/routing/datatables.yml b/Resources/config/routing/datatables.yml index c9e4221f..748b39e4 100644 --- a/Resources/config/routing/datatables.yml +++ b/Resources/config/routing/datatables.yml @@ -1,40 +1,40 @@ # Resources/config/routing/datatables.yml -wbw_jquery_datatables_delete: +wbw_datatables_delete: path: "/datatables/{name}/delete/{id}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::deleteAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::deleteAction" } methods: [ "GET" ] -wbw_jquery_datatables_edit: +wbw_datatables_edit: path: "/datatables/{name}/edit/{id}/{data}/{value}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::editAction", value: null } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::editAction", value: null } methods: [ "GET", "POST" ] -wbw_jquery_datatables_export: +wbw_datatables_export: path: "/datatables/{name}/export" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::exportAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::exportAction" } methods: [ "GET", "POST" ] -wbw_jquery_datatables_index: +wbw_datatables_index: path: "/datatables/{name}/index" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::indexAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::indexAction" } methods: [ "GET", "POST" ] -wbw_jquery_datatables_options: +wbw_datatables_options: path: "/datatables/{name}/options" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::optionsAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::optionsAction" } methods: [ "GET" ] -wbw_jquery_datatables_render: +wbw_datatables_render: path: "/datatables/{name}/render/{alone}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::renderAction", alone: null } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::renderAction", alone: null } methods: [ "GET" ] -wbw_jquery_datatables_serialize: +wbw_datatables_serialize: path: "/datatables/{name}/serialize/{id}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::serializeAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::serializeAction" } methods: [ "GET" ] -wbw_jquery_datatables_show: +wbw_datatables_show: path: "/datatables/{name}/show/{id}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::serializeAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::serializeAction" } methods: [ "GET" ] diff --git a/Resources/config/twig.yml b/Resources/config/twig.yml index 5083e7a0..5dc18811 100644 --- a/Resources/config/twig.yml +++ b/Resources/config/twig.yml @@ -1,8 +1,8 @@ # Resources/config/services.yml services: - wbw.jquery.datatables.twig.extension: - class: WBW\Bundle\JQuery\DataTablesBundle\Twig\Extension\DataTablesTwigExtension + wbw.datatables.twig.extension: + class: WBW\Bundle\DataTablesBundle\Twig\Extension\DataTablesTwigExtension arguments: [ "@twig", "@wbw.core.twig.extension.assets", "%kernel.environment%" ] public: false tags: diff --git a/Resources/doc/index.md b/Resources/doc/index.md index cf79fb20..c20651f9 100644 --- a/Resources/doc/index.md +++ b/Resources/doc/index.md @@ -209,7 +209,7 @@ Create a repository in the `src/AppBundle/Repository` directory of your project: ```php namespace AppBundle\Repository; -use WBW\Bundle\JQuery\DataTablesBundle\Repository\DefaultDataTablesRepository; +use WBW\Bundle\DataTablesBundle\Repository\DefaultDataTablesRepository; /** * Employee repository. @@ -228,12 +228,12 @@ namespace AppBundle\Provider; use AppBundle\Entity\Employee; use DateTime; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesColumnInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesResponseInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Factory\DataTablesFactory; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesCSVExporterInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesEditorInterface; -use WBW\Bundle\JQuery\DataTablesBundle\Provider\DataTablesProviderInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesColumnInterface; +use WBW\Bundle\DataTablesBundle\Api\DataTablesResponseInterface; +use WBW\Bundle\DataTablesBundle\Factory\DataTablesFactory; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesCSVExporterInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesEditorInterface; +use WBW\Bundle\DataTablesBundle\Provider\DataTablesProviderInterface; /** * Employee DataTables provider. @@ -478,7 +478,7 @@ services: app.datatables.provider.employee: class: AppBundle\Provider\EmployeeDataTablesProvider tags: - - { name: "wbw.jquery.datatables.provider" } + - { name: "wbw.datatables.provider" } ``` You can add as many providers as you want as long as the name of the providers are different. @@ -494,7 +494,7 @@ Create a template in the `src/AppBundle/Resources/views/Employee`directory of yo {{ parent() }} {% include "@WBWCore/assets/_stylesheets.html.twig" %} {% include "@WBWBootstrap/assets/_stylesheets.html.twig" %} - {% include "@WBWJQueryDataTables/assets/_stylesheets.html.twig" %} + {% include "@WBWDataTables/assets/_stylesheets.html.twig" %} {% endblock %} {% block content %} @@ -505,7 +505,7 @@ Create a template in the `src/AppBundle/Resources/views/Employee`directory of yo {{ parent() }} {% include "@WBWCore/assets/_javascripts.html.twig" %} {% include "@WBWBootstrap/assets/_javascripts.html.twig" %} - {% include "@WBWJQueryDataTables/assets/_javascripts.html.twig" %} + {% include "@WBWDataTables/assets/_javascripts.html.twig" %} {{ jQueryDataTables(dtWrapper) }} {% endblock %} ``` diff --git a/Resources/translations/WBWJQueryDataTablesBundle.en.yml b/Resources/translations/WBWDataTablesBundle.en.yml similarity index 94% rename from Resources/translations/WBWJQueryDataTablesBundle.en.yml rename to Resources/translations/WBWDataTablesBundle.en.yml index e0809648..28a91d4b 100644 --- a/Resources/translations/WBWJQueryDataTablesBundle.en.yml +++ b/Resources/translations/WBWDataTablesBundle.en.yml @@ -1,4 +1,4 @@ -# Resources/translations/WBWJQueryDataTablesBundle.en.yml +# Resources/translations/WBWDataTablesBundle.en.yml controller: datatables: delete: diff --git a/Resources/translations/WBWJQueryDataTablesBundle.fr.yml b/Resources/translations/WBWDataTablesBundle.fr.yml similarity index 92% rename from Resources/translations/WBWJQueryDataTablesBundle.fr.yml rename to Resources/translations/WBWDataTablesBundle.fr.yml index d18bc26f..a678f00d 100644 --- a/Resources/translations/WBWJQueryDataTablesBundle.fr.yml +++ b/Resources/translations/WBWDataTablesBundle.fr.yml @@ -1,4 +1,4 @@ -# Resources/translations/WBWJQueryDataTablesBundle.en.yml +# Resources/translations/WBWDataTablesBundle.en.yml controller: datatables: delete: diff --git a/Resources/views/assets/_functions.html.twig b/Resources/views/assets/_functions.html.twig index 201c1e69..5d52a93b 100644 --- a/Resources/views/assets/_functions.html.twig +++ b/Resources/views/assets/_functions.html.twig @@ -1,8 +1,8 @@ {# Resources/views/assets/_functions.html.twig #} -{% set _DOMAIN = constant("WBW\\Bundle\\JQuery\\DataTablesBundle\\WBWJQueryDataTablesBundle::TRANSLATION_DOMAIN") %} +{% set _DOMAIN = constant("WBW\\Bundle\\DataTablesBundle\\WBWDataTablesBundle::TRANSLATION_DOMAIN") %} {% for _appPlugin in _appPlugins %} {% if ("buttons" == _appPlugin) %} - {% set _requires = getContainerParameter("wbw.jquery_datatables.asset.jquery_datatables").requires %} + {% set _requires = getContainerParameter("wbw.datatables.asset.datatables").requires %} diff --git a/Resources/views/assets/_stylesheets.html.twig b/Resources/views/assets/_stylesheets.html.twig index f8c76f0d..fc86be4d 100644 --- a/Resources/views/assets/_stylesheets.html.twig +++ b/Resources/views/assets/_stylesheets.html.twig @@ -1,11 +1,11 @@ {# Resources/views/assets/_stylesheets.html.twig #} -{% set _webPath = "bundles/wbwjquerydatatables" %} -{% set _version = getContainerParameter("wbw.jquery_datatables.asset.jquery_datatables").version %} -{% set _plugins = getContainerParameter("wbw.jquery_datatables.asset.jquery_datatables").plugins %} -{% set _appTheme = getContainerParameter("wbw_jquery_datatables.theme") %} -{% set _appPlugins = getContainerParameter("wbw_jquery_datatables.plugins") %} +{% set _webPath = "bundles/wbwdatatables" %} +{% set _version = getContainerParameter("wbw.datatables.asset.datatables").version %} +{% set _plugins = getContainerParameter("wbw.datatables.asset.datatables").plugins %} +{% set _appTheme = getContainerParameter("wbw_datatables.theme") %} +{% set _appPlugins = getContainerParameter("wbw_datatables.plugins") %} -{% if ("prod" != app.environment) %}{% endif %} +{% if ("prod" != app.environment) %}{% endif %} {% for _appPlugin in _appPlugins %} diff --git a/Tests/AbstractTestCase.php b/Tests/AbstractTestCase.php index baafa9e9..790754bc 100644 --- a/Tests/AbstractTestCase.php +++ b/Tests/AbstractTestCase.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests + * @package WBW\Bundle\DataTablesBundle\Tests * @abstract */ abstract class AbstractTestCase extends TestCase { diff --git a/Tests/AbstractWebTestCase.php b/Tests/AbstractWebTestCase.php index dbbad61f..8288da84 100644 --- a/Tests/AbstractWebTestCase.php +++ b/Tests/AbstractWebTestCase.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests + * @package WBW\Bundle\DataTablesBundle\Tests * @abstract */ abstract class AbstractWebTestCase extends WebTestCase { @@ -37,22 +37,22 @@ public static function listCSSAssets(): array { // Load the YAML configuration. $config = ConfigurationHelper::loadYamlConfig($directory, "assets"); - $version = $config["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["version"]; - $plugins = $config["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["plugins"]; + $version = $config["assets"]["wbw.datatables.asset.datatables"]["version"]; + $plugins = $config["assets"]["wbw.datatables.asset.datatables"]["plugins"]; $assets = []; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-' . $version . '/css/dataTables.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/css/autoFill.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/css/buttons.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-colreorder-' . $plugins["colreorder"]["version"] . '/css/colReorder.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-fixedcolumns-' . $plugins["fixedcolumns"]["version"] . '/css/fixedColumns.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-fixedheader-' . $plugins["fixedheader"]["version"] . '/css/fixedHeader.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-keytable-' . $plugins["keytable"]["version"] . '/css/keyTable.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/css/responsive.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-rowgroup-' . $plugins["rowgroup"]["version"] . '/css/rowGroup.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-rowreorder-' . $plugins["rowreorder"]["version"] . '/css/rowReorder.bootstrap.min.css"'; - $assets[] = 'href="/bundles/wbwjquerydatatables/datatables-select-' . $plugins["select"]["version"] . '/css/select.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-' . $version . '/css/dataTables.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/css/autoFill.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/css/buttons.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-colreorder-' . $plugins["colreorder"]["version"] . '/css/colReorder.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-fixedcolumns-' . $plugins["fixedcolumns"]["version"] . '/css/fixedColumns.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-fixedheader-' . $plugins["fixedheader"]["version"] . '/css/fixedHeader.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-keytable-' . $plugins["keytable"]["version"] . '/css/keyTable.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/css/responsive.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-rowgroup-' . $plugins["rowgroup"]["version"] . '/css/rowGroup.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-rowreorder-' . $plugins["rowreorder"]["version"] . '/css/rowReorder.bootstrap.min.css"'; + $assets[] = 'href="/bundles/wbwdatatables/datatables-select-' . $plugins["select"]["version"] . '/css/select.bootstrap.min.css"'; return $assets; } @@ -68,36 +68,36 @@ public static function listJavascriptAssets(): array { // Load the YAML configuration. $config = ConfigurationHelper::loadYamlConfig($directory, "assets"); - $version = $config["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["version"]; - $requires = $config["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["requires"]; - $plugins = $config["assets"]["wbw.jquery_datatables.asset.jquery_datatables"]["plugins"]; + $version = $config["assets"]["wbw.datatables.asset.datatables"]["version"]; + $requires = $config["assets"]["wbw.datatables.asset.datatables"]["requires"]; + $plugins = $config["assets"]["wbw.datatables.asset.datatables"]["plugins"]; $assets = []; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-' . $version . '/js/jquery.dataTables.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-' . $version . '/js/dataTables.bootstrap.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/js/dataTables.autoFill.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/js/autoFill.bootstrap.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-jszip-' . $requires["jszip"]["version"] . '/jszip.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-pdfmake-' . $requires["pdfmake"]["version"] . '/pdfmake.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-pdfmake-' . $requires["pdfmake"]["version"] . '/vfs_fonts.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/dataTables.buttons.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.colVis.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.flash.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.html5.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.print.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.bootstrap.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-colreorder-' . $plugins["colreorder"]["version"] . '/js/dataTables.colReorder.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-fixedcolumns-' . $plugins["fixedcolumns"]["version"] . '/js/dataTables.fixedColumns.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-fixedheader-' . $plugins["fixedheader"]["version"] . '/js/dataTables.fixedHeader.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-keytable-' . $plugins["keytable"]["version"] . '/js/dataTables.keyTable.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/js/dataTables.responsive.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/js/responsive.bootstrap.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-rowgroup-' . $plugins["rowgroup"]["version"] . '/js/dataTables.rowGroup.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-rowreorder-' . $plugins["rowreorder"]["version"] . '/js/dataTables.rowReorder.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-scroller-' . $plugins["scroller"]["version"] . '/js/dataTables.scroller.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/datatables-select-' . $plugins["select"]["version"] . '/js/dataTables.select.min.js"'; - $assets[] = 'src="/bundles/wbwjquerydatatables/editable-table/mindmup-editabletable.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-' . $version . '/js/jquery.dataTables.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-' . $version . '/js/dataTables.bootstrap.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/js/dataTables.autoFill.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-autofill-' . $plugins["autofill"]["version"] . '/js/autoFill.bootstrap.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-jszip-' . $requires["jszip"]["version"] . '/jszip.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-pdfmake-' . $requires["pdfmake"]["version"] . '/pdfmake.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-pdfmake-' . $requires["pdfmake"]["version"] . '/vfs_fonts.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/dataTables.buttons.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.colVis.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.flash.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.html5.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.print.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-buttons-' . $plugins["buttons"]["version"] . '/js/buttons.bootstrap.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-colreorder-' . $plugins["colreorder"]["version"] . '/js/dataTables.colReorder.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-fixedcolumns-' . $plugins["fixedcolumns"]["version"] . '/js/dataTables.fixedColumns.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-fixedheader-' . $plugins["fixedheader"]["version"] . '/js/dataTables.fixedHeader.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-keytable-' . $plugins["keytable"]["version"] . '/js/dataTables.keyTable.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/js/dataTables.responsive.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-responsive-' . $plugins["responsive"]["version"] . '/js/responsive.bootstrap.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-rowgroup-' . $plugins["rowgroup"]["version"] . '/js/dataTables.rowGroup.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-rowreorder-' . $plugins["rowreorder"]["version"] . '/js/dataTables.rowReorder.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-scroller-' . $plugins["scroller"]["version"] . '/js/dataTables.scroller.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/datatables-select-' . $plugins["select"]["version"] . '/js/dataTables.select.min.js"'; + $assets[] = 'src="/bundles/wbwdatatables/editable-table/mindmup-editabletable.js"'; return $assets; } diff --git a/Tests/Api/DataTablesColumnInterfaceTest.php b/Tests/Api/DataTablesColumnInterfaceTest.php index 10a96e92..1333c81e 100644 --- a/Tests/Api/DataTablesColumnInterfaceTest.php +++ b/Tests/Api/DataTablesColumnInterfaceTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Api + * @package WBW\Bundle\DataTablesBundle\Tests\Api */ class DataTablesColumnInterfaceTest extends AbstractTestCase { diff --git a/Tests/Api/DataTablesOrderInterfaceTest.php b/Tests/Api/DataTablesOrderInterfaceTest.php index 774ebc66..14ffa4d2 100644 --- a/Tests/Api/DataTablesOrderInterfaceTest.php +++ b/Tests/Api/DataTablesOrderInterfaceTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Api + * @package WBW\Bundle\DataTablesBundle\Tests\Api */ class DataTablesOrderInterfaceTest extends AbstractTestCase { diff --git a/Tests/Api/DataTablesResponseInterfaceTest.php b/Tests/Api/DataTablesResponseInterfaceTest.php index 18242718..4f611040 100644 --- a/Tests/Api/DataTablesResponseInterfaceTest.php +++ b/Tests/Api/DataTablesResponseInterfaceTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Api + * @package WBW\Bundle\DataTablesBundle\Tests\Api */ class DataTablesResponseInterfaceTest extends AbstractTestCase { diff --git a/Tests/Api/DataTablesSearchInterfaceTest.php b/Tests/Api/DataTablesSearchInterfaceTest.php index 91a81095..60fa8164 100644 --- a/Tests/Api/DataTablesSearchInterfaceTest.php +++ b/Tests/Api/DataTablesSearchInterfaceTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Api + * @package WBW\Bundle\DataTablesBundle\Tests\Api */ class DataTablesSearchInterfaceTest extends AbstractTestCase { diff --git a/Tests/Command/ListDataTablesProviderCommandTest.php b/Tests/Command/ListDataTablesProviderCommandTest.php index 2290bed8..8af1cede 100644 --- a/Tests/Command/ListDataTablesProviderCommandTest.php +++ b/Tests/Command/ListDataTablesProviderCommandTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Command + * @package WBW\Bundle\DataTablesBundle\Tests\Command */ class ListDataTablesProviderCommandTest extends AbstractWebTestCase { @@ -59,8 +59,8 @@ public function testExecute(): void { */ public function test__construct(): void { - $this->assertEquals("wbw.jquery.datatables.command.list_provider", ListDataTablesProviderCommand::SERVICE_NAME); - $this->assertEquals("wbw:jquery:datatables:provider:list", ListDataTablesProviderCommand::COMMAND_NAME); + $this->assertEquals("wbw.datatables.command.list_provider", ListDataTablesProviderCommand::SERVICE_NAME); + $this->assertEquals("wbw:datatables:provider:list", ListDataTablesProviderCommand::COMMAND_NAME); $obj = new ListDataTablesProviderCommand(); diff --git a/Tests/Controller/DataTablesControllerTest.php b/Tests/Controller/DataTablesControllerTest.php index 002118aa..1af3f856 100644 --- a/Tests/Controller/DataTablesControllerTest.php +++ b/Tests/Controller/DataTablesControllerTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Controller + * @package WBW\Bundle\DataTablesBundle\Tests\Controller */ class DataTablesControllerTest extends AbstractWebTestCase { @@ -819,6 +819,6 @@ public function testShowActionWithStatus404(): void { */ public function test__construct(): void { - $this->assertEquals("wbw.jquery.datatables.controller.datatables", DataTablesController::SERVICE_NAME); + $this->assertEquals("wbw.datatables.controller.datatables", DataTablesController::SERVICE_NAME); } } diff --git a/Tests/Controller/ViewsControllerTest.php b/Tests/Controller/ViewsControllerTest.php index be3db042..ea994d0e 100644 --- a/Tests/Controller/ViewsControllerTest.php +++ b/Tests/Controller/ViewsControllerTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Controller + * @package WBW\Bundle\DataTablesBundle\Tests\Controller */ class ViewsControllerTest extends AbstractWebTestCase { diff --git a/Tests/DependencyInjection/Compiler/DataTablesProviderCompilerPassTest.php b/Tests/DependencyInjection/Compiler/DataTablesProviderCompilerPassTest.php index c57ac40f..7017bf23 100644 --- a/Tests/DependencyInjection/Compiler/DataTablesProviderCompilerPassTest.php +++ b/Tests/DependencyInjection/Compiler/DataTablesProviderCompilerPassTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\DependencyInjection\Compiler + * @package WBW\Bundle\DataTablesBundle\Tests\DependencyInjection\Compiler */ class DataTablesProviderCompilerPassTest extends AbstractTestCase { diff --git a/Tests/DependencyInjection/WBWJQueryDataTablesExtensionTest.php b/Tests/DependencyInjection/WBWDataTablesExtensionTest.php similarity index 63% rename from Tests/DependencyInjection/WBWJQueryDataTablesExtensionTest.php rename to Tests/DependencyInjection/WBWDataTablesExtensionTest.php index 7df90e66..73e0ae3f 100644 --- a/Tests/DependencyInjection/WBWJQueryDataTablesExtensionTest.php +++ b/Tests/DependencyInjection/WBWDataTablesExtensionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\DependencyInjection + * @package WBW\Bundle\DataTablesBundle\Tests\DependencyInjection */ -class WBWJQueryDataTablesExtensionTest extends AbstractTestCase { +class WBWDataTablesExtensionTest extends AbstractTestCase { /** * Configs. @@ -47,7 +47,7 @@ protected function setUp(): void { // Set a configs array mock. $this->configs = [ - WBWJQueryDataTablesExtension::EXTENSION_ALIAS => [], + WBWDataTablesExtension::EXTENSION_ALIAS => [], ]; } @@ -58,9 +58,9 @@ protected function setUp(): void { */ public function testGetAlias(): void { - $obj = new WBWJQueryDataTablesExtension(); + $obj = new WBWDataTablesExtension(); - $this->assertEquals(WBWJQueryDataTablesExtension::EXTENSION_ALIAS, $obj->getAlias()); + $this->assertEquals(WBWDataTablesExtension::EXTENSION_ALIAS, $obj->getAlias()); } /** @@ -70,7 +70,7 @@ public function testGetAlias(): void { */ public function testGetConfiguration(): void { - $obj = new WBWJQueryDataTablesExtension(); + $obj = new WBWDataTablesExtension(); $this->assertInstanceOf(Configuration::class, $obj->getConfiguration([], $this->containerBuilder)); } @@ -83,7 +83,7 @@ public function testGetConfiguration(): void { */ public function testLoad(): void { - $obj = new WBWJQueryDataTablesExtension(); + $obj = new WBWDataTablesExtension(); $obj->load($this->configs, $this->containerBuilder); @@ -107,6 +107,6 @@ public function testLoad(): void { */ public function test__construct(): void { - $this->assertEquals("wbw_jquery_datatables", WBWJQueryDataTablesExtension::EXTENSION_ALIAS); + $this->assertEquals("wbw_datatables", WBWDataTablesExtension::EXTENSION_ALIAS); } } diff --git a/Tests/Event/DataTablesEventTest.php b/Tests/Event/DataTablesEventTest.php index 68bc1a19..9d5ae0e0 100644 --- a/Tests/Event/DataTablesEventTest.php +++ b/Tests/Event/DataTablesEventTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Event + * @package WBW\Bundle\DataTablesBundle\Tests\Event */ class DataTablesEventTest extends AbstractTestCase { @@ -30,16 +30,16 @@ class DataTablesEventTest extends AbstractTestCase { */ public function test__construct(): void { - $this->assertEquals("wbw.jquery.datatables.event.pre_delete", DataTablesEvent::PRE_DELETE); - $this->assertEquals("wbw.jquery.datatables.event.pre_edit", DataTablesEvent::PRE_EDIT); - $this->assertEquals("wbw.jquery.datatables.event.pre_export", DataTablesEvent::PRE_EXPORT); - $this->assertEquals("wbw.jquery.datatables.event.pre_index", DataTablesEvent::PRE_INDEX); - $this->assertEquals("wbw.jquery.datatables.event.pre_serialize", DataTablesEvent::PRE_SERIALIZE); - $this->assertEquals("wbw.jquery.datatables.event.pre_show", DataTablesEvent::PRE_SHOW); - $this->assertEquals("wbw.jquery.datatables.event.post_delete", DataTablesEvent::POST_DELETE); - $this->assertEquals("wbw.jquery.datatables.event.post_edit", DataTablesEvent::POST_EDIT); - $this->assertEquals("wbw.jquery.datatables.event.post_export", DataTablesEvent::POST_EXPORT); - $this->assertEquals("wbw.jquery.datatables.event.post_index", DataTablesEvent::POST_INDEX); + $this->assertEquals("wbw.datatables.event.pre_delete", DataTablesEvent::PRE_DELETE); + $this->assertEquals("wbw.datatables.event.pre_edit", DataTablesEvent::PRE_EDIT); + $this->assertEquals("wbw.datatables.event.pre_export", DataTablesEvent::PRE_EXPORT); + $this->assertEquals("wbw.datatables.event.pre_index", DataTablesEvent::PRE_INDEX); + $this->assertEquals("wbw.datatables.event.pre_serialize", DataTablesEvent::PRE_SERIALIZE); + $this->assertEquals("wbw.datatables.event.pre_show", DataTablesEvent::PRE_SHOW); + $this->assertEquals("wbw.datatables.event.post_delete", DataTablesEvent::POST_DELETE); + $this->assertEquals("wbw.datatables.event.post_edit", DataTablesEvent::POST_EDIT); + $this->assertEquals("wbw.datatables.event.post_export", DataTablesEvent::POST_EXPORT); + $this->assertEquals("wbw.datatables.event.post_index", DataTablesEvent::POST_INDEX); // Set a DataTables provider mock. $provider = $this->getMockBuilder(DataTablesProviderInterface::class)->getMock(); diff --git a/Tests/Exception/AlreadyRegisteredDataTablesProviderExceptionTest.php b/Tests/Exception/AlreadyRegisteredDataTablesProviderExceptionTest.php index 6319de42..e8db44bb 100644 --- a/Tests/Exception/AlreadyRegisteredDataTablesProviderExceptionTest.php +++ b/Tests/Exception/AlreadyRegisteredDataTablesProviderExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class AlreadyRegisteredDataTablesProviderExceptionTest extends AbstractTestCase { diff --git a/Tests/Exception/BadDataTablesCSVExporterExceptionTest.php b/Tests/Exception/BadDataTablesCSVExporterExceptionTest.php index c51fd4dc..a4457d44 100644 --- a/Tests/Exception/BadDataTablesCSVExporterExceptionTest.php +++ b/Tests/Exception/BadDataTablesCSVExporterExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class BadDataTablesCSVExporterExceptionTest extends AbstractTestCase { diff --git a/Tests/Exception/BadDataTablesColumnExceptionTest.php b/Tests/Exception/BadDataTablesColumnExceptionTest.php index 389f5930..72f27008 100644 --- a/Tests/Exception/BadDataTablesColumnExceptionTest.php +++ b/Tests/Exception/BadDataTablesColumnExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class BadDataTablesColumnExceptionTest extends AbstractTestCase { diff --git a/Tests/Exception/BadDataTablesEditorExceptionTest.php b/Tests/Exception/BadDataTablesEditorExceptionTest.php index c4554151..c943bb83 100644 --- a/Tests/Exception/BadDataTablesEditorExceptionTest.php +++ b/Tests/Exception/BadDataTablesEditorExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class BadDataTablesEditorExceptionTest extends AbstractTestCase { diff --git a/Tests/Exception/BadDataTablesRepositoryExceptionTest.php b/Tests/Exception/BadDataTablesRepositoryExceptionTest.php index 7913f8cb..76bb507b 100644 --- a/Tests/Exception/BadDataTablesRepositoryExceptionTest.php +++ b/Tests/Exception/BadDataTablesRepositoryExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class BadDataTablesRepositoryExceptionTest extends AbstractTestCase { diff --git a/Tests/Exception/UnregisteredDataTablesProviderExceptionTest.php b/Tests/Exception/UnregisteredDataTablesProviderExceptionTest.php index 66053688..798f997f 100644 --- a/Tests/Exception/UnregisteredDataTablesProviderExceptionTest.php +++ b/Tests/Exception/UnregisteredDataTablesProviderExceptionTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception + * @package WBW\Bundle\DataTablesBundle\Tests\Exception */ class UnregisteredDataTablesProviderExceptionTest extends AbstractTestCase { diff --git a/Tests/Factory/DataTablesFactoryTest.php b/Tests/Factory/DataTablesFactoryTest.php index e7086018..1de7e987 100644 --- a/Tests/Factory/DataTablesFactoryTest.php +++ b/Tests/Factory/DataTablesFactoryTest.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Factory + * @package WBW\Bundle\DataTablesBundle\Tests\Factory */ class DataTablesFactoryTest extends AbstractTestCase { diff --git a/Tests/Fixtures/Controller/TestViewsController.php b/Tests/Fixtures/Controller/TestViewsController.php index 3b2a9772..57648c97 100644 --- a/Tests/Fixtures/Controller/TestViewsController.php +++ b/Tests/Fixtures/Controller/TestViewsController.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Controller + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Controller */ class TestViewsController extends AbstractController { @@ -28,7 +28,7 @@ class TestViewsController extends AbstractController { * @return Response Returns the response. */ public function assetsJavascriptsAction(): Response { - return $this->render("@WBWJQueryDataTables/assets/_javascripts.html.twig"); + return $this->render("@WBWDataTables/assets/_javascripts.html.twig"); } /** @@ -37,6 +37,6 @@ public function assetsJavascriptsAction(): Response { * @return Response Returns the response. */ public function assetsStylesheetsAction(): Response { - return $this->render("@WBWJQueryDataTables/assets/_stylesheets.html.twig"); + return $this->render("@WBWDataTables/assets/_stylesheets.html.twig"); } } diff --git a/Tests/Fixtures/Entity/Employee.php b/Tests/Fixtures/Entity/Employee.php index 7fef9ca5..ebb5074c 100644 --- a/Tests/Fixtures/Entity/Employee.php +++ b/Tests/Fixtures/Entity/Employee.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Entity + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Entity */ class Employee { diff --git a/Tests/Fixtures/Entity/Office.php b/Tests/Fixtures/Entity/Office.php index c541237c..1c6cfaa3 100644 --- a/Tests/Fixtures/Entity/Office.php +++ b/Tests/Fixtures/Entity/Office.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Entity + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Entity */ class Office { diff --git a/Tests/Fixtures/EventListener/DataTablesEventListener.php b/Tests/Fixtures/EventListener/DataTablesEventListener.php index 69257f6e..e3accd65 100644 --- a/Tests/Fixtures/EventListener/DataTablesEventListener.php +++ b/Tests/Fixtures/EventListener/DataTablesEventListener.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\EventListener + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\EventListener */ class DataTablesEventListener { diff --git a/Tests/Fixtures/Factory/TestDataTablesFactory.php b/Tests/Fixtures/Factory/TestDataTablesFactory.php index 29fe2cf9..b9b36cfd 100644 --- a/Tests/Fixtures/Factory/TestDataTablesFactory.php +++ b/Tests/Fixtures/Factory/TestDataTablesFactory.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Factory + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Factory */ class TestDataTablesFactory extends DataTablesFactory { diff --git a/Tests/Fixtures/Manager/TestDataTablesManagerTrait.php b/Tests/Fixtures/Manager/TestDataTablesManagerTrait.php index c790b89f..c960ea51 100644 --- a/Tests/Fixtures/Manager/TestDataTablesManagerTrait.php +++ b/Tests/Fixtures/Manager/TestDataTablesManagerTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Manager + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Manager */ class TestDataTablesManagerTrait { diff --git a/Tests/Fixtures/Model/TestDataTablesWrapperTrait.php b/Tests/Fixtures/Model/TestDataTablesWrapperTrait.php index 8c3ed850..206f516e 100644 --- a/Tests/Fixtures/Model/TestDataTablesWrapperTrait.php +++ b/Tests/Fixtures/Model/TestDataTablesWrapperTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Model + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Model */ class TestDataTablesWrapperTrait { diff --git a/Tests/Fixtures/Provider/EmployeeDataTablesProvider.php b/Tests/Fixtures/Provider/EmployeeDataTablesProvider.php index 0bef4cc3..1d18e6ad 100644 --- a/Tests/Fixtures/Provider/EmployeeDataTablesProvider.php +++ b/Tests/Fixtures/Provider/EmployeeDataTablesProvider.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Entity + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Entity */ class EmployeeDataTablesProvider implements DataTablesProviderInterface, DataTablesCSVExporterInterface, DataTablesEditorInterface { diff --git a/Tests/Fixtures/Provider/OfficeDataTablesProvider.php b/Tests/Fixtures/Provider/OfficeDataTablesProvider.php index 40be900f..50d30491 100644 --- a/Tests/Fixtures/Provider/OfficeDataTablesProvider.php +++ b/Tests/Fixtures/Provider/OfficeDataTablesProvider.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Provider + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Provider */ class OfficeDataTablesProvider implements DataTablesProviderInterface, DataTablesRouterInterface { diff --git a/Tests/Fixtures/Provider/TestDataTablesProvider.php b/Tests/Fixtures/Provider/TestDataTablesProvider.php index cd1e7e65..a79f357a 100644 --- a/Tests/Fixtures/Provider/TestDataTablesProvider.php +++ b/Tests/Fixtures/Provider/TestDataTablesProvider.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Provider + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Provider */ class TestDataTablesProvider extends AbstractDataTablesProvider { diff --git a/Tests/Fixtures/Provider/TestDataTablesProviderTrait.php b/Tests/Fixtures/Provider/TestDataTablesProviderTrait.php index b7bf74a2..262f859e 100644 --- a/Tests/Fixtures/Provider/TestDataTablesProviderTrait.php +++ b/Tests/Fixtures/Provider/TestDataTablesProviderTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Provider + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Provider */ class TestDataTablesProviderTrait { diff --git a/Tests/Fixtures/Renderer/Assets/TestColorRendererTrait.php b/Tests/Fixtures/Renderer/Assets/TestColorRendererTrait.php index 2ff3293d..73b0ab05 100644 --- a/Tests/Fixtures/Renderer/Assets/TestColorRendererTrait.php +++ b/Tests/Fixtures/Renderer/Assets/TestColorRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Assets */ class TestColorRendererTrait { diff --git a/Tests/Fixtures/Renderer/Assets/TestEnabledBadgeRendererTrait.php b/Tests/Fixtures/Renderer/Assets/TestEnabledBadgeRendererTrait.php index 8ac6f236..7df31a44 100644 --- a/Tests/Fixtures/Renderer/Assets/TestEnabledBadgeRendererTrait.php +++ b/Tests/Fixtures/Renderer/Assets/TestEnabledBadgeRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Assets */ class TestEnabledBadgeRendererTrait { diff --git a/Tests/Fixtures/Renderer/Assets/TestEnabledLabelRendererTrait.php b/Tests/Fixtures/Renderer/Assets/TestEnabledLabelRendererTrait.php index 4360ac5b..9f2fcf7f 100644 --- a/Tests/Fixtures/Renderer/Assets/TestEnabledLabelRendererTrait.php +++ b/Tests/Fixtures/Renderer/Assets/TestEnabledLabelRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Assets */ class TestEnabledLabelRendererTrait { diff --git a/Tests/Fixtures/Renderer/Assets/TestIconRendererTrait.php b/Tests/Fixtures/Renderer/Assets/TestIconRendererTrait.php index 3977744d..52985073 100644 --- a/Tests/Fixtures/Renderer/Assets/TestIconRendererTrait.php +++ b/Tests/Fixtures/Renderer/Assets/TestIconRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Assets */ class TestIconRendererTrait { diff --git a/Tests/Fixtures/Renderer/Assets/TestImageRendererTrait.php b/Tests/Fixtures/Renderer/Assets/TestImageRendererTrait.php index b50c68cb..f20527b8 100644 --- a/Tests/Fixtures/Renderer/Assets/TestImageRendererTrait.php +++ b/Tests/Fixtures/Renderer/Assets/TestImageRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Assets + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Assets */ class TestImageRendererTrait { diff --git a/Tests/Fixtures/Renderer/DateTimes/TestDateRendererTrait.php b/Tests/Fixtures/Renderer/DateTimes/TestDateRendererTrait.php index 127c2158..61fa229f 100644 --- a/Tests/Fixtures/Renderer/DateTimes/TestDateRendererTrait.php +++ b/Tests/Fixtures/Renderer/DateTimes/TestDateRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\DateTimes + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\DateTimes */ class TestDateRendererTrait { diff --git a/Tests/Fixtures/Renderer/DateTimes/TestDateTimeRendererTrait.php b/Tests/Fixtures/Renderer/DateTimes/TestDateTimeRendererTrait.php index 0e9597b4..a6527539 100644 --- a/Tests/Fixtures/Renderer/DateTimes/TestDateTimeRendererTrait.php +++ b/Tests/Fixtures/Renderer/DateTimes/TestDateTimeRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\DateTimes + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\DateTimes */ class TestDateTimeRendererTrait { diff --git a/Tests/Fixtures/Renderer/Floats/TestFloatRendererTrait.php b/Tests/Fixtures/Renderer/Floats/TestFloatRendererTrait.php index 9ce7c1a6..86053cfb 100644 --- a/Tests/Fixtures/Renderer/Floats/TestFloatRendererTrait.php +++ b/Tests/Fixtures/Renderer/Floats/TestFloatRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Floats + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Floats */ class TestFloatRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestBoldTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestBoldTextRendererTrait.php index 75376508..1fefb66c 100644 --- a/Tests/Fixtures/Renderer/Strings/TestBoldTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestBoldTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestBoldTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestCenterAlignedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestCenterAlignedTextRendererTrait.php index 0c23e59c..7ca62417 100644 --- a/Tests/Fixtures/Renderer/Strings/TestCenterAlignedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestCenterAlignedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestCenterAlignedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestDeletedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestDeletedTextRendererTrait.php index a0337f9e..83b21ed0 100644 --- a/Tests/Fixtures/Renderer/Strings/TestDeletedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestDeletedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestDeletedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestInsertedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestInsertedTextRendererTrait.php index eddc5f48..b1d62479 100644 --- a/Tests/Fixtures/Renderer/Strings/TestInsertedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestInsertedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestInsertedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestItalicTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestItalicTextRendererTrait.php index a580858e..0f969d87 100644 --- a/Tests/Fixtures/Renderer/Strings/TestItalicTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestItalicTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestItalicTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestJustifiedAlignedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestJustifiedAlignedTextRendererTrait.php index ec1b92a6..3994c6a5 100644 --- a/Tests/Fixtures/Renderer/Strings/TestJustifiedAlignedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestJustifiedAlignedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestJustifiedAlignedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestLeftAlignedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestLeftAlignedTextRendererTrait.php index 310d4bee..13bbd4ff 100644 --- a/Tests/Fixtures/Renderer/Strings/TestLeftAlignedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestLeftAlignedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestLeftAlignedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestMarkedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestMarkedTextRendererTrait.php index eaba5b90..c5bef906 100644 --- a/Tests/Fixtures/Renderer/Strings/TestMarkedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestMarkedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestMarkedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestNoWrapTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestNoWrapTextRendererTrait.php index 648659d6..3b75ea32 100644 --- a/Tests/Fixtures/Renderer/Strings/TestNoWrapTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestNoWrapTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestNoWrapTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestRightAlignedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestRightAlignedTextRendererTrait.php index 69fb4072..bddefe86 100644 --- a/Tests/Fixtures/Renderer/Strings/TestRightAlignedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestRightAlignedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestRightAlignedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestSmallTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestSmallTextRendererTrait.php index 61d3fc0f..42f27355 100644 --- a/Tests/Fixtures/Renderer/Strings/TestSmallTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestSmallTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestSmallTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestStrikethroughTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestStrikethroughTextRendererTrait.php index 282f8ff6..5cd95e32 100644 --- a/Tests/Fixtures/Renderer/Strings/TestStrikethroughTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestStrikethroughTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestStrikethroughTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestStringWrapperTrait.php b/Tests/Fixtures/Renderer/Strings/TestStringWrapperTrait.php index db99bd0d..78b91df4 100644 --- a/Tests/Fixtures/Renderer/Strings/TestStringWrapperTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestStringWrapperTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestStringWrapperTrait { diff --git a/Tests/Fixtures/Renderer/Strings/TestUnderlinedTextRendererTrait.php b/Tests/Fixtures/Renderer/Strings/TestUnderlinedTextRendererTrait.php index 2ba72ba6..48413449 100644 --- a/Tests/Fixtures/Renderer/Strings/TestUnderlinedTextRendererTrait.php +++ b/Tests/Fixtures/Renderer/Strings/TestUnderlinedTextRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer\Strings + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer\Strings */ class TestUnderlinedTextRendererTrait { diff --git a/Tests/Fixtures/Renderer/TestCenterAlignedRendererTrait.php b/Tests/Fixtures/Renderer/TestCenterAlignedRendererTrait.php index 63c4522a..e08bc3ba 100644 --- a/Tests/Fixtures/Renderer/TestCenterAlignedRendererTrait.php +++ b/Tests/Fixtures/Renderer/TestCenterAlignedRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer */ class TestCenterAlignedRendererTrait { diff --git a/Tests/Fixtures/Renderer/TestRightAlignedRendererTrait.php b/Tests/Fixtures/Renderer/TestRightAlignedRendererTrait.php index 36357422..45ed0e53 100644 --- a/Tests/Fixtures/Renderer/TestRightAlignedRendererTrait.php +++ b/Tests/Fixtures/Renderer/TestRightAlignedRendererTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Renderer + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Renderer */ class TestRightAlignedRendererTrait { diff --git a/Tests/Fixtures/Repository/EmployeeRepository.php b/Tests/Fixtures/Repository/EmployeeRepository.php index 6e43acd3..e4013670 100644 --- a/Tests/Fixtures/Repository/EmployeeRepository.php +++ b/Tests/Fixtures/Repository/EmployeeRepository.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Repository + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Repository */ class EmployeeRepository extends DefaultDataTablesRepository { diff --git a/Tests/Fixtures/Repository/OfficeRepository.php b/Tests/Fixtures/Repository/OfficeRepository.php index 76b43056..679c156b 100644 --- a/Tests/Fixtures/Repository/OfficeRepository.php +++ b/Tests/Fixtures/Repository/OfficeRepository.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Repository + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Repository */ class OfficeRepository extends EntityRepository { diff --git a/Tests/Fixtures/TestFixtures.php b/Tests/Fixtures/TestFixtures.php index 789fea3c..d4503021 100644 --- a/Tests/Fixtures/TestFixtures.php +++ b/Tests/Fixtures/TestFixtures.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\App + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\App */ class TestFixtures { diff --git a/Tests/Fixtures/Traits/Arrays/TestArrayEntitiesTrait.php b/Tests/Fixtures/Traits/Arrays/TestArrayEntitiesTrait.php index be39628d..07e9a840 100644 --- a/Tests/Fixtures/Traits/Arrays/TestArrayEntitiesTrait.php +++ b/Tests/Fixtures/Traits/Arrays/TestArrayEntitiesTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Traits\Arrays + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Traits\Arrays */ class TestArrayEntitiesTrait { diff --git a/Tests/Fixtures/Translation/TestTranslatorTrait.php b/Tests/Fixtures/Translation/TestTranslatorTrait.php index 6840d2c4..1683940d 100644 --- a/Tests/Fixtures/Translation/TestTranslatorTrait.php +++ b/Tests/Fixtures/Translation/TestTranslatorTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Translation + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Translation */ class TestTranslatorTrait { diff --git a/Tests/Fixtures/Twig/Extension/TestDataTablesTwigExtensionTrait.php b/Tests/Fixtures/Twig/Extension/TestDataTablesTwigExtensionTrait.php index 8f9d3cc5..8b2b00d6 100644 --- a/Tests/Fixtures/Twig/Extension/TestDataTablesTwigExtensionTrait.php +++ b/Tests/Fixtures/Twig/Extension/TestDataTablesTwigExtensionTrait.php @@ -1,7 +1,7 @@ - * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Twig\Extension + * @package WBW\Bundle\DataTablesBundle\Tests\Fixtures\Twig\Extension */ class TestDataTablesTwigExtensionTrait { diff --git a/Tests/Fixtures/app/TestKernel.php b/Tests/Fixtures/app/TestKernel.php index d22bf714..5c3cc9f0 100644 --- a/Tests/Fixtures/app/TestKernel.php +++ b/Tests/Fixtures/app/TestKernel.php @@ -1,7 +1,7 @@ - + diff --git a/Tests/Fixtures/app/config/doctrine/Office.orm.xml b/Tests/Fixtures/app/config/doctrine/Office.orm.xml index b3c54cc7..9241408c 100644 --- a/Tests/Fixtures/app/config/doctrine/Office.orm.xml +++ b/Tests/Fixtures/app/config/doctrine/Office.orm.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> - + diff --git a/Tests/Fixtures/app/config/routing_test.yml b/Tests/Fixtures/app/config/routing_test.yml index f509c7d8..23ff27e1 100644 --- a/Tests/Fixtures/app/config/routing_test.yml +++ b/Tests/Fixtures/app/config/routing_test.yml @@ -1,19 +1,19 @@ # Tests/Fixtures/app/config/routing_test.yml -wbw_jquery_datatables: +wbw_datatables: prefix: "/" - resource: "@WBWJQueryDataTablesBundle/Resources/config/routing.yml" + resource: "@WBWDataTablesBundle/Resources/config/routing.yml" -wbw_jquery_datatables_assets_javascripts: +wbw_datatables_assets_javascripts: path: "/assets/javascripts" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Tests\\Fixtures\\Controller\\TestViewsController::assetsJavascriptsAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Tests\\Fixtures\\Controller\\TestViewsController::assetsJavascriptsAction" } methods: [ "GET" ] -wbw_jquery_datatables_assets_stylesheets: +wbw_datatables_assets_stylesheets: path: "/assets/stylesheets" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Tests\\Fixtures\\Controller\\TestViewsController::assetsStylesheetsAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Tests\\Fixtures\\Controller\\TestViewsController::assetsStylesheetsAction" } methods: [ "GET" ] -wbw_jquery_datatables_deprecated_show: +wbw_datatables_deprecated_show: path: "/datatables/{name}/deprecated-show/{id}" - defaults: { _controller: "WBW\\Bundle\\JQuery\\DataTablesBundle\\Controller\\DataTablesController::showAction" } + defaults: { _controller: "WBW\\Bundle\\DataTablesBundle\\Controller\\DataTablesController::showAction" } methods: [ "GET" ] diff --git a/Tests/Fixtures/app/config/services_test.yml b/Tests/Fixtures/app/config/services_test.yml index 0679cd04..a6e10d60 100644 --- a/Tests/Fixtures/app/config/services_test.yml +++ b/Tests/Fixtures/app/config/services_test.yml @@ -1,39 +1,39 @@ # Tests/Fixtures/app/config/services_test.yml services: - WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Controller\TestViewsController: + WBW\Bundle\DataTablesBundle\Tests\Fixtures\Controller\TestViewsController: public: true calls: - [ "setContainer", [ "@Psr\\Container\\ContainerInterface" ] ] tags: - { name: "container.service_subscriber" } - wbw.jquery.datatables.event_listener: - class: WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\EventListener\DataTablesEventListener + wbw.datatables.event_listener: + class: WBW\Bundle\DataTablesBundle\Tests\Fixtures\EventListener\DataTablesEventListener public: true tags: - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.pre_delete", method: "onPreDelete" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.pre_edit", method: "onPreEdit" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.pre_export", method: "onPreExport" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.pre_index", method: "onPreIndex" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.pre_show", method: "onPreShow" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.post_delete", method: "onPostDelete" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.post_edit", method: "onPostEdit" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.post_export", method: "onPostExport" } - - { name: "kernel.event_listener", event: "wbw.jquery.datatables.event.post_index", method: "onPostIndex" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.pre_delete", method: "onPreDelete" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.pre_edit", method: "onPreEdit" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.pre_export", method: "onPreExport" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.pre_index", method: "onPreIndex" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.pre_show", method: "onPreShow" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.post_delete", method: "onPostDelete" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.post_edit", method: "onPostEdit" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.post_export", method: "onPostExport" } + - { name: "kernel.event_listener", event: "wbw.datatables.event.post_index", method: "onPostIndex" } - wbw.jquery.datatables.provider.employee: - class: WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Provider\EmployeeDataTablesProvider + wbw.datatables.provider.employee: + class: WBW\Bundle\DataTablesBundle\Tests\Fixtures\Provider\EmployeeDataTablesProvider public: true tags: - - { name: "wbw.jquery.datatables.provider" } + - { name: "wbw.datatables.provider" } - wbw.jquery.datatables.provider.office: - class: WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Provider\OfficeDataTablesProvider + wbw.datatables.provider.office: + class: WBW\Bundle\DataTablesBundle\Tests\Fixtures\Provider\OfficeDataTablesProvider public: true tags: - - { name: "wbw.jquery.datatables.provider" } + - { name: "wbw.datatables.provider" } - wbw.jquery.datatables.manager.alias: - alias: "wbw.jquery.datatables.manager" + wbw.datatables.manager.alias: + alias: "wbw.datatables.manager" public: true diff --git a/Tests/Fixtures/app/templates/bundles/WBWJQueryDataTablesBundle/datatables/index.html.twig b/Tests/Fixtures/app/templates/bundles/WBWDataTablesBundle/datatables/index.html.twig similarity index 81% rename from Tests/Fixtures/app/templates/bundles/WBWJQueryDataTablesBundle/datatables/index.html.twig rename to Tests/Fixtures/app/templates/bundles/WBWDataTablesBundle/datatables/index.html.twig index d1350379..d27c2f99 100644 --- a/Tests/Fixtures/app/templates/bundles/WBWJQueryDataTablesBundle/datatables/index.html.twig +++ b/Tests/Fixtures/app/templates/bundles/WBWDataTablesBundle/datatables/index.html.twig @@ -1,9 +1,9 @@ -{# Tests/Fixtures/app/templates/bundles/WBWJQueryDataTables/datatables/index.html.twig #} +{# Tests/Fixtures/app/templates/bundles/WBWDataTables/datatables/index.html.twig #} {% extends "@WBWBootstrap/layout.html.twig" %} {% block bootstrapStylesheets %} {{ parent() }} - {% include "@WBWJQueryDataTables/assets/_stylesheets.html.twig" %} + {% include "@WBWDataTables/assets/_stylesheets.html.twig" %}