Fix Entities namespace

This commit is contained in:
Antoine Le Gonidec 2024-07-10 17:26:43 +02:00
parent 112785980f
commit eccd04b331
Signed by: vv221
GPG key ID: 636B78F91CEB80D8
9 changed files with 10 additions and 20 deletions

View file

@ -7,7 +7,7 @@
namespace Modules\MMFRestrictedCustomers\Console\Commands; namespace Modules\MMFRestrictedCustomers\Console\Commands;
use App\Conversation; use App\Conversation;
use Modules\MMFRestrictedCustomers\Customer; use Modules\MMFRestrictedCustomers\Entities\Customer;
use App\Events\CustomerCreatedConversation; use App\Events\CustomerCreatedConversation;
use App\Events\CustomerReplied; use App\Events\CustomerReplied;
use App\Thread; use App\Thread;

View file

@ -7,7 +7,6 @@
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Symfony\Component\Console\Output\ConsoleOutput;
class DropEmailsOnCustomersDeletion extends Migration { class DropEmailsOnCustomersDeletion extends Migration {
/** /**

View file

@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Migrations\Migration;
use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\ConsoleOutput;
use Modules\MMFRestrictedCustomers\Customer; use Modules\MMFRestrictedCustomers\Entities\Customer;
class AddMailboxIdColumnToCustomersTable extends Migration { class AddMailboxIdColumnToCustomersTable extends Migration {
/** /**

View file

@ -4,14 +4,8 @@
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr> SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
*/ */
namespace Modules\MMFRestrictedCustomers; namespace Modules\MMFRestrictedCustomers\Entities;
use App\CustomerChannel;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Storage;
use Watson\Rememberable\Rememberable;
use Modules\MMFRestrictedCustomers\Mailbox;
use App\Customer as BaseCustomer; use App\Customer as BaseCustomer;
class Customer extends BaseCustomer { class Customer extends BaseCustomer {

View file

@ -4,10 +4,8 @@
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr> SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
*/ */
namespace Modules\MMFRestrictedCustomers; namespace Modules\MMFRestrictedCustomers\Entities;
use Illuminate\Database\Eloquent\Model;
use Watson\Rememberable\Rememberable;
use App\Email as BaseEmail; use App\Email as BaseEmail;
class Email extends BaseEmail { class Email extends BaseEmail {

View file

@ -4,9 +4,8 @@
SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr> SPDX-FileCopyrightText: © 2024 Millions Missing FRANCE <info@millionsmissing.fr>
*/ */
namespace Modules\MMFRestrictedCustomers; namespace Modules\MMFRestrictedCustomers\Entities;
use Modules\MMFRestrictedCustomers\Customer;
use App\Mailbox as BaseMailbox; use App\Mailbox as BaseMailbox;
class Mailbox extends BaseMailbox { class Mailbox extends BaseMailbox {

View file

@ -10,7 +10,7 @@ use App\Conversation;
use App\User; use App\User;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use App\Http\Controllers\ConversationsController as BaseConversationsController; use App\Http\Controllers\ConversationsController as BaseConversationsController;
use Modules\MMFRestrictedCustomers\Customer; use Modules\MMFRestrictedCustomers\Entities\Customer;
class ConversationsController extends BaseConversationsController { class ConversationsController extends BaseConversationsController {
/** /**

View file

@ -14,9 +14,9 @@ use Illuminate\Http\Request;
use Illuminate\Http\Response; use Illuminate\Http\Response;
use Illuminate\Routing\Controller; use Illuminate\Routing\Controller;
use Modules\Crm\Http\Controllers\CrmController as BaseCrmController; use Modules\Crm\Http\Controllers\CrmController as BaseCrmController;
use Modules\MMFRestrictedCustomers\Customer; use Modules\MMFRestrictedCustomers\Entities\Customer;
use Modules\MMFRestrictedCustomers\Email; use Modules\MMFRestrictedCustomers\Entities\Email;
use Modules\MMFRestrictedCustomers\Mailbox; use Modules\MMFRestrictedCustomers\Entities\Mailbox;
class CrmController extends BaseCrmController { class CrmController extends BaseCrmController {
public function createCustomer(Request $request) { public function createCustomer(Request $request) {

View file

@ -11,7 +11,7 @@ use App\Email;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Validator; use Validator;
use App\Http\Controllers\CustomersController as BaseCustomersController; use App\Http\Controllers\CustomersController as BaseCustomersController;
use Modules\MMFRestrictedCustomers\Customer; use Modules\MMFRestrictedCustomers\Entities\Customer;
class CustomersController extends BaseCustomersController { class CustomersController extends BaseCustomersController {
/** /**