└── src └── ESD ├── Rpc ├── .gitkeep ├── RpcException.php ├── IdGenerator │ ├── IdGeneratorInterface.php │ ├── UniqidIdGenerator.php │ └── RequestIdGenerator.php └── Client │ └── Client.php ├── Install └── install │ ├── src │ ├── Job │ │ └── .gitkeep.php │ ├── Assets │ │ └── MainAsset.php │ ├── Controller │ │ ├── Base.php │ │ └── Index.php │ └── Application.php │ ├── server.php │ └── resources │ └── application.yml ├── Yii ├── Captcha │ ├── SpicyRice.ttf │ ├── SpicyRice.md │ └── CaptchaAsset.php ├── Helpers │ ├── mimeAliases.php │ ├── FileHelper.php │ ├── StringHelper.php │ ├── Inflector.php │ ├── Console.php │ ├── Url.php │ ├── IpHelper.php │ ├── Json.php │ ├── ArrayHelper.php │ └── FormatConverter.php ├── Clickhouse │ ├── TableSchema.php │ ├── Gii │ │ └── Model │ │ │ └── form.php │ └── HttpClient │ │ └── Request.php ├── Plugin │ ├── Pdo │ │ ├── ConnectionException.php │ │ ├── Configs.php │ │ └── PdoPools.php │ └── Mongodb │ │ ├── Configs.php │ │ └── MongodbPools.php ├── Views │ ├── _addComments.php │ ├── _dropColumns.php │ ├── _foreignTables.php │ ├── _dropTable.php │ ├── _addColumns.php │ ├── _dropForeignKeys.php │ ├── _addForeignKeys.php │ └── _createTable.php ├── Console │ ├── Response.php │ └── Exception.php ├── Db │ ├── Sqlite │ │ └── Conditions │ │ │ └── LikeConditionBuilder.php │ ├── CheckConstraint.php │ ├── StaleObjectException.php │ ├── DefaultValueConstraint.php │ ├── Mssql │ │ ├── Conditions │ │ │ └── LikeConditionBuilder.php │ │ └── TableSchema.php │ ├── AfterSaveEvent.php │ ├── IndexConstraint.php │ ├── IntegrityException.php │ ├── Constraint.php │ ├── ExpressionInterface.php │ └── Conditions │ │ ├── AndCondition.php │ │ └── OrCondition.php ├── Bootstrap4 │ ├── InputWidget.php │ ├── BootstrapAsset.php │ ├── BootstrapPluginAsset.php │ └── Html.php ├── Queue │ ├── PushEvent.php │ ├── JobInterface.php │ ├── Cli │ │ └── WorkerEvent.php │ ├── Serializers │ │ └── SerializerInterface.php │ └── RetryableJobInterface.php ├── Base │ ├── UserException.php │ ├── ModelEvent.php │ ├── InvalidRouteException.php │ ├── UnknownClassException.php │ ├── ViewNotFoundException.php │ ├── InvalidCallException.php │ ├── InvalidConfigException.php │ ├── NotSupportedException.php │ ├── UnknownPropertyException.php │ ├── UnknownMethodException.php │ ├── InvalidArgumentException.php │ ├── InvalidValueException.php │ └── Exception.php ├── Caching │ └── migrations │ │ ├── schema-oci.sql │ │ ├── schema-pgsql.sql │ │ ├── schema-sqlite.sql │ │ ├── schema-mysql.sql │ │ └── schema-mssql.sql ├── Web │ ├── JqueryAsset.php │ └── YiiAsset.php ├── Rbac │ ├── Role.php │ └── Permission.php ├── Mongodb │ ├── Rbac │ │ ├── Role.php │ │ └── Permission.php │ ├── Gii │ │ └── model │ │ │ └── form.php │ ├── Views │ │ └── migration.php │ └── Exception.php ├── Yii.php ├── Debug │ └── Components │ │ └── Search │ │ └── Matchers │ │ ├── LowerThan.php │ │ ├── GreaterThan.php │ │ └── GreaterThanOrEqual.php ├── Redis │ └── SocketException.php ├── Validators │ ├── PunycodeAsset.php │ └── ValidationAsset.php ├── HttpClient │ ├── ParserInterface.php │ ├── Exception.php │ └── FormatterInterface.php ├── Widgets │ ├── ActiveFormAsset.php │ └── PjaxAsset.php ├── Log │ └── LogRuntimeException.php └── Elasticsearch │ └── Exception.php ├── Nikic ├── FastRoute │ ├── BadRouteException.php │ ├── bootstrap.php │ └── Dispatcher.php └── PhpParser │ ├── ConstExprEvaluationException.php │ ├── Node │ ├── Scalar.php │ ├── Expr.php │ ├── Stmt.php │ ├── Expr │ │ ├── Cast │ │ │ ├── Bool_.php │ │ │ ├── Int_.php │ │ │ ├── Array_.php │ │ │ ├── Unset_.php │ │ │ ├── Object_.php │ │ │ ├── String_.php │ │ │ └── Double.php │ │ ├── AssignOp │ │ │ ├── Div.php │ │ │ ├── Mod.php │ │ │ ├── Mul.php │ │ │ ├── Pow.php │ │ │ ├── Plus.php │ │ │ ├── Concat.php │ │ │ ├── Minus.php │ │ │ ├── Coalesce.php │ │ │ ├── BitwiseOr.php │ │ │ ├── ShiftLeft.php │ │ │ ├── BitwiseAnd.php │ │ │ ├── BitwiseXor.php │ │ │ └── ShiftRight.php │ │ ├── BinaryOp │ │ │ ├── Div.php │ │ │ ├── Mod.php │ │ │ ├── Mul.php │ │ │ ├── Plus.php │ │ │ ├── Pow.php │ │ │ ├── Concat.php │ │ │ ├── Equal.php │ │ │ ├── Minus.php │ │ │ ├── Greater.php │ │ │ ├── Smaller.php │ │ │ ├── BitwiseOr.php │ │ │ ├── BooleanOr.php │ │ │ ├── Coalesce.php │ │ │ ├── LogicalOr.php │ │ │ ├── NotEqual.php │ │ │ ├── ShiftLeft.php │ │ │ ├── BitwiseAnd.php │ │ │ ├── BitwiseXor.php │ │ │ ├── BooleanAnd.php │ │ │ ├── Identical.php │ │ │ ├── LogicalAnd.php │ │ │ ├── LogicalXor.php │ │ │ ├── ShiftRight.php │ │ │ ├── Spaceship.php │ │ │ ├── NotIdentical.php │ │ │ ├── GreaterOrEqual.php │ │ │ └── SmallerOrEqual.php │ │ └── Cast.php │ ├── Stmt │ │ ├── TraitUseAdaptation.php │ │ └── Nop.php │ ├── Scalar │ │ ├── MagicConst │ │ │ ├── Dir.php │ │ │ ├── File.php │ │ │ ├── Line.php │ │ │ ├── Class_.php │ │ │ ├── Method.php │ │ │ ├── Trait_.php │ │ │ ├── Function_.php │ │ │ └── Namespace_.php │ │ └── MagicConst.php │ └── VarLikeIdentifier.php │ ├── Comment │ └── Doc.php │ ├── Builder.php │ ├── ErrorHandler.php │ ├── Lexer │ └── TokenEmulator │ │ └── TokenEmulatorInterface.php │ ├── ErrorHandler │ └── Throwing.php │ ├── NodeVisitorAbstract.php │ ├── NodeVisitor │ └── CloningVisitor.php │ ├── Internal │ └── DiffElem.php │ └── Parser.php ├── Core ├── Pool │ ├── Exception │ │ └── ConnectionException.php │ ├── ConfigInterface.php │ ├── PoolOptionInterface.php │ ├── ConnectionInterface.php │ ├── FrequencyInterface.php │ └── PoolInterface.php ├── Server │ ├── Beans │ │ └── Response.php │ ├── Port │ │ └── ServerPort.php │ ├── ApplicationEvent.php │ ├── Process │ │ └── ProcessEvent.php │ └── EmptyServer.php ├── DI │ └── Factory.php ├── Runtime.php ├── Plugins │ └── Config │ │ ├── ConfigChangeEvent.php │ │ └── ConfigException.php ├── Plugin │ └── PluginEvent.php ├── Context │ └── ContextBuilder.php └── ParamException.php ├── Plugins ├── RateLimit │ ├── Exception │ │ └── RateLimitException.php │ └── Storage │ │ └── StorageInterface.php ├── Console │ └── resources │ │ └── property.stub ├── Redis │ ├── Exception │ │ ├── InvalidRedisOptionException.php │ │ └── InvalidRedisConnectionException.php │ ├── RedisException.php │ └── Configs.php ├── Actor │ ├── ActorException.php │ ├── Multicast │ │ ├── BadUTF8.php │ │ └── MulticastProcess.php │ └── Event │ │ ├── ActorDeleteEvent.php │ │ ├── ActorSaveEvent.php │ │ └── ActorCreateEvent.php ├── JsonRpc │ ├── RpcException.php │ ├── Sample │ │ ├── resources │ │ │ └── application.yml.sample │ │ └── Service │ │ │ └── JsonRpc │ │ │ └── CalculatorService.php.sample │ ├── Transporter │ │ ├── JsonRpcPoolTransporter.php │ │ └── TransporterInterface.php │ ├── Packer │ │ └── PackerInterface.php │ └── Annotation │ │ └── ResponeJsonRpc.php ├── Cloud │ ├── SaberCloud │ │ ├── CloudException.php │ │ ├── SaberCloudException.php │ │ └── BadResponseException.php │ ├── Gateway │ │ ├── Annotation │ │ │ ├── MqttMapping.php │ │ │ ├── PostMapping.php │ │ │ ├── PutMapping.php │ │ │ ├── RpcController.php │ │ │ ├── RequestBody.php │ │ │ ├── RequestRaw.php │ │ │ ├── RequestRawJson.php │ │ │ ├── RequestRawXml.php │ │ │ ├── DelMapping.php │ │ │ ├── GetMapping.php │ │ │ ├── AnyMapping.php │ │ │ ├── ResponseBody.php │ │ │ ├── ModelAttribute.php │ │ │ ├── RequestMapping.php │ │ │ ├── WsController.php │ │ │ ├── TcpController.php │ │ │ ├── UdpController.php │ │ │ ├── MqttController.php │ │ │ ├── RestController.php │ │ │ ├── RestGatewayController.php │ │ │ ├── RequestFormData.php │ │ │ ├── PathVariable.php │ │ │ └── RequestParam.php │ │ ├── NormalErrorController.php │ │ └── RouteException.php │ ├── Registry │ │ └── RegistryPlugin.php │ └── Consul │ │ ├── Beans │ │ └── ConsulServiceListInfo.php │ │ └── ConsulLeader.php ├── MQTT │ ├── Exception │ │ ├── LengthException.php │ │ ├── ConnectException.php │ │ ├── RuntimeException.php │ │ ├── ProtocolException.php │ │ └── InvalidArgumentException.php │ ├── Auth │ │ ├── MqttAuthInterface.php │ │ └── MqttAuth.php │ └── Client │ │ └── Config │ │ └── AbstractConfig.php ├── Topic │ ├── BadUTF8.php │ └── TopicProcess.php ├── Amqp │ ├── AmqpPools.php │ ├── AmqpException.php │ ├── Message │ │ ├── MessageException.php │ │ ├── ProducerMessageInterface.php │ │ └── Type.php │ └── Annotation │ │ └── Producer.php ├── Cache │ └── CacheException.php ├── Pack │ ├── PackException.php │ └── GetClientData.php ├── EasyRoute │ ├── Annotation │ │ ├── MqttMapping.php │ │ ├── PutMapping.php │ │ ├── PostMapping.php │ │ ├── RpcController.php │ │ ├── RequestRaw.php │ │ ├── RequestBody.php │ │ ├── RequestRawXml.php │ │ ├── RequestRawJson.php │ │ ├── GetMapping.php │ │ ├── DelMapping.php │ │ ├── AnyMapping.php │ │ ├── ModelAttribute.php │ │ ├── ResponseBody.php │ │ ├── RequestMapping.php │ │ ├── WsController.php │ │ ├── MqttController.php │ │ ├── RestController.php │ │ ├── TcpController.php │ │ ├── UdpController.php │ │ ├── RequestFormData.php │ │ ├── PathVariable.php │ │ └── RequestParam.php │ ├── NormalErrorController.php │ └── RouteException.php ├── Whoops │ └── WhoopsHandler.php ├── AnnotationsScan │ ├── Annotation │ │ └── Component.php │ └── ScanEvent.php ├── ProcessRPC │ └── ProcessRPCException.php ├── Aop │ ├── OrderAspect.php │ └── AopEvent.php ├── Security │ ├── AccessDeniedException.php │ ├── Annotation │ │ ├── PreAuthorize.php │ │ └── PostAuthorize.php │ └── SecurityConfig.php ├── Session │ ├── GetSession.php │ └── SessionStorage.php ├── Saber │ └── Interceptors │ │ ├── RetryInterceptor.php │ │ ├── BeforeInterceptor.php │ │ └── AfterInterceptor.php ├── Autostart │ └── Annotation │ │ └── Autostart.php ├── Scheduled │ └── Annotation │ │ └── Scheduled.php ├── PHPUnit │ └── GoTestCase.php └── Validate │ └── ValidationException.php ├── Jwt └── Exception │ ├── JWTException.php │ ├── TokenValidException.php │ └── PermissionDeniedException.php ├── Psr ├── Tracing │ └── TracingInterface.php ├── Cloud │ ├── Leader.php │ └── Services.php └── DB │ └── DBInterface.php ├── Coordinator └── Constants.php ├── TokenBucket ├── TokenBucketException.php ├── TimeoutException.php └── Storage │ ├── StorageException.php │ └── Scope │ ├── SessionScope.php │ ├── GlobalScope.php │ └── RequestScope.php ├── Snowflake ├── Exception │ └── SnowflakeException.php ├── MetaGeneratorInterface.php └── IdGeneratorInterface.php ├── Coroutine ├── Pool │ └── Executor.php ├── Channel │ └── ChannelFactory.php └── Event │ └── EventCallFactory.php ├── Parallel └── WaitGroup.php ├── Goaop ├── Lang │ └── Annotation │ │ ├── Interceptor.php │ │ ├── Aspect.php │ │ ├── After.php │ │ ├── Around.php │ │ ├── Before.php │ │ ├── AfterThrowing.php │ │ ├── Pointcut.php │ │ └── BaseInterceptor.php ├── Aop │ ├── Advice.php │ ├── AdviceAfter.php │ ├── AdviceAround.php │ ├── AdviceBefore.php │ ├── AspectException.php │ ├── Proxy.php │ ├── Framework │ │ └── OrderedAdvice.php │ ├── Aspect.php │ ├── Advisor.php │ └── PointcutAdvisor.php └── ParserReflection │ ├── ReflectionException.php │ └── bootstrap.php ├── LoadBalance └── RuntimeException.php └── Server └── Coroutine └── Http └── Factory ├── RequestFactory.php └── ResponseFactory.php /src/ESD/Rpc/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/ESD/Install/install/src/Job/.gitkeep.php: -------------------------------------------------------------------------------- 1 | 'application/xml', 9 | ]; 10 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Redis/Exception/InvalidRedisConnectionException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Jwt\Exception; 8 | 9 | class JWTException extends \RuntimeException 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Yii/Plugin/Pdo/ConnectionException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Yii\Plugin\Pdo; 8 | 9 | class ConnectionException extends \Exception 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Jwt/Exception/TokenValidException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Jwt\Exception; 8 | 9 | class TokenValidException extends \RuntimeException 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Actor/ActorException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Actor; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class ActorException extends Exception 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/JsonRpc/RpcException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Redis; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class RedisException extends Exception 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /src/ESD/Jwt/Exception/PermissionDeniedException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Jwt\Exception; 8 | 9 | class PermissionDeniedException extends \RuntimeException 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/SaberCloud/CloudException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\SaberCloud; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class CloudException extends Exception 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/SaberCloud/SaberCloudException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\SaberCloud; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class SaberCloudException extends Exception 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/SaberCloud/BadResponseException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\SaberCloud; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class BadResponseException extends Exception 12 | { 13 | 14 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/JsonRpc/Sample/resources/application.yml.sample: -------------------------------------------------------------------------------- 1 | esd: 2 | port: 3 | jsonRpcHttp: 4 | host: 0.0.0.0 5 | port: 8086 6 | openHttpProtocol: true 7 | sockType: 1 8 | packTool: 'App\Plugins\Pack\PackTool\JsonRpcPack' 9 | autoSendReturnValue: true -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Exception/LengthException.php: -------------------------------------------------------------------------------- 1 | 5 | * @author bearlord <565364226@qq.com> 6 | */ 7 | 8 | namespace ESD\Plugins\MQTT\Exception; 9 | 10 | class LengthException extends \LengthException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Plugins/RateLimit/Storage/StorageInterface.php: -------------------------------------------------------------------------------- 1 | 5 | * @author bearlord <565364226@qq.com> 6 | */ 7 | 8 | namespace ESD\Plugins\MQTT\Exception; 9 | 10 | class ConnectException extends \RuntimeException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Exception/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 5 | * @author bearlord <565364226@qq.com> 6 | */ 7 | 8 | namespace ESD\Plugins\MQTT\Exception; 9 | 10 | class RuntimeException extends \RuntimeException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Psr/Tracing/TracingInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Psr\Tracing; 8 | 9 | /** 10 | * Interface TracingInterface 11 | * @package ESD\Psr\Tracing 12 | */ 13 | interface TracingInterface 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_addComments.php: -------------------------------------------------------------------------------- 1 | $this->addCommentOnTable('', ''); 8 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Builder.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Redis; 8 | 9 | /** 10 | * Class RedisConfig 11 | * @package ESD\Plugins\Redis 12 | */ 13 | class Configs extends \ESD\Core\Pool\Configs 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Auth/MqttAuthInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\MQTT\Auth; 8 | 9 | interface MqttAuthInterface 10 | { 11 | public function auth(int $fd, string $username, string $password): array; 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Exception/ProtocolException.php: -------------------------------------------------------------------------------- 1 | 5 | * @author bearlord <565364226@qq.com> 6 | */ 7 | 8 | namespace ESD\Plugins\MQTT\Exception; 9 | 10 | class ProtocolException extends \InvalidArgumentException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Rpc/RpcException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Rpc; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class RpcException 13 | * @package ESD\Rpc 14 | */ 15 | class RpcException extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Plugin/Pdo/Configs.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Yii\Plugin\Pdo; 8 | 9 | /** 10 | * Class Configs 11 | * @package ESD\Yii\Plugin\Pdo 12 | */ 13 | class Configs extends \ESD\Core\Pool\Configs 14 | { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_dropColumns.php: -------------------------------------------------------------------------------- 1 | render('_dropForeignKeys', [ 4 | 'table' => $table, 5 | 'foreignKeys' => $foreignKeys, 6 | ]); 7 | 8 | foreach ($fields as $field): ?> 9 | $this->dropColumn('', ''); 10 | 5 | */ 6 | 7 | namespace ESD\Core\Server\Beans; 8 | 9 | /** 10 | * Class Response 11 | * @package ESD\Core\Server\Beans 12 | */ 13 | abstract class Response extends AbstractResponse 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Topic/BadUTF8.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Topic; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class BadUTF8 13 | * @package ESD\Plugins\Topic 14 | */ 15 | class BadUTF8 extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Rpc/IdGenerator/IdGeneratorInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Rpc\IdGenerator; 8 | 9 | /** 10 | * Interface IdGeneratorInterface 11 | */ 12 | interface IdGeneratorInterface 13 | { 14 | public function generate(); 15 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/Cast/Bool_.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Amqp; 8 | 9 | use ESD\Core\Pool\Pools; 10 | 11 | /** 12 | * Class AmqpPools 13 | * @package ESD\Plugins\Amqp 14 | */ 15 | class AmqpPools extends Pools 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Exception/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 5 | * @author bearlord <565364226@qq.com> 6 | */ 7 | 8 | namespace ESD\Plugins\MQTT\Exception; 9 | 10 | class InvalidArgumentException extends \InvalidArgumentException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/ESD/Yii/Plugin/Mongodb/Configs.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Yii\Plugin\Mongodb; 8 | 9 | /** 10 | * Class Configs 11 | * @package ESD\Yii\Plugin\Mongodb 12 | */ 13 | class Configs extends \ESD\Core\Pool\Configs 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/Cast/Array_.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Amqp; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class AmqpException 13 | * @package ESD\Plugins\Amqp 14 | */ 15 | class AmqpException extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cache/CacheException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | namespace ESD\Plugins\Cache; 7 | 8 | use ESD\Core\Exception; 9 | 10 | /** 11 | * Class CacheException 12 | * @package ESD\Plugins\Cache 13 | */ 14 | class CacheException extends Exception{ 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Pack/PackException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Pack; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class PackException 13 | * @package ESD\Plugins\Pack 14 | */ 15 | class PackException extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Plugin/Pdo/PdoPools.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Yii\Plugin\Pdo; 8 | 9 | use ESD\Core\Pool\Pools; 10 | 11 | /** 12 | * Class PdoPools 13 | * @package ESD\Yii\Plugin\Pdo 14 | */ 15 | class PdoPools extends Pools 16 | { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/AssignOp/Div.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Server\Port; 8 | 9 | /** 10 | * Class ServerPort 11 | * @package ESD\Core\Server\Port 12 | */ 13 | abstract class ServerPort extends AbstractServerPort implements IServerPort 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/AssignOp/Plus.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Actor\Multicast; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class BadUTF8 13 | * @package ESD\Plugins\Actor\Multicast 14 | */ 15 | class BadUTF8 extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/MqttMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("METHOD") 12 | */ 13 | class MqttMapping extends RequestMapping 14 | { 15 | public $method = ["mqtt"]; 16 | } -------------------------------------------------------------------------------- /src/ESD/Rpc/Client/Client.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Rpc\Client; 8 | 9 | use ESD\Yii\Base\Component; 10 | 11 | /** 12 | * Class Client 13 | * @package ESD\Rpc\Client 14 | */ 15 | abstract class Client 16 | { 17 | abstract public function send($data); 18 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/AssignOp/Coalesce.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("METHOD") 12 | */ 13 | class MqttMapping extends RequestMapping 14 | { 15 | public $method = ["mqtt"]; 16 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Plugin/Mongodb/MongodbPools.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Yii\Plugin\Mongodb; 8 | 9 | use ESD\Core\Pool\Pools; 10 | 11 | /** 12 | * Class PdoPools 13 | * @package ESD\Yii\Plugin\Mongodb 14 | */ 15 | class MongodbPools extends Pools 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Core/Pool/ConfigInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Whoops; 8 | 9 | use Whoops\Handler\PrettyPageHandler; 10 | 11 | /** 12 | * Class WhoopsHandler 13 | * @package ESD\Plugins\Whoops 14 | */ 15 | class WhoopsHandler extends PrettyPageHandler 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/TokenBucketException.php: -------------------------------------------------------------------------------- 1 | 9 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 10 | * @license WTFPL 11 | */ 12 | class TokenBucketException extends \Exception 13 | { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ESD/Core/DI/Factory.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\DI; 8 | 9 | /** 10 | * Interface Factory 11 | * @package ESD\Core\DI 12 | */ 13 | interface Factory 14 | { 15 | /** 16 | * @param $params 17 | * @return mixed 18 | */ 19 | public function create($params); 20 | } -------------------------------------------------------------------------------- /src/ESD/Core/Runtime.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core; 8 | 9 | /** 10 | * Class Runtime 11 | * @package ESD\Core 12 | */ 13 | class Runtime 14 | { 15 | /** 16 | * Whether to enable coroutine 17 | * @var bool 18 | */ 19 | public static $enableCoroutine = false; 20 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/AnnotationsScan/Annotation/Component.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\AnnotationsScan\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("CLASS") 14 | */ 15 | class Component extends Annotation 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/ProcessRPC/ProcessRPCException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\ProcessRPC; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class ProcessRPCException 13 | * @package ESD\Plugins\ProcessRPC 14 | */ 15 | class ProcessRPCException extends Exception 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Aop/OrderAspect.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Aop; 8 | 9 | use ESD\Core\Order\Order; 10 | use ESD\Goaop\Aop\Aspect; 11 | 12 | /** 13 | * Class OrderAspect 14 | * @package ESD\Plugins\Aop 15 | */ 16 | abstract class OrderAspect extends Order implements Aspect 17 | { 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Registry/RegistryPlugin.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\JsonRpc\Transporter; 8 | 9 | /** 10 | * Class JsonRpcPoolTransporter 11 | * @package ESD\Plugins\JsonRpc\Transporter 12 | */ 13 | class JsonRpcPoolTransporter implements TransporterInterface 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/TimeoutException.php: -------------------------------------------------------------------------------- 1 | 9 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 10 | * @license WTFPL 11 | */ 12 | final class TimeoutException extends TokenBucketException 13 | { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Stmt/TraitUseAdaptation.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PutMapping extends RequestMapping 16 | { 17 | public $method = ["put"]; 18 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_foreignTables.php: -------------------------------------------------------------------------------- 1 | 9 | * Has foreign keys to the tables: 10 | * 11 | 12 | * - `` 13 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PostMapping extends RequestMapping 16 | { 17 | public $method = ["post"]; 18 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_dropTable.php: -------------------------------------------------------------------------------- 1 | render('_dropForeignKeys', [ 10 | 'table' => $table, 11 | 'foreignKeys' => $foreignKeys, 12 | ]) ?> 13 | $this->dropTable(''); 14 | -------------------------------------------------------------------------------- /src/ESD/Core/Pool/PoolOptionInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PostMapping extends RequestMapping 16 | { 17 | public $method = ["post"]; 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/PutMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PutMapping extends RequestMapping 16 | { 17 | public $method = ["put"]; 18 | } -------------------------------------------------------------------------------- /src/ESD/Rpc/IdGenerator/UniqidIdGenerator.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Rpc\IdGenerator; 8 | 9 | /** 10 | * Class UniqidIdGenerator 11 | */ 12 | class UniqidIdGenerator implements IdGeneratorInterface 13 | { 14 | 15 | public function generate(): string 16 | { 17 | return uniqid(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Nikic/FastRoute/bootstrap.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RpcController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class RpcController extends Controller 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/JsonRpc/Packer/PackerInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\JsonRpc\Packer; 8 | 9 | /** 10 | * Interface PackerInterface 11 | * @package ESD\Plugins\JsonRpc 12 | */ 13 | interface PackerInterface 14 | { 15 | public function pack($data): string; 16 | 17 | public function unpack(string $data); 18 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Amqp/Message/MessageException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RpcController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class RpcController extends Controller 16 | { 17 | 18 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_addColumns.php: -------------------------------------------------------------------------------- 1 | 2 | $this->addColumn('', '', $this->); 9 | render('_addForeignKeys', [ 12 | 'table' => $table, 13 | 'foreignKeys' => $foreignKeys, 14 | ]); 15 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Security/AccessDeniedException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Security; 8 | 9 | use ESD\Core\Exception; 10 | 11 | class AccessDeniedException extends Exception 12 | { 13 | public function __construct() 14 | { 15 | parent::__construct("没有相应权限", 0, null); 16 | $this->setTrace(false); 17 | } 18 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Stmt/Nop.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRaw extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/Storage/StorageException.php: -------------------------------------------------------------------------------- 1 | 11 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 12 | * @license WTFPL 13 | */ 14 | final class StorageException extends TokenBucketException 15 | { 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/ESD/Coroutine/Pool/Executor.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Coroutine\Pool; 8 | 9 | /** 10 | * Interface Executor 11 | * @package ESD\Coroutine\Pool 12 | */ 13 | interface Executor 14 | { 15 | /** 16 | * Execute task 17 | * 18 | * @param $runnable 19 | * @return mixed 20 | */ 21 | public function execute($runnable); 22 | } -------------------------------------------------------------------------------- /src/ESD/Parallel/WaitGroup.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestBody extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RequestRawXml.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRawXml extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Security/Annotation/PreAuthorize.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Security\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PreAuthorize extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Lexer/TokenEmulator/TokenEmulatorInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestBody extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RequestRaw.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRaw extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RequestRawJson.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRawJson extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Security/Annotation/PostAuthorize.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Security\Annotation; 8 | 9 | 10 | use Doctrine\Common\Annotations\Annotation; 11 | 12 | /** 13 | * @Annotation 14 | * @Target("METHOD") 15 | */ 16 | class PostAuthorize extends Annotation 17 | { 18 | /** 19 | * @var string 20 | */ 21 | public $value; 22 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/Concat.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRawJson extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RequestRawXml.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestRawXml extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/GetMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class GetMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["get"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Console/Response.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Response 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/Greater.php: -------------------------------------------------------------------------------- 1 | '; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_Greater'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/Smaller.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class DelMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["delete"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/Interceptor.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Interceptor annotation marker 15 | */ 16 | interface Interceptor 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/LoadBalance/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Consul\Beans; 8 | 9 | use ESD\Psr\Cloud\ServiceInfoList; 10 | 11 | /** 12 | * Consul service list info 13 | * 14 | * Class ConsulServiceListInfo 15 | * @package ESD\Plugins\Cloud\Consul\Beans 16 | */ 17 | class ConsulServiceListInfo extends ServiceInfoList 18 | { 19 | 20 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/DelMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class DelMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["delete"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/GetMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class GetMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["get"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/BitwiseAnd.php: -------------------------------------------------------------------------------- 1 | >'; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_ShiftRight'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/Spaceship.php: -------------------------------------------------------------------------------- 1 | '; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_Spaceship'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/NotIdentical.php: -------------------------------------------------------------------------------- 1 | ='; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_GreaterOrEqual'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\JsonRpc\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class ResponeJsonRpc extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value = "application/json;charset=UTF-8"; 21 | } -------------------------------------------------------------------------------- /src/ESD/Install/install/src/Assets/MainAsset.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Session; 8 | 9 | 10 | trait GetSession 11 | { 12 | public function getSession(): HttpSession 13 | { 14 | $session = getDeepContextValueByClassName(HttpSession::class); 15 | if ($session == null) { 16 | $session = new HttpSession(); 17 | } 18 | return $session; 19 | } 20 | } -------------------------------------------------------------------------------- /src/ESD/Rpc/IdGenerator/RequestIdGenerator.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Rpc\IdGenerator; 8 | 9 | /** 10 | * Class RequestIdGenerator 11 | */ 12 | class RequestIdGenerator implements IdGeneratorInterface 13 | { 14 | public function generate(): string 15 | { 16 | $us = strstr(microtime(), ' ', true); 17 | return strval($us * 1000 * 1000) . rand(100, 999); 18 | } 19 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/FileHelper.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Alex Makarov 15 | * @since 2.0 16 | */ 17 | class FileHelper extends BaseFileHelper 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/StringHelper.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Alex Makarov 15 | * @since 2.0 16 | */ 17 | class StringHelper extends BaseStringHelper 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/Core/Server/ApplicationEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Server; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class ApplicationEvent 13 | * @package ESD\Core\Server 14 | */ 15 | class ApplicationEvent extends Event 16 | { 17 | const ApplicationStartingEvent = "ApplicationStartingEvent"; 18 | const ApplicationShutdownEvent = "ApplicationShutdownEvent"; 19 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Scalar/MagicConst/Namespace_.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Pack; 8 | 9 | /** 10 | * Trait GetClientData 11 | * @package ESD\Plugins\Pack 12 | */ 13 | trait GetClientData 14 | { 15 | /** 16 | * @return ClientData|null 17 | */ 18 | public function getClientData(): ?ClientData 19 | { 20 | return getDeepContextValueByClassName(ClientData::class); 21 | } 22 | } -------------------------------------------------------------------------------- /src/ESD/Install/install/src/Controller/Base.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Tag interface for Advice. Implementations can be any type of advice, such as Interceptors. 15 | * 16 | * @api 17 | */ 18 | interface Advice 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/AnyMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class AnyMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["get","post","delete","put","options","head","trace","connect"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_dropForeignKeys.php: -------------------------------------------------------------------------------- 1 | $fkData): ?> 2 | // drops foreign key for table `` 3 | $this->dropForeignKey( 4 | '', 5 | '' 6 | ); 7 | 8 | // drops index for column `` 9 | $this->dropIndex( 10 | '', 11 | '' 12 | ); 13 | 14 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Tag class for all after advices either for field access or method calling 15 | * 16 | * @api 17 | */ 18 | interface AdviceAfter extends Advice 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/Inflector.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Inflector extends BaseInflector 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/AdviceAround.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Tag class for all around advices either for field access or method calling 15 | * 16 | * @api 17 | */ 18 | interface AdviceAround extends Advice 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/AdviceBefore.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Tag class for all before advices either for field access or method calling 15 | * 16 | * @api 17 | */ 18 | interface AdviceBefore extends Advice 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/AnyMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class AnyMapping extends RequestMapping 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $method = ["get","post","delete","put","options","head","trace","connect"]; 21 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/AspectException.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | use RuntimeException; 14 | 15 | /** 16 | * Superclass for all AOP infrastructure exceptions 17 | */ 18 | class AspectException extends RuntimeException 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/ErrorHandler/Throwing.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | * Class ModelAttribute 15 | * @package ESD\Plugins\EasyRoute\Annotation 16 | */ 17 | class ModelAttribute extends Annotation 18 | { 19 | /** 20 | * @var string 21 | */ 22 | public $value; 23 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/ResponseBody.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class ResponseBody extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value = "application/json;charset=UTF-8"; 21 | 22 | public $xmlStartElement = "data"; 23 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/Aspect.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Annotation marker class for aspect 15 | * 16 | * @Annotation 17 | * @Target("CLASS") 18 | */ 19 | class Aspect extends BaseAnnotation 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Install/install/resources/application.yml: -------------------------------------------------------------------------------- 1 | esd: 2 | aop: 3 | excludePaths: 4 | - src/Libs 5 | - src/Filters 6 | - src/Views 7 | 8 | logger: 9 | level: DEBUG 10 | 11 | profiles: 12 | active: local 13 | 14 | server: 15 | name: esd-server 16 | workerNum: 4 17 | maxConn: 10240 18 | debug: false 19 | coroutineSocketRecvLength: 65535 20 | 21 | port: 22 | http: 23 | host: 0.0.0.0 24 | port: 8080 25 | openHttpProtocol: true 26 | sockType: 1 -------------------------------------------------------------------------------- /src/ESD/Plugins/Aop/AopEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Aop; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class AopEvent 13 | * @package ESD\Plugins\Aop 14 | */ 15 | class AopEvent extends Event 16 | { 17 | const TYPE = "AopEvent"; 18 | 19 | /** 20 | * AopEvent constructor. 21 | */ 22 | public function __construct() 23 | { 24 | parent::__construct(self::TYPE, ""); 25 | } 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/ResponseBody.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class ResponseBody extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value = "application/json;charset=UTF-8"; 21 | 22 | public $xmlStartElement = "data"; 23 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Auth/MqttAuth.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\MQTT\Auth; 8 | 9 | class MqttAuth implements MqttAuthInterface 10 | { 11 | 12 | /** 13 | * @param int $fd 14 | * @param string $username 15 | * @param string $password 16 | * @return array 17 | */ 18 | public function auth(int $fd, string $username, string $password): array 19 | { 20 | return ["true", $fd]; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/After.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * After advice annotation 15 | * 16 | * @Annotation 17 | * @Target({ "METHOD", "PROPERTY" }) 18 | */ 19 | class After extends BaseInterceptor 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/Around.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Around advice annotation 15 | * 16 | * @Annotation 17 | * @Target({ "METHOD", "PROPERTY" }) 18 | */ 19 | class Around extends BaseInterceptor 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/Before.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Before advice annotation 15 | * 16 | * @Annotation 17 | * @Target({ "METHOD", "PROPERTY" }) 18 | */ 19 | class Before extends BaseInterceptor 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/ModelAttribute.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | * Class ModelAttribute 15 | * @package ESD\Plugins\Cloud\Gateway\Annotation 16 | */ 17 | class ModelAttribute extends Annotation 18 | { 19 | /** 20 | * @var string 21 | */ 22 | public $value; 23 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/Console.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Console extends BaseConsole 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/Proxy.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Marker interface implemented by all AOP proxies. 15 | * 16 | * Used to detect whether or not objects are Go-generated proxies. 17 | * 18 | * @api 19 | */ 20 | interface Proxy 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RequestMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target({"METHOD","CLASS"}) 14 | */ 15 | class RequestMapping extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var array 24 | */ 25 | public $method = []; 26 | } -------------------------------------------------------------------------------- /src/ESD/Psr/Cloud/Leader.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Psr\Cloud; 8 | 9 | /** 10 | * Interface Leader 11 | * @package ESD\Psr\Cloud 12 | */ 13 | interface Leader 14 | { 15 | /** 16 | * Is leader 17 | * 18 | * @return bool 19 | */ 20 | public function isLeader(): bool; 21 | 22 | /** 23 | * Set leader 24 | * 25 | * @param bool $leader 26 | */ 27 | public function setLeader(bool $leader): void; 28 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/AfterThrowing.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * After throwing advice annotation 15 | * 16 | * @Annotation 17 | * @Target("METHOD") 18 | */ 19 | class AfterThrowing extends BaseInterceptor 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RequestMapping.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target({"METHOD","CLASS"}) 14 | */ 15 | class RequestMapping extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var array 24 | */ 25 | public $method = []; 26 | } -------------------------------------------------------------------------------- /src/ESD/Server/Coroutine/Http/Factory/RequestFactory.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Server\Coroutine\Http\Factory; 8 | 9 | use ESD\Core\DI\Factory; 10 | use ESD\Server\Coroutine\Http\SwooleRequest; 11 | 12 | /** 13 | * Class RequestFactory 14 | * @package ESD\Server\Coroutine\Http\Factory 15 | */ 16 | class RequestFactory implements Factory 17 | { 18 | 19 | public function create($params) 20 | { 21 | return new SwooleRequest(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Bootstrap4/InputWidget.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class InputWidget extends \ESD\Yii\Widgets\InputWidget 16 | { 17 | use BootstrapWidgetTrait; 18 | } 19 | -------------------------------------------------------------------------------- /src/ESD/Yii/Clickhouse/Gii/Model/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'collectionName'); 6 | echo $form->field($generator, 'modelClass'); 7 | echo $form->field($generator, 'ns'); 8 | echo $form->field($generator, 'baseClass'); 9 | echo $form->field($generator, 'db'); 10 | echo $form->field($generator, 'enableI18N')->checkbox(); 11 | echo $form->field($generator, 'messageCategory'); -------------------------------------------------------------------------------- /src/ESD/Yii/Queue/PushEvent.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class PushEvent extends JobEvent 16 | { 17 | /** 18 | * @var int 19 | */ 20 | public $delay; 21 | /** 22 | * @var mixed 23 | */ 24 | public $priority; 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Server/Coroutine/Http/Factory/ResponseFactory.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Server\Coroutine\Http\Factory; 8 | 9 | use ESD\Core\DI\Factory; 10 | use ESD\Server\Coroutine\Http\SwooleResponse; 11 | 12 | /** 13 | * Class ResponseFactory 14 | * @package ESD\Server\Coroutine\Http\Factory 15 | */ 16 | class ResponseFactory implements Factory 17 | { 18 | 19 | public function create($params) 20 | { 21 | return new SwooleResponse(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/ESD/Coroutine/Channel/ChannelFactory.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Coroutine\Channel; 8 | 9 | use ESD\Core\DI\Factory; 10 | 11 | /** 12 | * Class ChannelFactory 13 | * @package ESD\Coroutine\Channel 14 | */ 15 | class ChannelFactory implements Factory 16 | { 17 | /** 18 | * @param $params 19 | * @return ChannelImpl|mixed 20 | */ 21 | public function create($params) 22 | { 23 | return new ChannelImpl($params[0] ?? 1); 24 | } 25 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/ParserReflection/ReflectionException.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\ParserReflection; 12 | 13 | use ReflectionException as BaseException; 14 | 15 | /** 16 | * General parser-level reflection exception 17 | */ 18 | class ReflectionException extends BaseException 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Amqp/Message/ProducerMessageInterface.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class UserException extends Exception 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/WsController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class WsController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["ws"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "WS"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/Url.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class Url extends BaseUrl 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/MqttController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class MqttController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["mqtt"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "tcp"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RestController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class RestController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["http"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "GET"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/TcpController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class TcpController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["tcp"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "TCP"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/UdpController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\EasyRoute\Annotation 14 | */ 15 | class UdpController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["udp"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "UDP"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Security/SecurityConfig.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Security; 8 | 9 | use ESD\Core\Plugins\Config\BaseConfig; 10 | 11 | /** 12 | * Class SecurityConfig 13 | * @package ESD\Plugins\Security 14 | */ 15 | class SecurityConfig extends BaseConfig 16 | { 17 | const KEY = "security"; 18 | 19 | /** 20 | * SecurityConfig constructor. 21 | */ 22 | public function __construct() 23 | { 24 | parent::__construct(self::KEY); 25 | } 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/WsController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class WsController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["ws"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "WS"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Core/Server/Process/ProcessEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Server\Process; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class ProcessEvent 13 | * @package ESD\Core\Server\Process 14 | */ 15 | class ProcessEvent extends Event 16 | { 17 | /** 18 | * Process start event 19 | */ 20 | const ProcessStartEvent = "ProcessStartEvent"; 21 | 22 | /** 23 | * Process stop event 24 | */ 25 | const ProcessStopEvent = "ProcessStopEvent"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/TcpController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class TcpController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["tcp"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "TCP"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/UdpController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class UdpController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["udp"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "UDP"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Captcha/SpicyRice.md: -------------------------------------------------------------------------------- 1 | ## Spicy Rice font 2 | 3 | * **Author:** Brian J. Bonislawsky, Astigmatic (AOETI, Astigmatic One Eye Typographic Institute) 4 | * **License:** SIL Open Font License (OFL), version 1.1, [notes and FAQ](http://scripts.sil.org/OFL) 5 | 6 | ## Links 7 | 8 | * [Astigmatic](http://www.astigmatic.com/) 9 | * [Google WebFonts](http://www.google.com/webfonts/specimen/Spicy+Rice) 10 | * [fontsquirrel.com](http://www.fontsquirrel.com/fonts/spicy-rice) 11 | * [fontspace.com](http://www.fontspace.com/astigmatic-one-eye-typographic-institute/spicy-rice) 12 | -------------------------------------------------------------------------------- /src/ESD/Coroutine/Event/EventCallFactory.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Coroutine\Event; 8 | 9 | use ESD\Core\DI\Factory; 10 | 11 | /** 12 | * Class EventCallFactory 13 | * @package ESD\Coroutine\Event 14 | */ 15 | class EventCallFactory implements Factory 16 | { 17 | /** 18 | * @param $params 19 | * @return EventCallImpl|mixed 20 | */ 21 | public function create($params) 22 | { 23 | return new EventCallImpl($params[0], $params[1], $params[2] ?? false); 24 | } 25 | } -------------------------------------------------------------------------------- /src/ESD/Install/install/src/Application.php: -------------------------------------------------------------------------------- 1 | run(Application::class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Amqp/Annotation/Producer.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Amqp\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | use ESD\Plugins\AnnotationsScan\Annotation\Component; 11 | 12 | /** 13 | * @Annotation 14 | * @Target({"CLASS"}) 15 | */ 16 | class Producer extends Component 17 | { 18 | /** 19 | * @var string 20 | */ 21 | public $exchange = ''; 22 | 23 | /** 24 | * @var string 25 | */ 26 | public $routingKey = ''; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/MqttController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class MqttController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["mqtt"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "tcp"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RestController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | /** 10 | * @Annotation 11 | * @Target("CLASS") 12 | * Class RestController 13 | * @package ESD\Plugins\Cloud\Gateway\Annotation 14 | */ 15 | class RestController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["http"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "GET"; 26 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RestGatewayController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use ESD\Plugins\Cloud\Gateway\Annotation\Controller; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("CLASS") 14 | */ 15 | class RestGatewayController extends Controller 16 | { 17 | /** 18 | * @var array 19 | */ 20 | public $portTypes = ["http"]; 21 | 22 | /** 23 | * @var string 24 | */ 25 | public $defaultMethod = "GET"; 26 | 27 | } -------------------------------------------------------------------------------- /src/ESD/Snowflake/MetaGeneratorInterface.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | interface JobInterface 16 | { 17 | /** 18 | * @param Queue $queue which pushed and is handling the job 19 | * @return void|mixed result of the job execution 20 | */ 21 | public function execute($queue); 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Caching/migrations/schema-oci.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by \ESD\Yii\Caching\DbCache. 3 | * 4 | * @author Qiang Xue 5 | * @author Misbahul D Munir 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @since 2.0.7 10 | */ 11 | 12 | drop table if exists "cache"; 13 | 14 | create table "cache" 15 | ( 16 | "id" varchar(128) not null, 17 | "expire" integer, 18 | "data" BYTEA, 19 | primary key ("id") 20 | ); 21 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/CheckConstraint.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.13 15 | */ 16 | class CheckConstraint extends Constraint 17 | { 18 | /** 19 | * @var string the SQL of the `CHECK` constraint. 20 | */ 21 | public $expression; 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Web/JqueryAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class JqueryAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@bower/jquery/dist'; 19 | public $js = [ 20 | 'jquery.js', 21 | ]; 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Caching/migrations/schema-pgsql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by \ESD\Yii\Caching\DbCache. 3 | * 4 | * @author Qiang Xue 5 | * @author Misbahul D Munir 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @since 2.0.7 10 | */ 11 | 12 | drop table if exists "cache"; 13 | 14 | create table "cache" 15 | ( 16 | "id" varchar(128) not null, 17 | "expire" integer, 18 | "data" bytea, 19 | primary key ("id") 20 | ); 21 | -------------------------------------------------------------------------------- /src/ESD/Yii/Caching/migrations/schema-sqlite.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by \ESD\Yii\Caching\DbCache. 3 | * 4 | * @author Qiang Xue 5 | * @author Misbahul D Munir 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @since 2.0.7 10 | */ 11 | 12 | drop table if exists "cache"; 13 | 14 | create table "cache" 15 | ( 16 | "id" varchar(128) not null, 17 | "expire" integer, 18 | "data" BLOB, 19 | primary key ("id") 20 | ); 21 | -------------------------------------------------------------------------------- /src/ESD/Core/Server/EmptyServer.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Server; 8 | 9 | /** 10 | * Class EmptyServer 11 | * @package ESD\Core\Server 12 | */ 13 | class EmptyServer 14 | { 15 | public function __call($name, $arguments) 16 | { 17 | var_dump("__call:" . $name); 18 | } 19 | 20 | public function __get($name) 21 | { 22 | var_dump("__get:" . $name); 23 | } 24 | 25 | public function __set($name, $value) 26 | { 27 | var_dump("__set:" . $name); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Saber/Interceptors/RetryInterceptor.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Saber\Interceptors; 8 | 9 | use Swlib\Saber\Request; 10 | 11 | /** 12 | * before拦截器 13 | * Class BeforeInterceptor 14 | * @package ESD\Plugins\Saber\Interceptors 15 | */ 16 | abstract class RetryInterceptor extends Interceptor 17 | { 18 | public function __construct(string $name) 19 | { 20 | parent::__construct(Interceptor::RETRY); 21 | } 22 | 23 | abstract public function handle(Request $request); 24 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Db/StaleObjectException.php: -------------------------------------------------------------------------------- 1 | 12 | * @since 2.0 13 | */ 14 | class StaleObjectException extends Exception 15 | { 16 | /** 17 | * @return string the user-friendly name of this exception 18 | */ 19 | public function getName(): string 20 | { 21 | return 'Stale Object Exception'; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/ESD/Yii/Rbac/Role.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Role extends Item 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public $type = self::TYPE_ROLE; 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/NodeVisitorAbstract.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Actor\Event; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | class ActorSaveEvent extends Event 12 | { 13 | const ActorSaveEvent = "ActorSaveEvent"; 14 | 15 | const ActorSaveReadyEvent = "ActorSaveReadyEvent"; 16 | 17 | /** 18 | * @param string $type 19 | * @param $data 20 | */ 21 | public function __construct(string $type, $data) 22 | { 23 | parent::__construct($type, $data); 24 | } 25 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RequestFormData.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestFormData extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | /** 22 | * @var string|null 23 | */ 24 | public $param; 25 | /** 26 | * @var bool 27 | */ 28 | public $required = false; 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Mongodb/Rbac/Role.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.5 15 | */ 16 | class Role extends \ESD\Yii\Rbac\Role 17 | { 18 | /** 19 | * @var array|null list of parent item names. 20 | */ 21 | public $parents; 22 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/ParserReflection/bootstrap.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | use ESD\Goaop\ParserReflection\Locator\ComposerLocator; 12 | use ESD\Goaop\ParserReflection\ReflectionEngine; 13 | 14 | /** 15 | * This file is used for automatic configuration of 16 | * Go\ParserReflection\ReflectionEngine class 17 | */ 18 | ReflectionEngine::init(new ComposerLocator()); 19 | -------------------------------------------------------------------------------- /src/ESD/Plugins/AnnotationsScan/ScanEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\AnnotationsScan; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class ScanEvent 13 | * @package ESD\Plugins\AnnotationsScan 14 | */ 15 | class ScanEvent extends Event 16 | { 17 | /** 18 | * Type 19 | */ 20 | const type = "ScanEvent"; 21 | 22 | /** 23 | * ScanEvent constructor. 24 | */ 25 | public function __construct() 26 | { 27 | parent::__construct(self::type, ""); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RequestFormData.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestFormData extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | /** 22 | * @var string|null 23 | */ 24 | public $param; 25 | /** 26 | * @var bool 27 | */ 28 | public $required = false; 29 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/PathVariable.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PathVariable extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var string|null 24 | */ 25 | public $param; 26 | 27 | /** 28 | * @var bool 29 | */ 30 | public $required = false; 31 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/Annotation/RequestParam.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestParam extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var string|null 24 | */ 25 | public $param; 26 | 27 | /** 28 | * @var bool 29 | */ 30 | public $required = false; 31 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/Storage/Scope/SessionScope.php: -------------------------------------------------------------------------------- 1 | 14 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 15 | * @license WTFPL 16 | */ 17 | interface SessionScope 18 | { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Yii/Bootstrap4/BootstrapAsset.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | class BootstrapAsset extends AssetBundle 18 | { 19 | public $sourcePath = '@npm/bootstrap/dist'; 20 | public $css = [ 21 | 'css/bootstrap.css', 22 | ]; 23 | } 24 | -------------------------------------------------------------------------------- /src/ESD/Yii/Caching/migrations/schema-mysql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by \ESD\Yii\Caching\DbCache. 3 | * 4 | * @author Qiang Xue 5 | * @author Misbahul D Munir 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @since 2.0.7 10 | */ 11 | 12 | drop table if exists `cache`; 13 | 14 | create table `cache` 15 | ( 16 | `id` varchar(128) not null, 17 | `expire` integer, 18 | `data` LONGBLOB, 19 | primary key (`id`) 20 | ) engine InnoDB; 21 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/DefaultValueConstraint.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.13 15 | */ 16 | class DefaultValueConstraint extends Constraint 17 | { 18 | /** 19 | * @var mixed default value as returned by the DBMS. 20 | */ 21 | public $value; 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/IpHelper.php: -------------------------------------------------------------------------------- 1 | 17 | * @since 2.0.14 18 | */ 19 | class IpHelper extends BaseIpHelper 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/Pointcut.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Pointcut annotation 15 | * 16 | * @Annotation 17 | * @Target("METHOD") 18 | * 19 | * @Attributes({ 20 | * @Attribute("value", type = "string", required=true) 21 | * }) 22 | */ 23 | class Pointcut extends BaseAnnotation 24 | { 25 | 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Actor/Event/ActorCreateEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Actor\Event; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | class ActorCreateEvent extends Event 12 | { 13 | const ActorCreateEvent = "ActorCreateEvent"; 14 | 15 | const ActorCreateReadyEvent = "ActorCreateReadyEvent"; 16 | 17 | /** 18 | * @param string $type 19 | * @param $data 20 | */ 21 | public function __construct(string $type, $data) 22 | { 23 | parent::__construct($type, $data); 24 | } 25 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/PathVariable.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class PathVariable extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var string|null 24 | */ 25 | public $param; 26 | 27 | /** 28 | * @var bool 29 | */ 30 | public $required = false; 31 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/Annotation/RequestParam.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | */ 15 | class RequestParam extends Annotation 16 | { 17 | /** 18 | * @var string 19 | */ 20 | public $value; 21 | 22 | /** 23 | * @var string|null 24 | */ 25 | public $param; 26 | 27 | /** 28 | * @var bool 29 | */ 30 | public $required = false; 31 | } -------------------------------------------------------------------------------- /src/ESD/Core/Plugins/Config/ConfigChangeEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Plugins\Config; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class ConfigChangeEvent 13 | * @package ESD\Core\Plugins\Config 14 | */ 15 | class ConfigChangeEvent extends Event 16 | { 17 | const ConfigChangeEvent = "ConfigChangeEvent"; 18 | 19 | /** 20 | * ConfigChangeEvent constructor. 21 | */ 22 | public function __construct() 23 | { 24 | parent::__construct(self::ConfigChangeEvent, null); 25 | } 26 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Rbac/Permission.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Permission extends Item 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public $type = self::TYPE_PERMISSION; 22 | } 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Yii.php: -------------------------------------------------------------------------------- 1 | 17 | * @since 2.0 18 | */ 19 | class Yii extends BaseYii 20 | { 21 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/Storage/Scope/GlobalScope.php: -------------------------------------------------------------------------------- 1 | 15 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 16 | * @license WTFPL 17 | */ 18 | interface GlobalScope 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/Json.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0 16 | */ 17 | class Json extends BaseJson 18 | { 19 | } 20 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/VarLikeIdentifier.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.5 15 | */ 16 | class Permission extends \ESD\Yii\Rbac\Permission 17 | { 18 | /** 19 | * @var array|null list of parent item names. 20 | */ 21 | public $parents; 22 | } -------------------------------------------------------------------------------- /src/ESD/Goaop/Lang/Annotation/BaseInterceptor.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Lang\Annotation; 12 | 13 | /** 14 | * Default interceptor class with common attributes 15 | */ 16 | class BaseInterceptor extends BaseAnnotation implements Interceptor 17 | { 18 | /** 19 | * Order for advice 20 | * 21 | * @var integer 22 | */ 23 | public $order = 0; 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/ArrayHelper.php: -------------------------------------------------------------------------------- 1 | 17 | * @since 2.0 18 | */ 19 | class ArrayHelper extends BaseArrayHelper 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Core/Plugin/PluginEvent.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Plugin; 8 | 9 | use ESD\Core\Plugins\Event\Event; 10 | 11 | /** 12 | * Class PluginEvent 13 | * @package ESD\Core\Plugin 14 | */ 15 | class PluginEvent extends Event 16 | { 17 | /** 18 | * Plugin success event 19 | */ 20 | const PluginSuccessEvent = "PluginSuccessEvent"; 21 | 22 | /** 23 | * Plugin fail event 24 | */ 25 | const PlugFailEvent = "PlugFailEvent"; 26 | 27 | /** 28 | * Plugin ready 29 | */ 30 | const PlugReady = "PlugReady"; 31 | } -------------------------------------------------------------------------------- /src/ESD/Psr/DB/DBInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Psr\DB; 8 | 9 | /** 10 | * Interface DBInterface 11 | * @package ESD\Psr\DB 12 | */ 13 | interface DBInterface 14 | { 15 | /** 16 | * @return mixed 17 | */ 18 | public function getType(); 19 | 20 | /** 21 | * @param string $name 22 | * @param callable|null $call 23 | * @return mixed 24 | */ 25 | public function execute(string $name, ?callable $call = null); 26 | 27 | /** 28 | * @return mixed 29 | */ 30 | public function getLastQuery(); 31 | } 32 | -------------------------------------------------------------------------------- /src/ESD/Yii/Mongodb/Gii/model/form.php: -------------------------------------------------------------------------------- 1 | field($generator, 'collectionName'); 7 | echo $form->field($generator, 'databaseName'); 8 | echo $form->field($generator, 'attributeList'); 9 | echo $form->field($generator, 'modelClass'); 10 | echo $form->field($generator, 'ns'); 11 | echo $form->field($generator, 'baseClass'); 12 | echo $form->field($generator, 'db'); 13 | echo $form->field($generator, 'enableI18N')->checkbox(); 14 | echo $form->field($generator, 'messageCategory'); 15 | -------------------------------------------------------------------------------- /src/ESD/Yii/Queue/Cli/WorkerEvent.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0.2 17 | */ 18 | class WorkerEvent extends Event 19 | { 20 | /** 21 | * @var Queue 22 | * @inheritdoc 23 | */ 24 | public $sender; 25 | 26 | /** 27 | * @var null|int exit code 28 | */ 29 | public $exitCode; 30 | } 31 | -------------------------------------------------------------------------------- /src/ESD/Yii/Web/YiiAsset.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class YiiAsset extends AssetBundle 17 | { 18 | public $sourcePath = '@yii/assets'; 19 | public $js = [ 20 | 'yii.js', 21 | ]; 22 | public $depends = [ 23 | 'ESD\Yii\Web\JqueryAsset', 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Autostart/Annotation/Autostart.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Autostart\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | 11 | /** 12 | * @Annotation 13 | * @Target("METHOD") 14 | * Class Scheduled 15 | * @package ESD\Plugins\Autostart\Annotation 16 | */ 17 | class Autostart extends Annotation 18 | { 19 | /** 20 | * @var string 21 | */ 22 | public $name; 23 | 24 | /** 25 | * @var int 26 | */ 27 | public $sort; 28 | 29 | /** 30 | * @var int 31 | */ 32 | public $delay; 33 | } -------------------------------------------------------------------------------- /src/ESD/TokenBucket/Storage/Scope/RequestScope.php: -------------------------------------------------------------------------------- 1 | 15 | * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations 16 | * @license WTFPL 17 | */ 18 | interface RequestScope 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/Mssql/Conditions/LikeConditionBuilder.php: -------------------------------------------------------------------------------- 1 | '[%]', 20 | '_' => '[_]', 21 | '[' => '[[]', 22 | ']' => '[]]', 23 | '\\' => '[\\]', 24 | ]; 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Debug/Components/Search/Matchers/LowerThan.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class LowerThan extends Base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function match($value) 22 | { 23 | return ($value < $this->baseValue); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Mongodb/Views/migration.php: -------------------------------------------------------------------------------- 1 | 13 | 14 | class extends \ESD\Yii\Mongodb\Migration 15 | { 16 | public function up() 17 | { 18 | 19 | } 20 | 21 | public function down() 22 | { 23 | echo " cannot be reverted.\n"; 24 | 25 | return false; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Caching/migrations/schema-mssql.sql: -------------------------------------------------------------------------------- 1 | /** 2 | * Database schema required by \ESD\Yii\Caching\DbCache. 3 | * 4 | * @author Qiang Xue 5 | * @author Misbahul D Munir 6 | * @link http://www.yiiframework.com/ 7 | * @copyright 2008 Yii Software LLC 8 | * @license http://www.yiiframework.com/license/ 9 | * @since 2.0.7 10 | */ 11 | if object_id('[cache]', 'U') is not null 12 | drop table [cache]; 13 | 14 | drop table if exists [cache]; 15 | 16 | create table [cache] 17 | ( 18 | [id] varchar(128) not null, 19 | [expire] integer, 20 | [data] BLOB, 21 | primary key ([id]) 22 | ); 23 | -------------------------------------------------------------------------------- /src/ESD/Yii/Debug/Components/Search/Matchers/GreaterThan.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class GreaterThan extends Base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function match($value) 22 | { 23 | return ($value > $this->baseValue); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Helpers/FormatConverter.php: -------------------------------------------------------------------------------- 1 | 16 | * @author Enrica Ruedin 17 | * @since 2.0 18 | */ 19 | class FormatConverter extends BaseFormatConverter 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Yii/Redis/SocketException.php: -------------------------------------------------------------------------------- 1 | setAttribute('origNode', $origNode); 18 | return $node; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/ESD/Plugins/JsonRpc/Transporter/TransporterInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\JsonRpc\Transporter; 8 | 9 | use ESD\LoadBalance\LoadBalancerInterface; 10 | 11 | /** 12 | * Interface TransporterInterface 13 | * @package ESD\Plugins\JsonRpc\Transporter 14 | */ 15 | interface TransporterInterface 16 | { 17 | public function send(string $data); 18 | 19 | public function recv(); 20 | 21 | public function getLoadBalancer(): ?LoadBalancerInterface; 22 | 23 | public function setLoadBalancer(LoadBalancerInterface $loadBalancer): TransporterInterface; 24 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Validators/PunycodeAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class PunycodeAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@bower/punycode'; 21 | public $js = [ 22 | 'punycode.js', 23 | ]; 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/Framework/OrderedAdvice.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop\Framework; 12 | 13 | use ESD\Goaop\Aop\Advice; 14 | 15 | /** 16 | * Ordered advice can have a custom order to implement sorting 17 | */ 18 | interface OrderedAdvice extends Advice 19 | { 20 | /** 21 | * Returns the advice order 22 | * 23 | * @return int 24 | */ 25 | public function getAdviceOrder(); 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/ModelEvent.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class ModelEvent extends Event 17 | { 18 | /** 19 | * @var bool whether the model is in valid status. Defaults to true. 20 | * A model is in valid status if it passes validations or certain checks. 21 | */ 22 | public $isValid = true; 23 | } 24 | -------------------------------------------------------------------------------- /src/ESD/Psr/Cloud/Services.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Psr\Cloud; 8 | 9 | /** 10 | * Interface Services 11 | * @package ESD\Psr\Cloud 12 | */ 13 | interface Services 14 | { 15 | /** Get Service info list 16 | * 17 | * @param string $service 18 | * @return ServiceInfoList|null 19 | */ 20 | public function getServices(string $service): ?ServiceInfoList; 21 | 22 | /** 23 | * Get Service info 24 | * 25 | * @param string $service 26 | * @return ServiceInfo|null 27 | */ 28 | public function getService(string $service): ?ServiceInfo; 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Base/InvalidRouteException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidRouteException extends UserException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Invalid Route'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/UnknownClassException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class UnknownClassException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Unknown Class'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/Mssql/TableSchema.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class TableSchema extends \ESD\Yii\Db\TableSchema 17 | { 18 | /** 19 | * @var string name of the catalog (database) that this table belongs to. 20 | * Defaults to null, meaning no catalog (or the current database). 21 | */ 22 | public $catalogName; 23 | } 24 | -------------------------------------------------------------------------------- /src/ESD/Yii/HttpClient/ParserInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | interface ParserInterface 17 | { 18 | /** 19 | * Parses given HTTP response instance. 20 | * @param Response $response HTTP response instance. 21 | * @return mixed parsed content data. 22 | */ 23 | public function parse(Response $response); 24 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Widgets/ActiveFormAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class ActiveFormAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@yii/assets'; 21 | public $js = [ 22 | 'yii.activeForm.js', 23 | ]; 24 | public $depends = [ 25 | 'ESD\Yii\Web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Core/Context/ContextBuilder.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Context; 8 | 9 | /** 10 | * Interface ContextBuilder 11 | * @package ESD\Core\Context 12 | */ 13 | interface ContextBuilder 14 | { 15 | const ROOT_CONTEXT = 0; 16 | 17 | const SERVER_CONTEXT = 1; 18 | 19 | const PROCESS_CONTEXT = 2; 20 | 21 | const CO_CONTEXT = 3; 22 | 23 | /** 24 | * Build 25 | * 26 | * @return Context|null 27 | */ 28 | public function build(): ?Context; 29 | 30 | /** 31 | * Get Deep 32 | * @return int 33 | */ 34 | public function getDeep(): int; 35 | } -------------------------------------------------------------------------------- /src/ESD/Core/Pool/ConnectionInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Exception extends \ESD\Yii\Base\Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'HTTP Client Exception'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Core/ParamException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core; 8 | 9 | use Throwable; 10 | 11 | /** 12 | * Class ParamException 13 | * @package ESD\Core 14 | */ 15 | class ParamException extends Exception 16 | { 17 | /** 18 | * ParamException constructor. 19 | * @param string $message 20 | * @param int $code 21 | * @param Throwable|null $previous 22 | */ 23 | public function __construct(string $message = "", int $code = 0, Throwable $previous = null) 24 | { 25 | parent::__construct($message, $code, $previous); 26 | $this->setTrace(false); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/ESD/Plugins/MQTT/Client/Config/AbstractConfig.php: -------------------------------------------------------------------------------- 1 | 5 | * @author Lu Fei 6 | * @author bearlord <565364226@qq.com> 7 | */ 8 | 9 | namespace ESD\Plugins\MQTT\Client\Config; 10 | 11 | abstract class AbstractConfig 12 | { 13 | public function __construct(array $data = []) 14 | { 15 | foreach ($data as $k => $v) { 16 | $methodName = 'set' . ucfirst($k); 17 | if (method_exists($this, $methodName)) { 18 | $this->{$methodName}($v); 19 | } else { 20 | $this->{$k} = $v; 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/AfterSaveEvent.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class AfterSaveEvent extends Event 19 | { 20 | /** 21 | * @var array The attribute values that had changed and were saved. 22 | */ 23 | public $changedAttributes; 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Yii/Debug/Components/Search/Matchers/GreaterThanOrEqual.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.7 15 | */ 16 | class GreaterThanOrEqual extends Base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function match($value) 22 | { 23 | return $value >= $this->baseValue; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/HttpClient/FormatterInterface.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | interface FormatterInterface 17 | { 18 | /** 19 | * Formats given HTTP request message. 20 | * @param Request $request HTTP request instance. 21 | * @return Request formatted request. 22 | */ 23 | public function format(Request $request); 24 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Mongodb/Exception.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Exception extends \ESD\Yii\Base\Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'MongoDB Exception'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_addForeignKeys.php: -------------------------------------------------------------------------------- 1 | $fkData): ?> 2 | 3 | // creates index for column `` 4 | $this->createIndex( 5 | '', 6 | '', 7 | '' 8 | ); 9 | 10 | // add foreign key for table `` 11 | $this->addForeignKey( 12 | '', 13 | '', 14 | '', 15 | '', 16 | '', 17 | 'CASCADE' 18 | ); 19 | 14 | * @since 2.0.13 15 | */ 16 | class IndexConstraint extends Constraint 17 | { 18 | /** 19 | * @var bool whether the index is unique. 20 | */ 21 | public $isUnique; 22 | /** 23 | * @var bool whether the index was created for a primary key. 24 | */ 25 | public $isPrimary; 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/IntegrityException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class IntegrityException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Integrity constraint violation'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Log/LogRuntimeException.php: -------------------------------------------------------------------------------- 1 | 15 | * @since 2.0.14 16 | */ 17 | class LogRuntimeException extends \ESD\Yii\Base\Exception 18 | { 19 | /** 20 | * @return string the user-friendly name of this exception 21 | */ 22 | public function getName(): string 23 | { 24 | return 'Log Runtime'; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/InvalidCallException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidCallException extends \BadMethodCallException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Invalid Call'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/InvalidConfigException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidConfigException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Invalid Configuration'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/NotSupportedException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class NotSupportedException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Not Supported'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Widgets/PjaxAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class PjaxAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@bower/yii2-pjax'; 21 | public $js = [ 22 | 'jquery.pjax.js', 23 | ]; 24 | public $depends = [ 25 | 'ESD\Yii\Web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Core/Pool/FrequencyInterface.php: -------------------------------------------------------------------------------- 1 | 5 | * copy from hyperf[https://www.hyperf.io/] 6 | */ 7 | 8 | namespace ESD\Core\Pool; 9 | 10 | interface FrequencyInterface 11 | { 12 | 13 | public function __construct(?Pool $pool = null); 14 | 15 | /** 16 | * Number of hit per time. 17 | * @return bool 18 | */ 19 | public function hit(int $number = 1): bool; 20 | 21 | /** 22 | * Hits per second. 23 | * @return float 24 | */ 25 | public function frequency(): float; 26 | 27 | /** 28 | * @return bool 29 | */ 30 | public function isLowFrequency(): bool; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Topic/TopicProcess.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Topic; 8 | 9 | use ESD\Core\Message\Message; 10 | use ESD\Core\Server\Process\Process; 11 | 12 | class TopicProcess extends Process 13 | { 14 | 15 | /** 16 | * 在onProcessStart之前,用于初始化成员变量 17 | * @return mixed 18 | */ 19 | public function init() 20 | { 21 | 22 | } 23 | 24 | public function onProcessStart() 25 | { 26 | 27 | } 28 | 29 | public function onProcessStop() 30 | { 31 | 32 | } 33 | 34 | public function onPipeMessage(Message $message, Process $fromProcess) 35 | { 36 | 37 | } 38 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Base/UnknownPropertyException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class UnknownPropertyException extends Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Unknown Property'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Console/Exception.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class Exception extends UserException 19 | { 20 | /** 21 | * @return string the user-friendly name of this exception 22 | */ 23 | public function getName(): string 24 | { 25 | return 'Error'; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/UnknownMethodException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class UnknownMethodException extends \BadMethodCallException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Unknown Method'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Captcha/CaptchaAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class CaptchaAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@yii/assets'; 21 | public $js = [ 22 | 'yii.captcha.js', 23 | ]; 24 | public $depends = [ 25 | 'ESD\Yii\Web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Elasticsearch/Exception.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class Exception extends \ESD\Yii\Db\Exception 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Elasticsearch Database Exception'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Validators/ValidationAsset.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class ValidationAsset extends AssetBundle 19 | { 20 | public $sourcePath = '@yii/assets'; 21 | public $js = [ 22 | 'yii.validation.js', 23 | ]; 24 | public $depends = [ 25 | 'ESD\Yii\Web\YiiAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/Aspect.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Aspect interface marker 15 | * 16 | * Aspect is a module that encapsulates a concern. An aspect is composed of pointcuts, advice bodies and inter-type 17 | * declarations. In some approaches, and aspect may also contain classes and methods. 18 | * 19 | * @api 20 | * @link http://en.wikipedia.org/wiki/Aspect_%28computer_science%29 21 | */ 22 | interface Aspect 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Session/SessionStorage.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Session; 8 | 9 | /** 10 | * Interface SessionStorage 11 | * @package ESD\Plugins\Session 12 | */ 13 | interface SessionStorage 14 | { 15 | /** 16 | * @param string $id 17 | * @return mixed 18 | */ 19 | public function get(string $id); 20 | 21 | /** 22 | * @param string $id 23 | * @param string $data 24 | * @return mixed 25 | */ 26 | public function set(string $id,string $data); 27 | 28 | /** 29 | * @param string $id 30 | * @return mixed 31 | */ 32 | public function remove(string $id); 33 | } -------------------------------------------------------------------------------- /src/ESD/Snowflake/IdGeneratorInterface.php: -------------------------------------------------------------------------------- 1 | type = $type; 24 | $this->old = $old; 25 | $this->new = $new; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Expr/Cast.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Saber/Interceptors/BeforeInterceptor.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Saber\Interceptors; 8 | 9 | use Swlib\Saber\Request; 10 | 11 | /** 12 | * Class BeforeInterceptor 13 | * @package ESD\Plugins\Saber\Interceptors 14 | */ 15 | abstract class BeforeInterceptor extends Interceptor 16 | { 17 | /** 18 | * BeforeInterceptor constructor. 19 | */ 20 | public function __construct() 21 | { 22 | parent::__construct(Interceptor::BEFORE); 23 | } 24 | 25 | /** 26 | * @param Request $request 27 | * @return mixed 28 | */ 29 | abstract public function handle(Request $request); 30 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Base/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.14 15 | */ 16 | class InvalidArgumentException extends InvalidParamException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Invalid Argument'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/Constraint.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0.13 17 | */ 18 | class Constraint extends BaseObject 19 | { 20 | /** 21 | * @var string[]|null list of column names the constraint belongs to. 22 | */ 23 | public $columnNames; 24 | /** 25 | * @var string|null the constraint name. 26 | */ 27 | public $name; 28 | } 29 | -------------------------------------------------------------------------------- /src/ESD/Core/Pool/PoolInterface.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Pool; 8 | 9 | interface PoolInterface 10 | { 11 | /** 12 | * Get a connection from the connection pool. 13 | */ 14 | public function get(): ConnectionInterface; 15 | 16 | /** 17 | * Release a connection back to the connection pool. 18 | */ 19 | public function release(ConnectionInterface $connection): void; 20 | 21 | /** 22 | * Close and clear the connection pool. 23 | */ 24 | public function flush(): void; 25 | 26 | /** 27 | * Get option 28 | */ 29 | public function getOption(): PoolOptionInterface; 30 | } 31 | -------------------------------------------------------------------------------- /src/ESD/Yii/Views/_createTable.php: -------------------------------------------------------------------------------- 1 | $this->createTable('', [ 11 | 13 | '', 14 | 15 | \$this->{$field['decorators']}" ?>, 16 | 18 | ]); 19 | render('_addForeignKeys', [ 20 | 'table' => $table, 21 | 'foreignKeys' => $foreignKeys, 22 | ]); 23 | -------------------------------------------------------------------------------- /src/ESD/Plugins/EasyRoute/NormalErrorController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute; 8 | 9 | use ESD\Plugins\EasyRoute\Controller\EasyController; 10 | 11 | /** 12 | * Class NormalErrorController 13 | * @package ESD\Plugins\EasyRoute 14 | */ 15 | class NormalErrorController extends EasyController 16 | { 17 | 18 | /** 19 | * Called when no method is found 20 | * 21 | * @param $methodName 22 | * @return mixed 23 | * @throws RouteException 24 | */ 25 | protected function defaultMethod(?string $methodName) 26 | { 27 | throw new RouteException("404 method $methodName can not find"); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Base/InvalidValueException.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0 15 | */ 16 | class InvalidValueException extends \UnexpectedValueException 17 | { 18 | /** 19 | * @return string the user-friendly name of this exception 20 | */ 21 | public function getName(): string 22 | { 23 | return 'Invalid Return Value'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Parser.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Consul; 8 | 9 | use ESD\Psr\Cloud\Leader; 10 | 11 | /** 12 | * Class Leader 13 | * @package ESD\Plugins\Cloud\Consul 14 | */ 15 | class ConsulLeader implements Leader 16 | { 17 | /** 18 | * @var bool 19 | */ 20 | public $leader; 21 | 22 | /** 23 | * @return bool 24 | */ 25 | public function isLeader(): bool 26 | { 27 | return $this->leader; 28 | } 29 | 30 | /** 31 | * @param bool $leader 32 | */ 33 | public function setLeader(bool $leader): void 34 | { 35 | $this->leader = $leader; 36 | } 37 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/NormalErrorController.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway; 8 | 9 | use ESD\Plugins\EasyRoute\Controller\EasyController; 10 | 11 | /** 12 | * Class NormalErrorController 13 | * @package ESD\Plugins\EasyRoute 14 | */ 15 | class NormalErrorController extends EasyController 16 | { 17 | 18 | /** 19 | * Called when no method is found 20 | * 21 | * @param $methodName 22 | * @return mixed 23 | * @throws RouteException 24 | */ 25 | protected function defaultMethod(?string $methodName) 26 | { 27 | throw new RouteException("404 method $methodName can not find"); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Scheduled/Annotation/Scheduled.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Scheduled\Annotation; 8 | 9 | use Doctrine\Common\Annotations\Annotation; 10 | use ESD\Plugins\Scheduled\Beans\ScheduledTask; 11 | 12 | /** 13 | * @Annotation 14 | * @Target("METHOD") 15 | * Class Scheduled 16 | * @package ESD\Plugins\Scheduled\Annotation 17 | */ 18 | class Scheduled extends Annotation 19 | { 20 | /** 21 | * @var string 22 | */ 23 | public $name; 24 | 25 | /** 26 | * @var string 27 | */ 28 | public $cron; 29 | 30 | /** 31 | * @var string 32 | */ 33 | public $processGroup = ScheduledTask::GROUP_NAME; 34 | } -------------------------------------------------------------------------------- /src/ESD/Install/install/src/Controller/Index.php: -------------------------------------------------------------------------------- 1 | blade->render("app::welcome"); 32 | } 33 | } -------------------------------------------------------------------------------- /src/ESD/Nikic/FastRoute/Dispatcher.php: -------------------------------------------------------------------------------- 1 | 'value', ...]] 19 | * 20 | * @param string $httpMethod 21 | * @param string $uri 22 | * 23 | * @return array 24 | */ 25 | public function dispatch($httpMethod, $uri); 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Core/Plugins/Config/ConfigException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Core\Plugins\Config; 8 | 9 | use ESD\Core\Exception; 10 | 11 | /** 12 | * Class ConfigException 13 | * @package ESD\Core\Plugins\Config 14 | */ 15 | class ConfigException extends Exception 16 | { 17 | /** 18 | * @param $object 19 | * @param $field 20 | * @param $value 21 | * @throws ConfigException 22 | */ 23 | public static function AssertNull($object, $field, $value) 24 | { 25 | if ($value === null) { 26 | $name = get_class($object); 27 | throw new ConfigException("[{$name}] {$field} cannot be empty"); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Actor/Multicast/MulticastProcess.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\EasyRoute; 8 | 9 | use ESD\Core\Exception; 10 | use Throwable; 11 | 12 | /** 13 | * Class RouteException 14 | * @package ESD\Plugins\EasyRoute 15 | */ 16 | class RouteException extends Exception 17 | { 18 | /** 19 | * RouteException constructor. 20 | * @param string $message 21 | * @param int $code 22 | * @param Throwable|null $previous 23 | */ 24 | public function __construct(string $message = "", int $code = 0, Throwable $previous = null) 25 | { 26 | parent::__construct($message, $code, $previous); 27 | $this->setTrace(false); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/PHPUnit/GoTestCase.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\PHPUnit; 8 | 9 | use ESD\Server\Coroutine\Server; 10 | use PHPUnit\Framework\TestCase; 11 | 12 | /** 13 | * Class GoTestCase 14 | * @package ESD\Plugins\PHPUnit 15 | */ 16 | class GoTestCase extends TestCase 17 | { 18 | /** 19 | * GoTestCase constructor. 20 | * @param null $name 21 | * @param array $data 22 | * @param string $dataName 23 | */ 24 | public function __construct($name = null, array $data = [], $dataName = '') 25 | { 26 | parent::__construct($name, $data, $dataName); 27 | Server::$instance->getContainer()->injectOn($this); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Clickhouse/HttpClient/Request.php: -------------------------------------------------------------------------------- 1 | afterPrepareUrl(); 16 | 17 | } 18 | 19 | /** 20 | * Normalizes [[url]] value, filling it with actual string URL value. 21 | */ 22 | private function afterPrepareUrl() 23 | { 24 | $url = $this->getUrl(); 25 | if (strpos($url,'?') !== false) { 26 | $url = trim($url,'/'); 27 | $this->setUrl($url); 28 | } 29 | } 30 | 31 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Db/ExpressionInterface.php: -------------------------------------------------------------------------------- 1 | 20 | * @since 2.0.14 21 | */ 22 | interface ExpressionInterface 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/Advisor.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Base interface holding AOP advice (action to take at a joinpoint) 15 | */ 16 | interface Advisor 17 | { 18 | /** 19 | * Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. 20 | * 21 | * @api 22 | * 23 | * @return Advice The advice that should apply if the pointcut matches 24 | */ 25 | public function getAdvice(); 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Yii/Bootstrap4/BootstrapPluginAsset.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | class BootstrapPluginAsset extends AssetBundle 18 | { 19 | public $sourcePath = '@npm/bootstrap/dist'; 20 | public $js = [ 21 | 'js/bootstrap.bundle.js', 22 | ]; 23 | public $depends = [ 24 | 'ESD\Yii\Web\JqueryAsset', 25 | 'ESD\Yii\Bootstrap4\BootstrapAsset', 26 | ]; 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Bootstrap4/Html.php: -------------------------------------------------------------------------------- 1 | 18 | */ 19 | class Html extends BaseHtml 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Cloud/Gateway/RouteException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Cloud\Gateway; 8 | 9 | use ESD\Core\Exception; 10 | use Throwable; 11 | 12 | /** 13 | * Class RouteException 14 | * @package ESD\Plugins\EasyRoute 15 | */ 16 | class RouteException extends Exception 17 | { 18 | /** 19 | * RouteException constructor. 20 | * @param string $message 21 | * @param int $code 22 | * @param Throwable|null $previous 23 | */ 24 | public function __construct(string $message = "", int $code = 0, Throwable $previous = null) 25 | { 26 | parent::__construct($message, $code, $previous); 27 | $this->setTrace(false); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Db/Conditions/AndCondition.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.14 15 | */ 16 | class AndCondition extends ConjunctionCondition 17 | { 18 | /** 19 | * Returns the operator that is represented by this condition class, e.g. `AND`, `OR`. 20 | * 21 | * @return string 22 | */ 23 | public function getOperator(): string 24 | { 25 | return 'AND'; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Db/Conditions/OrCondition.php: -------------------------------------------------------------------------------- 1 | 14 | * @since 2.0.14 15 | */ 16 | class OrCondition extends ConjunctionCondition 17 | { 18 | /** 19 | * Returns the operator that is represented by this condition class, e.g. `AND`, `OR`. 20 | * 21 | * @return string 22 | */ 23 | public function getOperator(): string 24 | { 25 | return 'OR'; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/ESD/Yii/Queue/Serializers/SerializerInterface.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | interface SerializerInterface 18 | { 19 | /** 20 | * @param JobInterface|mixed $job 21 | * @return string 22 | */ 23 | public function serialize($job); 24 | 25 | /** 26 | * @param string $serialized 27 | * @return JobInterface 28 | */ 29 | public function unserialize($serialized); 30 | } 31 | -------------------------------------------------------------------------------- /src/ESD/Plugins/Amqp/Message/Type.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Saber\Interceptors; 8 | 9 | use Swlib\Saber\Response; 10 | 11 | /** 12 | * Class BeforeInterceptor 13 | * @package ESD\Plugins\Saber\Interceptors 14 | */ 15 | abstract class AfterInterceptor extends Interceptor 16 | { 17 | /** 18 | * AfterInterceptor constructor. 19 | * @param string $name 20 | */ 21 | public function __construct(string $name) 22 | { 23 | parent::__construct(Interceptor::AFTER); 24 | } 25 | 26 | /** 27 | * @param Response $response 28 | * @return mixed 29 | */ 30 | abstract public function handle(Response $response); 31 | } -------------------------------------------------------------------------------- /src/ESD/Plugins/Validate/ValidationException.php: -------------------------------------------------------------------------------- 1 | 5 | */ 6 | 7 | namespace ESD\Plugins\Validate; 8 | 9 | use ESD\Core\Exception; 10 | use Throwable; 11 | 12 | /** 13 | * Class ValidationException 14 | * @package ESD\Plugins\Validate 15 | */ 16 | class ValidationException extends Exception 17 | { 18 | /** 19 | * RouteException constructor. 20 | * @param string $message 21 | * @param int $code 22 | * @param Throwable|null $previous 23 | */ 24 | public function __construct(string $message = "", int $code = 0, Throwable $previous = null) 25 | { 26 | parent::__construct($message, $code, $previous); 27 | $this->setTrace(false); 28 | } 29 | } -------------------------------------------------------------------------------- /src/ESD/Yii/Queue/RetryableJobInterface.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | interface RetryableJobInterface extends JobInterface 16 | { 17 | /** 18 | * @return int time to reserve in seconds 19 | */ 20 | public function getTtr(); 21 | 22 | /** 23 | * @param int $attempt number 24 | * @param \Exception|\Throwable $error from last execute of the job 25 | * @return bool 26 | */ 27 | public function canRetry($attempt, $error); 28 | } 29 | -------------------------------------------------------------------------------- /src/ESD/Goaop/Aop/PointcutAdvisor.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * This source file is subject to the license that is bundled 8 | * with this source code in the file LICENSE. 9 | */ 10 | 11 | namespace ESD\Goaop\Aop; 12 | 13 | /** 14 | * Super-interface for all Advisors that are driven by a pointcut. 15 | * 16 | * This covers nearly all advisors except introduction advisors, for which method-level matching doesn't apply. 17 | */ 18 | interface PointcutAdvisor extends Advisor 19 | { 20 | /** 21 | * Get the Pointcut that drives this advisor. 22 | * 23 | * @return Pointcut The pointcut 24 | */ 25 | public function getPointcut(); 26 | } 27 | -------------------------------------------------------------------------------- /src/ESD/Nikic/PhpParser/Node/Scalar/MagicConst.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 16 | } 17 | 18 | public function getSubNodeNames() : array { 19 | return []; 20 | } 21 | 22 | /** 23 | * Get name of magic constant. 24 | * 25 | * @return string Name of magic constant 26 | */ 27 | abstract public function getName() : string; 28 | } 29 | -------------------------------------------------------------------------------- /src/ESD/Yii/Base/Exception.php: -------------------------------------------------------------------------------- 1 | 16 | * @since 2.0 17 | */ 18 | class Exception extends \Exception 19 | { 20 | /** 21 | * @return string the user-friendly name of this exception 22 | */ 23 | public function getName(): string 24 | { 25 | return 'Exception'; 26 | } 27 | } 28 | --------------------------------------------------------------------------------