update contact recode and clean up

This commit is contained in:
hazim
2019-03-07 15:31:16 +08:00
parent 4848e1bd5b
commit 46fe8430ef
16 changed files with 572 additions and 6 deletions
@@ -0,0 +1,15 @@
<?php
namespace App\Http\Controllers\Contacts;
use App\Classes\Constants;
use Illuminate\Http\Request;
use App\Modules\ControllerLogic\Contacts\CreateContactLogic;
class CreateContactController
{
public function create(string $type, int $referencesId, Request $request, CreateContactLogic $logic){
return $logic->execute(Constants::MODULE_TYPES[$type], $referencesId, $request);
}
}