create new contact recode and clean up

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