Commit 1f31472e authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Move door authenticate to singular namespace since it operates on a door

and not the doors resource perse
parent 33b912e0
......@@ -7,8 +7,8 @@ use Illuminate\Http\Request;
use Illuminate\Auth\GuardHelpers;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Auth\Authenticatable;
use Source\UseCases\Doors\Authenticate\AuthenticateUseCase;
use Source\UseCases\Doors\Authenticate\TranslationPresenter;
use Source\UseCases\Door\Authenticate\AuthenticateUseCase;
use Source\UseCases\Door\Authenticate\TranslationPresenter;
class DoorGuard implements Guard
{
......
......@@ -38,7 +38,7 @@ use Source\UseCases\GroupUser\AddUserToGroup\AddUserToGroupUseCaseServiceProvide
use Source\UseCases\Doors\GenerateDoorToken\GenerateDoorTokenUseCaseServiceProvider;
use Source\UseCases\DoorGroup\RemoveDoorFromGroup\RemoveDoorFromGroupUseCaseServiceProvider;
use Source\UseCases\GroupUser\RemoveUserFromGroup\RemoveUserFromGroupUseCaseServiceProvider;
use Source\UseCases\Doors\Authenticate\AuthenticateUseCaseServiceProvider as DoorAuthenticateUseCaseServiceProvider;
use Source\UseCases\Door\Authenticate\AuthenticateUseCaseServiceProvider as DoorAuthenticateUseCaseServiceProvider;
use Source\UseCases\Users\Authenticate\AuthenticateUseCaseServiceProvider as UserAuthenticateUseCaseServiceProvider;
class AppServiceProvider extends ServiceProvider
......
......@@ -7,7 +7,7 @@ use App\Guards\DoorGuard;
use Illuminate\Support\Facades\Auth;
use Source\UseCases\Token\Authenticate\AuthenticateUseCase;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Source\UseCases\Doors\Authenticate\AuthenticateUseCase as DoorAuthenticateUseCase;
use Source\UseCases\Door\Authenticate\AuthenticateUseCase as DoorAuthenticateUseCase;
class AuthServiceProvider extends ServiceProvider
{
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
use Source\Entities\HashedSearchable;
use Source\Gateways\Doors\DoorsRepository;
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
interface AuthenticateUseCase
{
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
use Illuminate\Support\ServiceProvider;
use Source\Gateways\Doors\DoorsRepository;
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
use App\Door;
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
use Source\Entities\Door;
......
<?php
namespace Source\UseCases\Doors\Authenticate;
namespace Source\UseCases\Door\Authenticate;
use App\Door;
use Source\UseCases\BasePresenter;
......
......@@ -4,9 +4,9 @@
namespace Tests\Unit\Guards;
use Source\Entities\Door;
use Source\UseCases\Doors\Authenticate\Presenter;
use Source\UseCases\Doors\Authenticate\ResponseModel;
use Source\UseCases\Doors\Authenticate\AuthenticateUseCase;
use Source\UseCases\Door\Authenticate\Presenter;
use Source\UseCases\Door\Authenticate\ResponseModel;
use Source\UseCases\Door\Authenticate\AuthenticateUseCase;
class DoorAuthenticateUseCaseStub implements AuthenticateUseCase
{
......
......@@ -4,8 +4,8 @@
namespace Tests\Unit\Guards;
use App\Door;
use Source\UseCases\Doors\Authenticate\Presenter;
use Source\UseCases\Doors\Authenticate\ResponseModel;
use Source\UseCases\Door\Authenticate\Presenter;
use Source\UseCases\Door\Authenticate\ResponseModel;
class DoorPresenterStub implements Presenter
{
......
......@@ -4,8 +4,8 @@
namespace Tests\Unit\Source\UseCases\Doors\Authenticate;
use App\Door;
use Source\UseCases\Doors\Authenticate\Presenter;
use Source\UseCases\Doors\Authenticate\ResponseModel;
use Source\UseCases\Door\Authenticate\Presenter;
use Source\UseCases\Door\Authenticate\ResponseModel;
class PresenterStub implements Presenter
{
......
......@@ -6,18 +6,18 @@ namespace Tests\Unit\Source\UseCases\Doors\Authenticate;
use Source\Entities\Door;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\UseCases\Doors\Authenticate\ResponseModel;
use Source\UseCases\Doors\Authenticate\TranslationPresenter;
use Source\UseCases\Door\Authenticate\ResponseModel;
use Source\UseCases\Door\Authenticate\TranslationPresenter;
class PresenterTest extends TestCase
{
/**
* @var \Source\UseCases\Doors\Authenticate\TranslationPresenter
* @var \Source\UseCases\Door\Authenticate\TranslationPresenter
*/
protected TranslationPresenter $presenter;
/**
* @var \Source\UseCases\Doors\Authenticate\ResponseModel
* @var \Source\UseCases\Door\Authenticate\ResponseModel
*/
protected ResponseModel $model;
......
......@@ -7,8 +7,8 @@ use Source\Entities\Door;
use PHPUnit\Framework\TestCase;
use Source\Entities\HashedSearchable;
use Source\Gateways\Doors\InMemoryDoorsRepository;
use Source\UseCases\Doors\Authenticate\Authenticate;
use Source\UseCases\Doors\Authenticate\ResponseModel;
use Source\UseCases\Door\Authenticate\Authenticate;
use Source\UseCases\Door\Authenticate\ResponseModel;
class UseCaseTest extends TestCase
{
......@@ -23,7 +23,7 @@ class UseCaseTest extends TestCase
protected PresenterStub $presenter;
/**
* @var \Source\UseCases\Doors\Authenticate\ResponseModel
* @var \Source\UseCases\Door\Authenticate\ResponseModel
*/
protected ResponseModel $response;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment