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,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Education\UI\API\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Jobs\CreateDirectionStudy;
|
||||
use App\Jobs\CreateEducationalProgram;
|
||||
use App\Services\Vicon\EducationalProgram\EducationalProgramService;
|
||||
|
||||
class UpdateEduDataApiController extends Controller
|
||||
{
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->updateOrCreateDirectionStudy();
|
||||
$this->updateOrCreateEducationProgram();
|
||||
return redirect()->route('index');
|
||||
}
|
||||
|
||||
private function updateOrCreateDirectionStudy() : void
|
||||
{
|
||||
dispatch(new CreateDirectionStudy());
|
||||
}
|
||||
private function updateOrCreateEducationProgram() : void
|
||||
{
|
||||
dispatch(new CreateEducationalProgram());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user