Migrate backend to Porto architecture and fix minor bugs
- Fully transitioned the backend to the Porto architectural pattern - Improved code organization and maintainability - Fixed minor bugs and inconsistencies
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Education\UI\API\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Jobs\CreateAdmissionPlan;
|
||||
use App\Jobs\CreateDirectionStudy;
|
||||
use App\Jobs\CreateEducationalProgram;
|
||||
use App\Services\Vicon\EducationalProgram\EducationalProgramService;
|
||||
|
||||
class UpdateAdmissionPlansDataApiController extends Controller
|
||||
{
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->clearAndCreateAdmissionPlans();
|
||||
return redirect()->route('index');
|
||||
}
|
||||
|
||||
private function clearAndCreateAdmissionPlans() : void
|
||||
{
|
||||
dispatch(new CreateAdmissionPlan());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user