Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?php
/**
* CODING CONVENTION:
* This file follows the coding convention where variable_names and function_names
* use snake_case (underscore_wherever_possible).
*/
namespace App\RSpade\Core\Base;
use Illuminate\Http\Request;
/**
* Main_Abstract - Base class for application-wide middleware-style hooks
*
* Classes extending this abstract can define application-wide behaviors
* that execute at key points in the request lifecycle.
*/
abstract class Main_Abstract
{
/**
* Initialize the Main class
*
* Called once during application bootstrap
*
* @return void
*/
abstract public static function init();
/**
* Pre-dispatch hook
*
* Called before any route dispatch. If a non-null value is returned,
* dispatch is halted and that value is returned as the response.
*
* @param Request $request The current request
* @param array $params Combined GET values and URL parameters
* @return mixed|null Return null to continue, or a response to halt dispatch
*/
abstract public static function pre_dispatch(Request $request, array $params);
/**
* Unhandled route hook
*
* Called when no route matches the request
*
* @param Request $request The current request
* @param array $params Combined GET values and URL parameters
* @return mixed|null Return null for default 404, or a response to handle
*/
abstract public static function unhandled_route(Request $request, array $params);
}