Skip to content

Commit

Permalink
[TASK] Use the new core namespace (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee authored Mar 7, 2018
1 parent ce9e0bc commit 6feaf79
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 31 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@
},
"scripts": {
"list-modules": [
"PhpList\\PhpList4\\Composer\\ScriptHandler::listModules"
"PhpList\\Core\\Composer\\ScriptHandler::listModules"
],
"create-directories": [
"PhpList\\PhpList4\\Composer\\ScriptHandler::createBinaries",
"PhpList\\PhpList4\\Composer\\ScriptHandler::createPublicWebDirectory"
"PhpList\\Core\\Composer\\ScriptHandler::createBinaries",
"PhpList\\Core\\Composer\\ScriptHandler::createPublicWebDirectory"
],
"update-configuration": [
"PhpList\\PhpList4\\Composer\\ScriptHandler::createGeneralConfiguration",
"PhpList\\PhpList4\\Composer\\ScriptHandler::createBundleConfiguration",
"PhpList\\PhpList4\\Composer\\ScriptHandler::createRoutesConfiguration",
"PhpList\\PhpList4\\Composer\\ScriptHandler::createParametersConfiguration",
"PhpList\\PhpList4\\Composer\\ScriptHandler::clearAllCaches"
"PhpList\\Core\\Composer\\ScriptHandler::createGeneralConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::createBundleConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::createRoutesConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::createParametersConfiguration",
"PhpList\\Core\\Composer\\ScriptHandler::clearAllCaches"
],
"post-install-cmd": [
"@create-directories",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
>
<php>
<ini name="error_reporting" value="-1"/>
<server name="KERNEL_CLASS" value="PhpList\PhpList4\Core\ApplicationKernel"/>
<server name="KERNEL_CLASS" value="PhpList\Core\Core\ApplicationKernel"/>
</php>
</phpunit>
6 changes: 3 additions & 3 deletions src/Controller/ListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use FOS\RestBundle\Controller\FOSRestController;
use FOS\RestBundle\Routing\ClassResourceInterface;
use FOS\RestBundle\View\View;
use PhpList\PhpList4\Domain\Model\Messaging\SubscriberList;
use PhpList\PhpList4\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\PhpList4\Security\Authentication;
use PhpList\Core\Domain\Model\Messaging\SubscriberList;
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\Core\Security\Authentication;
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
use Symfony\Component\HttpFoundation\Request;

Expand Down
10 changes: 5 additions & 5 deletions src/Controller/SessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
use FOS\RestBundle\Controller\FOSRestController;
use FOS\RestBundle\Routing\ClassResourceInterface;
use FOS\RestBundle\View\View;
use PhpList\PhpList4\Domain\Model\Identity\Administrator;
use PhpList\PhpList4\Domain\Model\Identity\AdministratorToken;
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorRepository;
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorTokenRepository;
use PhpList\PhpList4\Security\Authentication;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
use PhpList\Core\Domain\Repository\Identity\AdministratorRepository;
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
use PhpList\Core\Security\Authentication;
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
6 changes: 3 additions & 3 deletions src/Controller/SubscriberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use FOS\RestBundle\Controller\FOSRestController;
use FOS\RestBundle\Routing\ClassResourceInterface;
use FOS\RestBundle\View\View;
use PhpList\PhpList4\Domain\Model\Subscription\Subscriber;
use PhpList\PhpList4\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\PhpList4\Security\Authentication;
use PhpList\Core\Domain\Model\Subscription\Subscriber;
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\Core\Security\Authentication;
use PhpList\RestBundle\Controller\Traits\AuthenticationTrait;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/Traits/AuthenticationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace PhpList\RestBundle\Controller\Traits;

use PhpList\PhpList4\Domain\Model\Identity\Administrator;
use PhpList\PhpList4\Security\Authentication;
use PhpList\Core\Domain\Model\Identity\Administrator;
use PhpList\Core\Security\Authentication;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Controller/AbstractControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace PhpList\RestBundle\Tests\Integration\Controller;

use PhpList\PhpList4\TestingSupport\AbstractWebTest;
use PhpList\PhpList4\TestingSupport\Traits\DatabaseTestTrait;
use PhpList\Core\TestingSupport\AbstractWebTest;
use PhpList\Core\TestingSupport\Traits\DatabaseTestTrait;
use Symfony\Component\DomCrawler\Crawler;
use Symfony\Component\HttpFoundation\Response;

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Controller/ListControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PhpList\RestBundle\Tests\Integration\Controller;

use PhpList\PhpList4\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\Core\Domain\Repository\Messaging\SubscriberListRepository;
use PhpList\RestBundle\Controller\ListController;

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Controller/SessionControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
namespace PhpList\RestBundle\Tests\Integration\Controller;

use Doctrine\Common\Persistence\ObjectRepository;
use PhpList\PhpList4\Domain\Model\Identity\AdministratorToken;
use PhpList\PhpList4\Domain\Repository\Identity\AdministratorTokenRepository;
use PhpList\Core\Domain\Model\Identity\AdministratorToken;
use PhpList\Core\Domain\Repository\Identity\AdministratorTokenRepository;
use PhpList\RestBundle\Controller\SessionController;
use Symfony\Component\HttpFoundation\Response;

Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/Controller/SubscriberControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace PhpList\RestBundle\Tests\Integration\Controller;

use PhpList\PhpList4\Domain\Model\Subscription\Subscriber;
use PhpList\PhpList4\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\Core\Domain\Model\Subscription\Subscriber;
use PhpList\Core\Domain\Repository\Subscription\SubscriberRepository;
use PhpList\RestBundle\Controller\SubscriberController;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Routing/RoutingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace PhpList\RestBundle\Tests\Integration\Routing;

use PhpList\PhpList4\TestingSupport\AbstractWebTest;
use PhpList\Core\TestingSupport\AbstractWebTest;

/**
* Testcase.
Expand Down
2 changes: 1 addition & 1 deletion tests/System/Controller/SessionControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace PhpList\RestBundle\Tests\System\Controller;

use GuzzleHttp\Client;
use PhpList\PhpList4\TestingSupport\Traits\SymfonyServerTrait;
use PhpList\Core\TestingSupport\Traits\SymfonyServerTrait;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Response;

Expand Down

0 comments on commit 6feaf79

Please sign in to comment.