- Moved logic from MainController to dedicated action and task classes. - Introduced GetMainPageDataAction, GetEducationsDataTask, GetRecentPostsTask, GetUpcomingEventsTask, and GetPageDataTask for better separation of concerns. - Updated routes to use the new MainController from the Main container. - Deprecated the old MainController with a clear message for future removal. - Updated caching mechanisms to use the new task classes. - Adjusted environment variable access to use config() instead of env() for better practice. - Added new MainPageResource for structured data response. - Updated .gitignore to exclude QWEN.md. - Added Jenkins service to docker-compose for CI/CD integration.
18 lines
573 B
PHP
18 lines
573 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
/**
|
|
* @deprecated Use App\Containers\Main\UI\WEB\Controllers\MainController instead
|
|
* This controller is deprecated and will be removed in future versions.
|
|
* All logic has been moved to the Main container following Porto architecture.
|
|
*/
|
|
class MainController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
// This method is deprecated. Use App\Containers\Main\UI\WEB\Controllers\MainController instead.
|
|
abort(500, 'MainController in Http namespace is deprecated. Use the containerized version.');
|
|
}
|
|
}
|