2023-04-15 18:45:11 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\util;
|
|
|
|
|
|
|
|
|
|
use SPC\builder\Extension;
|
|
|
|
|
|
2025-07-29 11:08:53 +08:00
|
|
|
/**
|
|
|
|
|
* Custom extension attribute and manager
|
|
|
|
|
*
|
|
|
|
|
* This class provides functionality to register and manage custom PHP extensions
|
|
|
|
|
* that can be used during the build process.
|
|
|
|
|
*/
|
2023-04-15 18:45:11 +08:00
|
|
|
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS)]
|
|
|
|
|
class CustomExt
|
|
|
|
|
{
|
2025-07-29 11:08:53 +08:00
|
|
|
/**
|
|
|
|
|
* Constructor for custom extension attribute
|
|
|
|
|
*
|
|
|
|
|
* @param string $ext_name The extension name
|
|
|
|
|
*/
|
2025-08-06 20:35:52 +08:00
|
|
|
public function __construct(public string $ext_name) {}
|
2023-04-15 18:45:11 +08:00
|
|
|
}
|