feat: Complete Woles Framework v1.0 with enterprise-grade UI
- Add comprehensive error handling system with custom error pages - Implement professional enterprise-style design with Tailwind CSS - Create modular HMVC architecture with clean separation of concerns - Add security features: CSRF protection, XSS filtering, Argon2ID hashing - Include CLI tools for development workflow - Add error reporting dashboard with system monitoring - Implement responsive design with consistent slate color scheme - Replace all emoji icons with professional SVG icons - Add comprehensive test suite with PHPUnit - Include database migrations and seeders - Add proper exception handling with fallback pages - Implement template engine with custom syntax support - Add helper functions and facades for clean code - Include proper logging and debugging capabilities
This commit is contained in:
50
app/Core/Facades/Response.php
Normal file
50
app/Core/Facades/Response.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace App\Core\Facades;
|
||||
|
||||
/**
|
||||
* NovaCore Response Facade
|
||||
* Static access to response services
|
||||
*/
|
||||
class Response
|
||||
{
|
||||
/**
|
||||
* Get response instance
|
||||
*/
|
||||
public static function instance(): \App\Core\Response
|
||||
{
|
||||
return app('response');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set JSON response
|
||||
*/
|
||||
public static function json(array $data, int $status = 200): \App\Core\Response
|
||||
{
|
||||
return self::instance()->json($data, $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set HTML response
|
||||
*/
|
||||
public static function html(string $content, int $status = 200): \App\Core\Response
|
||||
{
|
||||
return self::instance()->html($content, $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Redirect response
|
||||
*/
|
||||
public static function redirect(string $url, int $status = 302): void
|
||||
{
|
||||
self::instance()->redirect($url, $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set status code
|
||||
*/
|
||||
public static function status(int $code): \App\Core\Response
|
||||
{
|
||||
return self::instance()->status($code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user