mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
Merge pull request #835 from crazywhalecc/chore/test-and-validate
Chore: PHPUnit test & docs & PHPDoc for vendor mode
This commit is contained in:
@@ -4,15 +4,27 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\toolchain;
|
||||
|
||||
/**
|
||||
* Interface for toolchain implementations
|
||||
*
|
||||
* This interface defines the contract for toolchain classes that handle
|
||||
* environment initialization and setup for different build targets.
|
||||
*/
|
||||
interface ToolchainInterface
|
||||
{
|
||||
/**
|
||||
* Initialize the environment for the given target.
|
||||
*
|
||||
* This method should set up any necessary environment variables,
|
||||
* paths, or configurations required for the build process.
|
||||
*/
|
||||
public function initEnv(): void;
|
||||
|
||||
/**
|
||||
* Perform actions after the environment has been initialized for the given target.
|
||||
*
|
||||
* This method is called after initEnv() and can be used for any
|
||||
* post-initialization setup or validation.
|
||||
*/
|
||||
public function afterInit(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user