Skip to content

Commit 6feaf79

Browse files
authored
[TASK] Use the new core namespace (#104)
1 parent ce9e0bc commit 6feaf79

12 files changed

+31
-31
lines changed

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,18 @@
5656
},
5757
"scripts": {
5858
"list-modules": [
59-
"PhpList\\PhpList4\\Composer\\ScriptHandler::listModules"
59+
"PhpList\\Core\\Composer\\ScriptHandler::listModules"
6060
],
6161
"create-directories": [
62-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createBinaries",
63-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createPublicWebDirectory"
62+
"PhpList\\Core\\Composer\\ScriptHandler::createBinaries",
63+
"PhpList\\Core\\Composer\\ScriptHandler::createPublicWebDirectory"
6464
],
6565
"update-configuration": [
66-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createGeneralConfiguration",
67-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createBundleConfiguration",
68-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createRoutesConfiguration",
69-
"PhpList\\PhpList4\\Composer\\ScriptHandler::createParametersConfiguration",
70-
"PhpList\\PhpList4\\Composer\\ScriptHandler::clearAllCaches"
66+
"PhpList\\Core\\Composer\\ScriptHandler::createGeneralConfiguration",
67+
"PhpList\\Core\\Composer\\ScriptHandler::createBundleConfiguration",
68+
"PhpList\\Core\\Composer\\ScriptHandler::createRoutesConfiguration",
69+
"PhpList\\Core\\Composer\\ScriptHandler::createParametersConfiguration",
70+
"PhpList\\Core\\Composer\\ScriptHandler::clearAllCaches"
7171
],
7272
"post-install-cmd": [
7373
"@create-directories",

phpunit.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
>
1010
<php>
1111
<ini name="error_reporting" value="-1"/>
12-
<server name="KERNEL_CLASS" value="PhpList\PhpList4\Core\ApplicationKernel"/>
12+
<server name="KERNEL_CLASS" value="PhpList\Core\Core\ApplicationKernel"/>
1313
</php>
1414
</phpunit>

src/Controller/ListController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use FOS\RestBundle\Controller\FOSRestController;
77
use FOS\RestBundle\Routing\ClassResourceInterface;
88
use FOS\RestBundle\View\View;
9-
use PhpList\PhpList4\Domain\Model\Messaging\SubscriberList;
10-
use PhpList\PhpList4\Domain\Repository\Messaging\SubscriberListRepository;
11-
use PhpList\PhpList4\Security\Authentication;
9+
use PhpList\Core\Domain\Model\Messaging\SubscriberList;
10+
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
11+
use PhpList\Core\Security\Authentication;
1212
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
1313
use Symfony\Component\HttpFoundation\Request;
1414

src/Controller/SessionController.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
use FOS\RestBundle\Controller\FOSRestController;
77
use FOS\RestBundle\Routing\ClassResourceInterface;
88
use FOS\RestBundle\View\View;
9-
use PhpList\PhpList4\Domain\Model\Identity\Administrator;
10-
use PhpList\PhpList4\Domain\Model\Identity\AdministratorToken;
11-
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorRepository;
12-
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorTokenRepository;
13-
use PhpList\PhpList4\Security\Authentication;
9+
use PhpList\Core\Domain\Model\Identity\Administrator;
10+
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
11+
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
12+
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
13+
use PhpList\Core\Security\Authentication;
1414
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\HttpFoundation\Response;

src/Controller/SubscriberController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use FOS\RestBundle\Controller\FOSRestController;
77
use FOS\RestBundle\Routing\ClassResourceInterface;
88
use FOS\RestBundle\View\View;
9-
use PhpList\PhpList4\Domain\Model\Subscription\Subscriber;
10-
use PhpList\PhpList4\Domain\Repository\Subscription\SubscriberRepository;
11-
use PhpList\PhpList4\Security\Authentication;
9+
use PhpList\Core\Domain\Model\Subscription\Subscriber;
10+
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
11+
use PhpList\Core\Security\Authentication;
1212
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
1313
use Symfony\Component\HttpFoundation\Request;
1414
use Symfony\Component\HttpFoundation\Response;

src/Controller/Traits/AuthenticationTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace PhpList\RestBundle\Controller\Traits;
55

6-
use PhpList\PhpList4\Domain\Model\Identity\Administrator;
7-
use PhpList\PhpList4\Security\Authentication;
6+
use PhpList\Core\Domain\Model\Identity\Administrator;
7+
use PhpList\Core\Security\Authentication;
88
use Symfony\Component\HttpFoundation\Request;
99
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
1010

tests/Integration/Controller/AbstractControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace PhpList\RestBundle\Tests\Integration\Controller;
55

6-
use PhpList\PhpList4\TestingSupport\AbstractWebTest;
7-
use PhpList\PhpList4\TestingSupport\Traits\DatabaseTestTrait;
6+
use PhpList\Core\TestingSupport\AbstractWebTest;
7+
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
88
use Symfony\Component\DomCrawler\Crawler;
99
use Symfony\Component\HttpFoundation\Response;
1010

tests/Integration/Controller/ListControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace PhpList\RestBundle\Tests\Integration\Controller;
55

6-
use PhpList\PhpList4\Domain\Repository\Messaging\SubscriberListRepository;
6+
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
77
use PhpList\RestBundle\Controller\ListController;
88

99
/**

tests/Integration/Controller/SessionControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
namespace PhpList\RestBundle\Tests\Integration\Controller;
55

66
use Doctrine\Common\Persistence\ObjectRepository;
7-
use PhpList\PhpList4\Domain\Model\Identity\AdministratorToken;
8-
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorTokenRepository;
7+
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
8+
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
99
use PhpList\RestBundle\Controller\SessionController;
1010
use Symfony\Component\HttpFoundation\Response;
1111

tests/Integration/Controller/SubscriberControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace PhpList\RestBundle\Tests\Integration\Controller;
55

6-
use PhpList\PhpList4\Domain\Model\Subscription\Subscriber;
7-
use PhpList\PhpList4\Domain\Repository\Subscription\SubscriberRepository;
6+
use PhpList\Core\Domain\Model\Subscription\Subscriber;
7+
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
88
use PhpList\RestBundle\Controller\SubscriberController;
99

1010
/**

tests/Integration/Routing/RoutingTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace PhpList\RestBundle\Tests\Integration\Routing;
55

6-
use PhpList\PhpList4\TestingSupport\AbstractWebTest;
6+
use PhpList\Core\TestingSupport\AbstractWebTest;
77

88
/**
99
* Testcase.

tests/System/Controller/SessionControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace PhpList\RestBundle\Tests\System\Controller;
55

66
use GuzzleHttp\Client;
7-
use PhpList\PhpList4\TestingSupport\Traits\SymfonyServerTrait;
7+
use PhpList\Core\TestingSupport\Traits\SymfonyServerTrait;
88
use PHPUnit\Framework\TestCase;
99
use Symfony\Component\HttpFoundation\Response;
1010

0 commit comments

Comments
 (0)