Fix Entities namespace
This commit is contained in:
parent
112785980f
commit
eccd04b331
9 changed files with 10 additions and 20 deletions
|
@ -7,7 +7,7 @@
|
|||
namespace Modules\MMFRestrictedCustomers\Console\Commands;
|
||||
|
||||
use App\Conversation;
|
||||
use Modules\MMFRestrictedCustomers\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||
use App\Events\CustomerCreatedConversation;
|
||||
use App\Events\CustomerReplied;
|
||||
use App\Thread;
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||
|
||||
class DropEmailsOnCustomersDeletion extends Migration {
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Schema;
|
|||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Symfony\Component\Console\Output\ConsoleOutput;
|
||||
use Modules\MMFRestrictedCustomers\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||
|
||||
class AddMailboxIdColumnToCustomersTable extends Migration {
|
||||
/**
|
||||
|
|
|
@ -4,14 +4,8 @@
|
|||
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;
|
||||
|
||||
class Customer extends BaseCustomer {
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
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;
|
||||
|
||||
class Email extends BaseEmail {
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
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;
|
||||
|
||||
class Mailbox extends BaseMailbox {
|
||||
|
|
|
@ -10,7 +10,7 @@ use App\Conversation;
|
|||
use App\User;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\ConversationsController as BaseConversationsController;
|
||||
use Modules\MMFRestrictedCustomers\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||
|
||||
class ConversationsController extends BaseConversationsController {
|
||||
/**
|
||||
|
|
|
@ -14,9 +14,9 @@ use Illuminate\Http\Request;
|
|||
use Illuminate\Http\Response;
|
||||
use Illuminate\Routing\Controller;
|
||||
use Modules\Crm\Http\Controllers\CrmController as BaseCrmController;
|
||||
use Modules\MMFRestrictedCustomers\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Email;
|
||||
use Modules\MMFRestrictedCustomers\Mailbox;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Email;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Mailbox;
|
||||
|
||||
class CrmController extends BaseCrmController {
|
||||
public function createCustomer(Request $request) {
|
||||
|
|
|
@ -11,7 +11,7 @@ use App\Email;
|
|||
use Illuminate\Http\Request;
|
||||
use Validator;
|
||||
use App\Http\Controllers\CustomersController as BaseCustomersController;
|
||||
use Modules\MMFRestrictedCustomers\Customer;
|
||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||
|
||||
class CustomersController extends BaseCustomersController {
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue