From aa1a43d56a52b60efadd5ba929a2bd0a8c7dac3c Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Wed, 6 Oct 2021 11:01:14 +0200
Subject: [PATCH] Rename to the new relay naming schema without breaking API

This changes everything except the ShortName and the API paths, so
HTTP clients continue to work as before.

The remaining changes will follow once all  PHP users are ported.
---
 README.md                                     |  2 +-
 composer.json                                 |  6 +++---
 composer.lock                                 |  2 +-
 phpunit.xml.dist                              |  2 +-
 src/API/OrganizationProviderInterface.php     |  6 +++---
 src/API/PersonProviderInterface.php           |  4 ++--
 src/Controller/GetOrganizationsByPerson.php   |  6 +++---
 .../OrganizationCollectionDataProvider.php    |  6 +++---
 src/DataProvider/OrganizationDataProvider.php |  6 +++---
 .../PersonCollectionDataProvider.php          |  6 +++---
 src/DataProvider/PersonItemDataProvider.php   |  6 +++---
 ...pBaseBundle.php => DbpRelayBaseBundle.php} |  4 ++--
 src/DependencyInjection/Configuration.php     |  4 ++--
 ...xtension.php => DbpRelayBaseExtension.php} |  4 ++--
 src/Entity/Organization.php                   |  4 ++--
 src/Entity/Person.php                         |  4 ++--
 src/Entity/PersonTrait.php                    | 16 +++++++--------
 src/Resources/config/services.yaml            | 20 +++++++++----------
 src/Serializer/PersonAttributeNormalizer.php  |  6 +++---
 src/Service/DummyOrganizationProvider.php     |  8 ++++----
 src/Service/DummyPersonProvider.php           |  6 +++---
 src/TestUtils/DummyPersonProvider.php         |  6 +++---
 tests/ExtTest.php                             |  6 +++---
 tests/Kernel.php                              |  6 +++---
 tests/PersonTest.php                          |  4 ++--
 25 files changed, 75 insertions(+), 75 deletions(-)
 rename src/{DbpBaseBundle.php => DbpRelayBaseBundle.php} (74%)
 rename src/DependencyInjection/{DbpBaseExtension.php => DbpRelayBaseExtension.php} (90%)

diff --git a/README.md b/README.md
index 95adaf0..fa55e89 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ composer require dbp/api-base-bundle
 
 ```php
 ...
-DBP\API\BaseBundle\DbpBaseBundle::class => ['all' => true],
+Dbp\Relay\BaseBundle\DbpRelayBaseBundle::class => ['all' => true],
 DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
 ];
 ```
diff --git a/composer.json b/composer.json
index c83eb0f..aa02e1b 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
 {
-    "name": "dbp/api-base-bundle",
+    "name": "dbp/relay-base-bundle",
     "type": "symfony-bundle",
     "license": "AGPL-3.0-or-later",
     "require": {
@@ -32,12 +32,12 @@
     },
     "autoload": {
         "psr-4": {
-            "DBP\\API\\BaseBundle\\": "src/"
+            "Dbp\\Relay\\BaseBundle\\": "src/"
         }
     },
     "autoload-dev": {
         "psr-4": {
-          "DBP\\API\\BaseBundle\\Tests\\": "tests/"
+          "Dbp\\Relay\\BaseBundle\\Tests\\": "tests/"
         }
     },
     "config": {
diff --git a/composer.lock b/composer.lock
index c7be636..339de56 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "2cd489c238235dc4f2259cf92594c168",
+    "content-hash": "412a6debb11df123e57bd8a615074b4b",
     "packages": [
         {
             "name": "api-platform/core",
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 42626c1..0d0c4df 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -15,7 +15,7 @@
     <server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
     <server name="SYMFONY_PHPUNIT_VERSION" value="9"/>
     <server name="SYMFONY_DEPRECATIONS_HELPER" value="weak"/>
-    <server name="KERNEL_CLASS" value="DBP\API\BaseBundle\Tests\Kernel"/>
+    <server name="KERNEL_CLASS" value="Dbp\Relay\BaseBundle\Tests\Kernel"/>
   </php>
   <testsuites>
     <testsuite name="Project Test Suite">
diff --git a/src/API/OrganizationProviderInterface.php b/src/API/OrganizationProviderInterface.php
index ae63621..61652dc 100644
--- a/src/API/OrganizationProviderInterface.php
+++ b/src/API/OrganizationProviderInterface.php
@@ -2,10 +2,10 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\API;
+namespace Dbp\Relay\BaseBundle\API;
 
-use DBP\API\BaseBundle\Entity\Organization;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\Entity\Organization;
+use Dbp\Relay\BaseBundle\Entity\Person;
 
 interface OrganizationProviderInterface
 {
diff --git a/src/API/PersonProviderInterface.php b/src/API/PersonProviderInterface.php
index dde3d3b..12b1f91 100644
--- a/src/API/PersonProviderInterface.php
+++ b/src/API/PersonProviderInterface.php
@@ -2,9 +2,9 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\API;
+namespace Dbp\Relay\BaseBundle\API;
 
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\Entity\Person;
 
 interface PersonProviderInterface
 {
diff --git a/src/Controller/GetOrganizationsByPerson.php b/src/Controller/GetOrganizationsByPerson.php
index 3b90b82..20304d3 100644
--- a/src/Controller/GetOrganizationsByPerson.php
+++ b/src/Controller/GetOrganizationsByPerson.php
@@ -2,11 +2,11 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Controller;
+namespace Dbp\Relay\BaseBundle\Controller;
 
 use ApiPlatform\Core\DataProvider\PaginatorInterface;
-use DBP\API\BaseBundle\API\OrganizationProviderInterface;
-use DBP\API\BaseBundle\API\PersonProviderInterface;
+use Dbp\Relay\BaseBundle\API\OrganizationProviderInterface;
+use Dbp\Relay\BaseBundle\API\PersonProviderInterface;
 use Dbp\Relay\CoreBundle\Exception\ApiError;
 use Dbp\Relay\CoreBundle\Helpers\ArrayFullPaginator;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
diff --git a/src/DataProvider/OrganizationCollectionDataProvider.php b/src/DataProvider/OrganizationCollectionDataProvider.php
index 5914f15..94946b1 100644
--- a/src/DataProvider/OrganizationCollectionDataProvider.php
+++ b/src/DataProvider/OrganizationCollectionDataProvider.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DataProvider;
+namespace Dbp\Relay\BaseBundle\DataProvider;
 
 use ApiPlatform\Core\DataProvider\ContextAwareCollectionDataProviderInterface;
 use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
-use DBP\API\BaseBundle\API\OrganizationProviderInterface;
-use DBP\API\BaseBundle\Entity\Organization;
+use Dbp\Relay\BaseBundle\API\OrganizationProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Organization;
 use Dbp\Relay\CoreBundle\Helpers\ArrayFullPaginator;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 
diff --git a/src/DataProvider/OrganizationDataProvider.php b/src/DataProvider/OrganizationDataProvider.php
index 6f0df8c..05f4bb1 100644
--- a/src/DataProvider/OrganizationDataProvider.php
+++ b/src/DataProvider/OrganizationDataProvider.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DataProvider;
+namespace Dbp\Relay\BaseBundle\DataProvider;
 
 use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
 use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
-use DBP\API\BaseBundle\API\OrganizationProviderInterface;
-use DBP\API\BaseBundle\Entity\Organization;
+use Dbp\Relay\BaseBundle\API\OrganizationProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Organization;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 
 final class OrganizationDataProvider extends AbstractController implements ItemDataProviderInterface, RestrictedDataProviderInterface
diff --git a/src/DataProvider/PersonCollectionDataProvider.php b/src/DataProvider/PersonCollectionDataProvider.php
index 921365e..af6d671 100644
--- a/src/DataProvider/PersonCollectionDataProvider.php
+++ b/src/DataProvider/PersonCollectionDataProvider.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DataProvider;
+namespace Dbp\Relay\BaseBundle\DataProvider;
 
 use ApiPlatform\Core\DataProvider\CollectionDataProviderInterface;
 use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
-use DBP\API\BaseBundle\API\PersonProviderInterface;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\API\PersonProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Person;
 use Dbp\Relay\CoreBundle\Helpers\ArrayFullPaginator;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 
diff --git a/src/DataProvider/PersonItemDataProvider.php b/src/DataProvider/PersonItemDataProvider.php
index 1e60e8e..dac2f64 100644
--- a/src/DataProvider/PersonItemDataProvider.php
+++ b/src/DataProvider/PersonItemDataProvider.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DataProvider;
+namespace Dbp\Relay\BaseBundle\DataProvider;
 
 use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
 use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
-use DBP\API\BaseBundle\API\PersonProviderInterface;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\API\PersonProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Person;
 use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
 
 final class PersonItemDataProvider extends AbstractController implements ItemDataProviderInterface, RestrictedDataProviderInterface
diff --git a/src/DbpBaseBundle.php b/src/DbpRelayBaseBundle.php
similarity index 74%
rename from src/DbpBaseBundle.php
rename to src/DbpRelayBaseBundle.php
index 0415050..13da1f8 100644
--- a/src/DbpBaseBundle.php
+++ b/src/DbpRelayBaseBundle.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle;
+namespace Dbp\Relay\BaseBundle;
 
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\HttpKernel\Bundle\Bundle;
 
-class DbpBaseBundle extends Bundle
+class DbpRelayBaseBundle extends Bundle
 {
     public function build(ContainerBuilder $container)
     {
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index c3a2e07..fc9b320 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DependencyInjection;
+namespace Dbp\Relay\BaseBundle\DependencyInjection;
 
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
 use Symfony\Component\Config\Definition\ConfigurationInterface;
@@ -11,7 +11,7 @@ class Configuration implements ConfigurationInterface
 {
     public function getConfigTreeBuilder()
     {
-        $treeBuilder = new TreeBuilder('dbp_base');
+        $treeBuilder = new TreeBuilder('dbp_relay_base');
 
         return $treeBuilder;
     }
diff --git a/src/DependencyInjection/DbpBaseExtension.php b/src/DependencyInjection/DbpRelayBaseExtension.php
similarity index 90%
rename from src/DependencyInjection/DbpBaseExtension.php
rename to src/DependencyInjection/DbpRelayBaseExtension.php
index 7c5798b..c0025d9 100644
--- a/src/DependencyInjection/DbpBaseExtension.php
+++ b/src/DependencyInjection/DbpRelayBaseExtension.php
@@ -2,14 +2,14 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\DependencyInjection;
+namespace Dbp\Relay\BaseBundle\DependencyInjection;
 
 use Symfony\Component\Config\FileLocator;
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
 use Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension;
 
-class DbpBaseExtension extends ConfigurableExtension
+class DbpRelayBaseExtension extends ConfigurableExtension
 {
     public function loadInternal(array $mergedConfig, ContainerBuilder $container)
     {
diff --git a/src/Entity/Organization.php b/src/Entity/Organization.php
index ea91877..7aef452 100644
--- a/src/Entity/Organization.php
+++ b/src/Entity/Organization.php
@@ -2,11 +2,11 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Entity;
+namespace Dbp\Relay\BaseBundle\Entity;
 
 use ApiPlatform\Core\Annotation\ApiProperty;
 use ApiPlatform\Core\Annotation\ApiResource;
-use DBP\API\BaseBundle\Controller\GetOrganizationsByPerson;
+use Dbp\Relay\BaseBundle\Controller\GetOrganizationsByPerson;
 use Symfony\Component\Serializer\Annotation\Groups;
 
 /**
diff --git a/src/Entity/Person.php b/src/Entity/Person.php
index d7bbc7b..c205e83 100644
--- a/src/Entity/Person.php
+++ b/src/Entity/Person.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Entity;
+namespace Dbp\Relay\BaseBundle\Entity;
 
 use ApiPlatform\Core\Annotation\ApiResource;
 
@@ -31,7 +31,7 @@ use ApiPlatform\Core\Annotation\ApiResource;
  *     iri="http://schema.org/Person",
  *     description="A person of the LDAP system",
  *     normalizationContext={
- *         "groups" = {"Person:output"},
+ *         "groups" = {"BasePerson:output"},
  *         "jsonld_embed_context" = true,
  *     }
  * )
diff --git a/src/Entity/PersonTrait.php b/src/Entity/PersonTrait.php
index 1e8c667..8dd1040 100644
--- a/src/Entity/PersonTrait.php
+++ b/src/Entity/PersonTrait.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Entity;
+namespace Dbp\Relay\BaseBundle\Entity;
 
 use ApiPlatform\Core\Annotation\ApiProperty;
 use Symfony\Component\Serializer\Annotation\Groups;
@@ -11,7 +11,7 @@ trait PersonTrait
 {
     /**
      * @ApiProperty(identifier=true)
-     * @Groups({"Person:output"})
+     * @Groups({"BasePerson:output"})
      *
      * @var string
      */
@@ -19,7 +19,7 @@ trait PersonTrait
 
     /**
      * @ApiProperty(iri="http://schema.org/givenName")
-     * @Groups({"Person:output"})
+     * @Groups({"BasePerson:output"})
      *
      * @var string
      */
@@ -28,7 +28,7 @@ trait PersonTrait
     /**
      * @var string
      * @ApiProperty(iri="http://schema.org/familyName")
-     * @Groups({"Person:output"})
+     * @Groups({"BasePerson:output"})
      *
      * @var string
      */
@@ -36,7 +36,7 @@ trait PersonTrait
 
     /**
      * @ApiProperty(iri="http://schema.org/email")
-     * @Groups({"Person:current-user", "Person:extended-access"})
+     * @Groups({"BasePerson:current-user", "BasePerson:extended-access"})
      *
      * @var string
      */
@@ -44,14 +44,14 @@ trait PersonTrait
 
     /**
      * @var array
-     * @Groups({"Person:current-user"})
+     * @Groups({"BasePerson:current-user"})
      */
     private $roles;
 
     /**
      * @var string
      * @ApiProperty(iri="http://schema.org/birthDate")
-     * @Groups({"Person:current-user"})
+     * @Groups({"BasePerson:current-user"})
      */
     private $birthDate;
 
@@ -127,7 +127,7 @@ trait PersonTrait
 
     /**
      * @ApiProperty(iri="http://schema.org/name")
-     * @Groups({"Person:output"})
+     * @Groups({"BasePerson:output"})
      */
     public function getName(): ?string
     {
diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml
index 659f546..294ddb3 100644
--- a/src/Resources/config/services.yaml
+++ b/src/Resources/config/services.yaml
@@ -1,33 +1,33 @@
 services:
-  DBP\API\BaseBundle\Controller\:
+  Dbp\Relay\BaseBundle\Controller\:
     resource: '../../Controller'
     autowire: true
     autoconfigure: true
 
-  DBP\API\BaseBundle\API\OrganizationProviderInterface:
-    '@DBP\API\BaseBundle\Service\DummyOrganizationProvider'
+  Dbp\Relay\BaseBundle\API\OrganizationProviderInterface:
+    '@Dbp\Relay\BaseBundle\Service\DummyOrganizationProvider'
 
-  DBP\API\BaseBundle\Service\DummyOrganizationProvider:
+  Dbp\Relay\BaseBundle\Service\DummyOrganizationProvider:
     autowire: true
     autoconfigure: true
 
-  DBP\API\BaseBundle\Service\DummyPersonProvider:
+  Dbp\Relay\BaseBundle\Service\DummyPersonProvider:
     autowire: true
     autoconfigure: true
 
-  DBP\API\BaseBundle\API\PersonProviderInterface:
-    '@DBP\API\BaseBundle\Service\DummyPersonProvider'
+  Dbp\Relay\BaseBundle\API\PersonProviderInterface:
+    '@Dbp\Relay\BaseBundle\Service\DummyPersonProvider'
 
-  DBP\API\BaseBundle\DataProvider\:
+  Dbp\Relay\BaseBundle\DataProvider\:
     resource: '../../DataProvider'
     autowire: true
     autoconfigure: true
 
-  DBP\API\BaseBundle\Serializer\PersonAttributeNormalizer:
+  Dbp\Relay\BaseBundle\Serializer\PersonAttributeNormalizer:
     autowire: true
     autoconfigure: true
 
   # This alias exist so we can replace the service during tests
   test.PersonProviderInterface:
-    alias: 'DBP\API\BaseBundle\API\PersonProviderInterface'
+    alias: 'Dbp\Relay\BaseBundle\API\PersonProviderInterface'
     public: true
diff --git a/src/Serializer/PersonAttributeNormalizer.php b/src/Serializer/PersonAttributeNormalizer.php
index 8868d69..66c088e 100644
--- a/src/Serializer/PersonAttributeNormalizer.php
+++ b/src/Serializer/PersonAttributeNormalizer.php
@@ -2,9 +2,9 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Serializer;
+namespace Dbp\Relay\BaseBundle\Serializer;
 
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\Entity\Person;
 use Symfony\Component\Security\Core\Security;
 use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
 use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
@@ -30,7 +30,7 @@ class PersonAttributeNormalizer implements ContextAwareNormalizerInterface, Norm
     {
         // set the group "Person:current-user" for the current user
         if ($this->isCurrentUser($object)) {
-            $context['groups'][] = 'Person:current-user';
+            $context['groups'][] = 'BasePerson:current-user';
         }
 
         $context[self::ALREADY_CALLED] = true;
diff --git a/src/Service/DummyOrganizationProvider.php b/src/Service/DummyOrganizationProvider.php
index 0095b62..dc6766d 100644
--- a/src/Service/DummyOrganizationProvider.php
+++ b/src/Service/DummyOrganizationProvider.php
@@ -2,11 +2,11 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Service;
+namespace Dbp\Relay\BaseBundle\Service;
 
-use DBP\API\BaseBundle\API\OrganizationProviderInterface;
-use DBP\API\BaseBundle\Entity\Organization;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\API\OrganizationProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Organization;
+use Dbp\Relay\BaseBundle\Entity\Person;
 
 class DummyOrganizationProvider implements OrganizationProviderInterface
 {
diff --git a/src/Service/DummyPersonProvider.php b/src/Service/DummyPersonProvider.php
index da27716..c3641ff 100644
--- a/src/Service/DummyPersonProvider.php
+++ b/src/Service/DummyPersonProvider.php
@@ -2,10 +2,10 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Service;
+namespace Dbp\Relay\BaseBundle\Service;
 
-use DBP\API\BaseBundle\API\PersonProviderInterface;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\API\PersonProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Person;
 
 class DummyPersonProvider implements PersonProviderInterface
 {
diff --git a/src/TestUtils/DummyPersonProvider.php b/src/TestUtils/DummyPersonProvider.php
index bddcf27..81c0d5c 100644
--- a/src/TestUtils/DummyPersonProvider.php
+++ b/src/TestUtils/DummyPersonProvider.php
@@ -2,11 +2,11 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\TestUtils;
+namespace Dbp\Relay\BaseBundle\TestUtils;
 
 use ApiPlatform\Core\Exception\ItemNotFoundException;
-use DBP\API\BaseBundle\API\PersonProviderInterface;
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\API\PersonProviderInterface;
+use Dbp\Relay\BaseBundle\Entity\Person;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 
 class DummyPersonProvider implements PersonProviderInterface
diff --git a/tests/ExtTest.php b/tests/ExtTest.php
index 20bdd6f..8ceeed2 100644
--- a/tests/ExtTest.php
+++ b/tests/ExtTest.php
@@ -2,12 +2,12 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Tests;
+namespace Dbp\Relay\BaseBundle\Tests;
 
 use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase;
 use ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client;
-use DBP\API\BaseBundle\Entity\Person;
-use DBP\API\BaseBundle\TestUtils\DummyPersonProvider;
+use Dbp\Relay\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\TestUtils\DummyPersonProvider;
 use Dbp\Relay\CoreBundle\TestUtils\UserAuthTrait;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\Security\Core\User\UserInterface;
diff --git a/tests/Kernel.php b/tests/Kernel.php
index 04b2380..a3d2e08 100644
--- a/tests/Kernel.php
+++ b/tests/Kernel.php
@@ -2,10 +2,10 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Tests;
+namespace Dbp\Relay\BaseBundle\Tests;
 
 use ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle;
-use DBP\API\BaseBundle\DbpBaseBundle;
+use Dbp\Relay\BaseBundle\DbpRelayBaseBundle;
 use Dbp\Relay\CoreBundle\DbpRelayCoreBundle;
 use Nelmio\CorsBundle\NelmioCorsBundle;
 use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
@@ -29,7 +29,7 @@ class Kernel extends BaseKernel
         yield new NelmioCorsBundle();
         yield new MonologBundle();
         yield new ApiPlatformBundle();
-        yield new DbpBaseBundle();
+        yield new DbpRelayBaseBundle();
         yield new DbpRelayCoreBundle();
     }
 
diff --git a/tests/PersonTest.php b/tests/PersonTest.php
index 573fcad..c9eae11 100644
--- a/tests/PersonTest.php
+++ b/tests/PersonTest.php
@@ -2,9 +2,9 @@
 
 declare(strict_types=1);
 
-namespace DBP\API\BaseBundle\Tests;
+namespace Dbp\Relay\BaseBundle\Tests;
 
-use DBP\API\BaseBundle\Entity\Person;
+use Dbp\Relay\BaseBundle\Entity\Person;
 use PHPUnit\Framework\TestCase;
 
 class PersonTest extends TestCase
-- 
GitLab