├── packages ├── edge │ ├── tmp │ │ └── .gitkeep │ ├── src │ │ ├── bootstrap.php │ │ ├── Concern │ │ │ └── ManageEventTrait.php │ │ ├── Exception │ │ │ └── LayoutNotFoundException.php │ │ ├── functions.php │ │ ├── Extension │ │ │ ├── EdgeExtensionInterface.php │ │ │ ├── ParsersExtensionInterface.php │ │ │ ├── DirectivesExtensionInterface.php │ │ │ └── GlobalVariablesExtensionInterface.php │ │ ├── Compiler │ │ │ └── Concern │ │ │ │ ├── CompileCommentTrait.php │ │ │ │ └── CompileClassTrait.php │ │ ├── Component │ │ │ └── AppendableAttributeValue.php │ │ └── Loader │ │ │ └── EdgeLoaderInterface.php │ └── phpunit.ci.xml ├── database │ ├── tmp │ │ └── .gitkeep │ └── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Schema │ │ ├── Concern │ │ │ └── DataTypeTrait.php │ │ └── Ddl │ │ │ └── Table.php │ │ ├── Exception │ │ ├── DatabaseConnectException.php │ │ ├── StatementException.php │ │ └── DatabaseException.php │ │ ├── Hydrator │ │ ├── HydratorAwareInterface.php │ │ ├── FieldHydratorInterface.php │ │ ├── HydratorInterface.php │ │ └── ClassMethodHydrator.php │ │ ├── Driver │ │ ├── ConnectionInterface.php │ │ └── Pdo │ │ │ └── PdoPgsqlConnection.php │ │ └── Event │ │ ├── FullFetchedEvent.php │ │ ├── QueryEndEvent.php │ │ ├── QueryStartEvent.php │ │ └── QueryFailedEvent.php ├── renderer │ ├── tmp │ │ └── .gitkeep │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── RendererPackage.php │ │ ├── RendererInterface.php │ │ ├── TemplateFactoryInterface.php │ │ ├── ExtendableRendererInterface.php │ │ └── LayoutConverterInterface.php │ └── phpunit.ci.xml ├── session │ ├── tmp │ │ └── .gitkeep │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Handler │ │ │ ├── HandlerInterface.php │ │ │ └── NativeHandler.php │ │ └── SessionInterface.php │ ├── resources │ │ └── sql │ │ │ └── mysql.sql │ └── phpunit.ci.xml ├── queue │ ├── tmp │ │ └── .gitignore │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Attributes │ │ │ ├── JobEntry.php │ │ │ ├── JobFailed.php │ │ │ ├── JobMiddlewaresProvider.php │ │ │ └── JobMiddleware.php │ │ ├── Job │ │ │ ├── NullJob.php │ │ │ └── JobInterface.php │ │ ├── Middleware │ │ │ └── QueueMiddlewareInterface.php │ │ ├── Exception │ │ │ ├── MaxAttemptsExceededException.php │ │ │ ├── UnrecoverableException.php │ │ │ └── AbandonedException.php │ │ ├── Event │ │ │ ├── DebugOutputEvent.php │ │ │ ├── QueueEventTrait.php │ │ │ ├── BeforeEnqueueEvent.php │ │ │ ├── LoopStartEvent.php │ │ │ ├── AfterEnqueueEvent.php │ │ │ ├── StopEvent.php │ │ │ ├── LoopEndEvent.php │ │ │ ├── LoopFailureEvent.php │ │ │ ├── AfterJobRunEvent.php │ │ │ ├── BeforeJobRunEvent.php │ │ │ ├── JobEventTrait.php │ │ │ └── EnqueueFailureEvent.php │ │ └── RunnerOptions.php │ ├── resources │ │ └── sql │ │ │ ├── queue_failed_jobs.sql │ │ │ └── queue_jobs.sql │ └── phpunit.ci.xml ├── stream │ ├── src │ │ ├── functions.php │ │ └── bootstrap.php │ └── phpunit.ci.xml ├── test │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ └── TestHelper.php │ └── phpunit.ci.xml ├── cache │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Exception │ │ │ ├── LogicException.php │ │ │ ├── RuntimeException.php │ │ │ ├── CacheExceptionInterface.php │ │ │ └── InvalidArgumentException.php │ │ ├── Storage │ │ │ ├── LockableStorageInterface.php │ │ │ ├── PhpFileStorage.php │ │ │ ├── LockableStorageTrait.php │ │ │ └── ForeverFileStorage.php │ │ └── Serializer │ │ │ ├── SerializerInterface.php │ │ │ ├── JsonAssocSerializer.php │ │ │ ├── RawSerializer.php │ │ │ ├── PhpSerializer.php │ │ │ └── JsonSerializer.php │ └── phpunit.ci.xml ├── crypt │ ├── src │ │ ├── functions.php │ │ ├── Exception │ │ │ └── CryptException.php │ │ └── Hasher │ │ │ ├── HasherInterface.php │ │ │ └── PasswordHasherInterface.php │ └── phpunit.ci.xml ├── event │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── EventAwareInterface.php │ │ ├── DispatcherAwareInterface.php │ │ ├── Listener │ │ │ └── ListenerPriority.php │ │ ├── EventDisposableInterface.php │ │ └── EventEmitterInterface.php │ ├── .ide │ │ └── phpstorm │ │ │ └── .phpstorm.meta.php │ │ │ └── Event.meta.php │ └── phpunit.ci.xml ├── form │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Field │ │ │ ├── Concern │ │ │ │ └── ManageRenderTrait.php │ │ │ ├── HiddenFieldInterface.php │ │ │ ├── DateField.php │ │ │ ├── ColorField.php │ │ │ ├── PasswordField.php │ │ │ ├── DatetimeField.php │ │ │ ├── CompositeFieldInterface.php │ │ │ ├── EmailField.php │ │ │ ├── SearchField.php │ │ │ ├── TelField.php │ │ │ ├── TimeField.php │ │ │ ├── UrlField.php │ │ │ ├── WeekField.php │ │ │ ├── MonthField.php │ │ │ ├── RangeField.php │ │ │ ├── NumberField.php │ │ │ ├── DatetimeLocalField.php │ │ │ ├── HiddenField.php │ │ │ ├── AbstractInputField.php │ │ │ └── FileField.php │ │ ├── Exception │ │ │ └── FieldRequiredException.php │ │ ├── Attributes │ │ │ └── FormDefine.php │ │ ├── FieldDefinitionInterface.php │ │ └── FormPackage.php │ ├── phpunit.ci.xml │ └── etc │ │ └── form.config.php ├── html │ ├── src │ │ ├── functions.php │ │ └── bootstrap.php │ └── phpunit.ci.xml ├── http │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── FullPathAwareInterface.php │ │ ├── Event │ │ │ └── ResponseEvent.php │ │ ├── Server │ │ │ ├── AbstractServer.php │ │ │ ├── HttpServerInterface.php │ │ │ └── ServerInterface.php │ │ ├── Response │ │ │ ├── HtmlResponse.php │ │ │ ├── HttpClientResponse.php │ │ │ └── EmptyResponse.php │ │ ├── Factory │ │ │ ├── RequestFactory.php │ │ │ └── ResponseFactory.php │ │ ├── AsyncHttpClientInterface.php │ │ ├── File │ │ │ └── HttpUploadFileInterface.php │ │ ├── Output │ │ │ └── NoHeaderOutput.php │ │ ├── Middleware │ │ │ └── RequestRunner.php │ │ └── Transport │ │ │ └── AsyncTransportInterface.php │ └── phpunit.ci.xml ├── pool │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Enum │ │ │ ├── Heartbeat.php │ │ │ └── ConnectionState.php │ │ ├── Exception │ │ │ ├── WaitTimeoutException.php │ │ │ └── ConnectionPoolException.php │ │ ├── Stack │ │ │ └── TimerSupportedInterface.php │ │ └── ConnectionPool.php │ └── phpunit.ci.xml ├── attributes │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── AttributeInterface.php │ │ ├── AttributesAccessor.php │ │ └── AttributeType.php │ ├── .ide │ │ └── phpstorm │ │ │ └── .phpstorm.meta.php │ │ │ └── Attributes.meta.php │ └── phpunit.ci.xml ├── filter │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── Rule │ │ │ ├── Range.php │ │ │ ├── Cmd.php │ │ │ ├── Absolute.php │ │ │ ├── Words.php │ │ │ ├── Alnum.php │ │ │ ├── UrlAddress.php │ │ │ ├── RawValue.php │ │ │ ├── Negative.php │ │ │ ├── Required.php │ │ │ ├── IPV6.php │ │ │ ├── IPV4.php │ │ │ ├── IPAddress.php │ │ │ └── DefaultValue.php │ │ ├── FilterInterface.php │ │ ├── ValidatorInterface.php │ │ ├── AbstractCallbackFilter.php │ │ └── AbstractFilterVar.php │ └── phpunit.ci.xml ├── language │ ├── src │ │ ├── functions.php │ │ └── bootstrap.php │ └── phpunit.ci.xml ├── authentication │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ └── Method │ │ │ └── MethodInterface.php │ └── phpunit.ci.xml ├── authorization │ ├── src │ │ ├── functions.php │ │ ├── bootstrap.php │ │ ├── PolicyProviderInterface.php │ │ ├── PolicyInterface.php │ │ └── AuthorizationInterface.php │ └── phpunit.ci.xml ├── environment │ ├── src │ │ ├── functions.php │ │ └── bootstrap.php │ └── phpunit.ci.xml ├── di │ ├── src │ │ ├── bootstrap.php │ │ ├── Attributes │ │ │ ├── Factory.php │ │ │ ├── Isolation.php │ │ │ ├── AttributeType.php │ │ │ ├── ContainerAttributeInterface.php │ │ │ └── Setup.php │ │ ├── Exception │ │ │ ├── DefinitionResolveException.php │ │ │ ├── DefinitionException.php │ │ │ ├── DefinitionNotFoundException.php │ │ │ └── DependencyResolutionException.php │ │ ├── DICreateTrait.php │ │ ├── BootableDeferredProviderInterface.php │ │ ├── ServiceProviderInterface.php │ │ ├── BootableProviderInterface.php │ │ ├── ContainerAwareTrait.php │ │ └── PublicVisibleContainerAwareTrait.php │ ├── phpunit.ci.xml │ └── .ide │ │ └── phpstorm │ │ └── .phpstorm.meta.php │ │ └── ServiceAwareTrait.meta.php ├── data │ ├── src │ │ ├── bootstrap.php │ │ ├── Record.php │ │ ├── functions.php │ │ └── ValueObjectInterface.php │ └── phpunit.ci.xml ├── orm │ ├── src │ │ ├── bootstrap.php │ │ ├── Nested │ │ │ ├── TreeAwareTrait.php │ │ │ ├── NestedPosition.php │ │ │ └── MultiTreeNestedEntityInterface.php │ │ ├── Attributes │ │ │ ├── JsonSerializerInterface.php │ │ │ ├── Mapping.php │ │ │ ├── UseRealColumns.php │ │ │ ├── JsonNoSerialize.php │ │ │ ├── CastForSaveInterface.php │ │ │ ├── JsonObject.php │ │ │ ├── OptimisticLockInterface.php │ │ │ ├── JsonArray.php │ │ │ ├── RelationConfigureAttributeInterface.php │ │ │ ├── CastAttributeTrait.php │ │ │ ├── ManyToOne.php │ │ │ ├── OneToMany.php │ │ │ ├── OneToOne.php │ │ │ ├── UUIDBinNullable.php │ │ │ ├── CastNullable.php │ │ │ └── ForceObjectJsonSerializer.php │ │ ├── Exception │ │ │ ├── RelationRejectException.php │ │ │ ├── OptimisticLockException.php │ │ │ ├── CastingException.php │ │ │ └── NestedHandleException.php │ │ ├── Event │ │ │ ├── BeforeCopyEvent.php │ │ │ ├── BeforeSaveEvent.php │ │ │ ├── BeforeDeleteEvent.php │ │ │ ├── AfterCreateBulkEvent.php │ │ │ ├── BeforeCreateBulkEvent.php │ │ │ ├── BeforeStoreEvent.php │ │ │ ├── BeforeUpdateWhereEvent.php │ │ │ ├── EntitySetupEvent.php │ │ │ └── AbstractCreateBulkEvent.php │ │ ├── Cast │ │ │ ├── JsonCastSearchable.php │ │ │ ├── CompositeCastInterface.php │ │ │ ├── UuidCast.php │ │ │ ├── UuidBinCast.php │ │ │ ├── JsonCastArrayList.php │ │ │ ├── CompositeCastTrait.php │ │ │ └── CastInterface.php │ │ ├── TableAwareInterface.php │ │ └── EntityInterface.php │ └── .ide │ │ └── phpstorm │ │ └── .phpstorm.meta.php │ │ ├── EntityMapper.meta.php │ │ └── Relations.php ├── promise │ ├── src │ │ ├── bootstrap.php │ │ ├── Exception │ │ │ ├── UnsettledException.php │ │ │ └── AggregateException.php │ │ ├── Helper │ │ │ └── ReturnPromiseInterface.php │ │ ├── SyncablePromise.php │ │ ├── SettledResult.php │ │ └── Enum │ │ │ └── PromiseState.php │ └── phpunit.ci.xml ├── reactor │ ├── src │ │ ├── bootstrap.php │ │ ├── Swoole │ │ │ ├── Event │ │ │ │ ├── WorkerEventTrait.php │ │ │ │ ├── TcpEventTrait.php │ │ │ │ ├── ServerEventTrait.php │ │ │ │ ├── HandshakeEvent.php │ │ │ │ ├── StartEvent.php │ │ │ │ ├── ShutdownEvent.php │ │ │ │ ├── AfterReloadEvent.php │ │ │ │ ├── ManagerStopEvent.php │ │ │ │ ├── BeforeReloadEvent.php │ │ │ │ ├── ManagerStartEvent.php │ │ │ │ ├── BeforeShutdownEvent.php │ │ │ │ ├── DisconnectEvent.php │ │ │ │ ├── PacketEvent.php │ │ │ │ ├── PipeMessageEvent.php │ │ │ │ ├── TaskEvent.php │ │ │ │ ├── WorkerExitEvent.php │ │ │ │ ├── WorkerStartEvent.php │ │ │ │ ├── WorkerStopEvent.php │ │ │ │ ├── WorkerErrorEvent.php │ │ │ │ ├── ConnectEvent.php │ │ │ │ ├── OpenEvent.php │ │ │ │ ├── BeforeHandshakeResponseEvent.php │ │ │ │ └── ReceiveEvent.php │ │ │ ├── SwooleHttpServer.php │ │ │ ├── SwooleWebsocketServer.php │ │ │ └── SwooleMessageTextEmitter.php │ │ ├── WebSocket │ │ │ ├── MessageEmitterInterface.php │ │ │ ├── WebSocketServerInterface.php │ │ │ ├── WebSocketFrameInterface.php │ │ │ ├── MessageParserInterface.php │ │ │ ├── WebSocketRequestInterface.php │ │ │ └── WsApplication.php │ │ └── Protocol.php │ ├── phpunit.ci.xml │ ├── etc │ │ └── reactor.config.php │ └── views │ │ └── code │ │ └── websocket │ │ └── WsApplication.php.tpl ├── scalars │ ├── src │ │ ├── bootstrap.php │ │ └── ScalarsFactory.php │ ├── .ide │ │ └── phpstorm │ │ │ └── .phpstorm.meta.php │ │ │ └── ArrayObject.meta.php │ └── phpunit.ci.xml ├── uri │ ├── src │ │ ├── bootstrap.php │ │ └── UriFactory.php │ └── phpunit.ci.xml ├── filesystem │ ├── src │ │ ├── bootstrap.php │ │ ├── Exception │ │ │ ├── FileNotFoundException.php │ │ │ └── FilesystemException.php │ │ └── TempFileObject.php │ └── phpunit.ci.xml ├── utilities │ ├── src │ │ ├── bootstrap.php │ │ ├── Enum │ │ │ ├── EnumRichInterface.php │ │ │ ├── EnumAdapterInterface.php │ │ │ ├── EnumTranslatableInterface.php │ │ │ ├── EnumBCTrait.php │ │ │ └── EnumTranslatableTrait.php │ │ ├── Exception │ │ │ ├── CastingException.php │ │ │ ├── VerbosityExceptionInterface.php │ │ │ └── VerbosityExceptionTrait.php │ │ ├── Attributes │ │ │ ├── Prop.php │ │ │ ├── Expose.php │ │ │ ├── Transient.php │ │ │ └── Enum │ │ │ │ ├── Hidden.php │ │ │ │ ├── Icon.php │ │ │ │ ├── Meta.php │ │ │ │ └── Color.php │ │ ├── Classes │ │ │ ├── FlowControlTrait.php │ │ │ ├── PreventInitialTrait.php │ │ │ ├── ImmutableHelperTrait.php │ │ │ └── ClassDecorator.php │ │ ├── Accessible │ │ │ └── BaseAccessibleTrait.php │ │ ├── Assert │ │ │ ├── RuntimeAssert.php │ │ │ ├── LogicAssert.php │ │ │ └── ArgumentsAssert.php │ │ ├── Wrapper │ │ │ ├── DepthWrapper.php │ │ │ └── WrapperInterface.php │ │ ├── Proxy │ │ │ ├── StringableCallable.php │ │ │ └── CachedCallable.php │ │ ├── Env.php │ │ ├── Contract │ │ │ ├── NullableInterface.php │ │ │ └── DumpableInterface.php │ │ └── Logger │ │ │ └── CallbackLogger.php │ ├── .ide │ │ └── phpstorm │ │ │ └── .phpstorm.meta.php │ │ │ ├── functions.php │ │ │ └── AttributesResolver.php │ └── phpunit.ci.xml ├── dom │ ├── src │ │ └── bootstrap.php │ └── phpunit.ci.xml └── query │ ├── src │ ├── bootstrap.php │ ├── constants.php │ ├── Clause │ │ ├── ClausePosition.php │ │ ├── ClauseInterface.php │ │ └── ExprClause.php │ ├── Wrapper │ │ └── UuidBinWrapper.php │ ├── Grammar │ │ └── JsonGrammarTrait.php │ └── QueryInterface.php │ └── phpunit.ci.xml ├── bin ├── composer.bat ├── composer ├── test-server.php └── package-test.sh ├── docs └── replaces.md └── .editorconfig /packages/edge/tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/database/tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/renderer/tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/session/tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/queue/tmp/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /bin/composer.bat: -------------------------------------------------------------------------------- 1 | php8 C:/ProgramData/ComposerSetup/bin/composer.phar %* 2 | -------------------------------------------------------------------------------- /packages/stream/src/functions.php: -------------------------------------------------------------------------------- 1 | '@', 15 | ] 16 | ) 17 | ); 18 | } 19 | -------------------------------------------------------------------------------- /packages/di/src/Exception/DependencyResolutionException.php: -------------------------------------------------------------------------------- 1 | new \RuntimeException($message); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /packages/utilities/src/Wrapper/DepthWrapper.php: -------------------------------------------------------------------------------- 1 | depth; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/cache/src/Exception/InvalidArgumentException.php: -------------------------------------------------------------------------------- 1 | new LogicException($message); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/test/src/TestHelper.php: -------------------------------------------------------------------------------- 1 | getDebugMessage(); 13 | } 14 | 15 | return $this->getMessage(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/queue/src/Event/DebugOutputEvent.php: -------------------------------------------------------------------------------- 1 | inputType; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /packages/utilities/.ide/phpstorm/.phpstorm.meta.php/functions.php: -------------------------------------------------------------------------------- 1 | '@', 12 | ] 13 | ) 14 | ); 15 | 16 | // Helpers 17 | override( 18 | \Windwalker\tap(0), 19 | elementType(0) 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /packages/cache/src/Storage/LockableStorageInterface.php: -------------------------------------------------------------------------------- 1 | installConfig(__DIR__ . '/../etc/*.php', 'config'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/ServerEventTrait.php: -------------------------------------------------------------------------------- 1 | new InvalidArgumentException($msg); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /packages/authorization/src/PolicyInterface.php: -------------------------------------------------------------------------------- 1 | fetchStreamUri($key); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/queue/src/Exception/UnrecoverableException.php: -------------------------------------------------------------------------------- 1 | getMessage(), (int) $e->getCode(), $e); 12 | } 13 | 14 | public static function throwFrom(\Throwable $e): never 15 | { 16 | throw static::from($e); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/di/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/dom/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/JsonObject.php: -------------------------------------------------------------------------------- 1 | options |= JsonCast::EMPTY_ARRAY_AS_OBJECT; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/crypt/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/data/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/edge/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/event/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/filter/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/filter/src/ValidatorInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/html/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/pool/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/promise/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/query/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/reactor/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/scalars/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/stream/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/utilities/src/Attributes/Enum/Icon.php: -------------------------------------------------------------------------------- 1 | icon; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/utilities/src/Attributes/Enum/Meta.php: -------------------------------------------------------------------------------- 1 | meta; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/attributes/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/environment/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/filesystem/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/language/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/reactor/etc/reactor.config.php: -------------------------------------------------------------------------------- 1 | [ 12 | 'swoole' => [ 13 | // 14 | ], 15 | 16 | 'watch' => [ 17 | 'etc/**/*', 18 | 'src/**/*', 19 | 'views/**/*', 20 | ], 21 | ]; 22 | -------------------------------------------------------------------------------- /packages/renderer/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/renderer/src/RendererPackage.php: -------------------------------------------------------------------------------- 1 | installConfig(__DIR__ . '/../etc/*.php', 'config'); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/session/src/Handler/NativeHandler.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/utilities/src/Attributes/Enum/Color.php: -------------------------------------------------------------------------------- 1 | color; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /packages/authentication/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/authorization/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | test 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /packages/utilities/src/Enum/EnumTranslatableInterface.php: -------------------------------------------------------------------------------- 1 | options |= JsonCast::FORCE_ARRAY_LIST; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /packages/event/src/Listener/ListenerPriority.php: -------------------------------------------------------------------------------- 1 | getHandler()($value); 18 | } 19 | 20 | /** 21 | * @return callable 22 | */ 23 | abstract public function getHandler(): callable; 24 | } 25 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/SwooleWebsocketServer.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | test 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/pool/src/ConnectionPool.php: -------------------------------------------------------------------------------- 1 | builder)(); 20 | } 21 | 22 | public function setConnectionBuilder(callable $builder): void 23 | { 24 | $this->builder = $builder; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /packages/event/src/EventDisposableInterface.php: -------------------------------------------------------------------------------- 1 | getFilterName(), (int) $this->getOptions()); 18 | } 19 | 20 | abstract public function getFilterName(): int; 21 | 22 | abstract public function getOptions(): ?int; 23 | } 24 | -------------------------------------------------------------------------------- /packages/cache/src/Storage/LockableStorageTrait.php: -------------------------------------------------------------------------------- 1 | lock(); 13 | } 14 | 15 | try { 16 | $result = $handler(); 17 | } finally { 18 | if ($enabled) { 19 | $this->release(); 20 | } 21 | } 22 | 23 | return $result; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/RelationConfigureAttributeInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | test 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/utilities/.ide/phpstorm/.phpstorm.meta.php/AttributesResolver.php: -------------------------------------------------------------------------------- 1 | '@', 14 | ] 15 | ) 16 | ); 17 | 18 | override( 19 | AttributesResolver::decorateObject(0), 20 | map( 21 | [ 22 | '' => '@', 23 | ] 24 | ) 25 | ); 26 | } 27 | -------------------------------------------------------------------------------- /packages/filter/src/Rule/RawValue.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | test 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/http/src/File/HttpUploadFileInterface.php: -------------------------------------------------------------------------------- 1 | uuid->getBytes(); 19 | } 20 | 21 | public function __toString(): string 22 | { 23 | return $this->uuid->getBytes(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/session/src/SessionInterface.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/cache/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | test 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /packages/http/src/Middleware/RequestRunner.php: -------------------------------------------------------------------------------- 1 | queue); 20 | 21 | return (new RequestHandler($this->queue, $this->resolver))->handle($request); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/ShutdownEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/filter/src/Rule/Negative.php: -------------------------------------------------------------------------------- 1 | -$value; 20 | } 21 | 22 | /** 23 | * @inheritDoc 24 | */ 25 | public function test(mixed $value, bool $strict = false): bool 26 | { 27 | return $value < 0; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/filter/src/Rule/Required.php: -------------------------------------------------------------------------------- 1 | [ 13 | 14 | 'providers' => [ 15 | FormProvider::class, 16 | ], 17 | 18 | 'bindings' => [ 19 | // 20 | ], 21 | 22 | 'extends' => [ 23 | // 24 | ], 25 | 26 | 'factories' => [ 27 | // 28 | ], 29 | ]; 30 | -------------------------------------------------------------------------------- /packages/queue/src/Event/LoopStartEvent.php: -------------------------------------------------------------------------------- 1 | runner = $runner; 24 | $this->queue = $queue; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /packages/queue/resources/sql/queue_failed_jobs.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE if EXISTS `queue_failed_jobs`; 2 | CREATE TABLE IF NOT EXISTS `queue_failed_jobs` ( 3 | `id` int(11) unsigned NOT NULL, 4 | `connection` varchar(255) NOT NULL DEFAULT '', 5 | `channel` varchar(255) NOT NULL DEFAULT '', 6 | `body` longtext NOT NULL, 7 | `exception` longtext NOT NULL, 8 | `created` datetime NOT NULL DEFAULT '1000-01-01 00:00:00' 9 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 10 | 11 | ALTER TABLE `queue_failed_jobs` 12 | ADD PRIMARY KEY (`id`); 13 | 14 | ALTER TABLE `queue_failed_jobs` 15 | MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT; 16 | -------------------------------------------------------------------------------- /packages/queue/src/Event/AfterEnqueueEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/ManagerStopEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/cache/src/Storage/ForeverFileStorage.php: -------------------------------------------------------------------------------- 1 | castByAttribute( 20 | $handler, 21 | $this 22 | ); 23 | 24 | return $handler->get(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/BeforeReloadEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/ManagerStartEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/cache/src/Serializer/SerializerInterface.php: -------------------------------------------------------------------------------- 1 | runner = $runner; 25 | $this->queue = $queue; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/BeforeShutdownEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 23 | $this->server = $server; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/utilities/src/Contract/NullableInterface.php: -------------------------------------------------------------------------------- 1 | callback)($level, $message, $context); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/authorization/src/AuthorizationInterface.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | test 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/session/phpunit.ci.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | test 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /packages/queue/src/Event/LoopEndEvent.php: -------------------------------------------------------------------------------- 1 | runner = $runner; 25 | $this->queue = $queue; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/DisconnectEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 24 | $this->server = $server; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /packages/form/src/Field/FileField.php: -------------------------------------------------------------------------------- 1 | withStatus($code, $reasonPhrase); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/edge/src/Compiler/Concern/CompileCommentTrait.php: -------------------------------------------------------------------------------- 1 | contentTags[0], $this->contentTags[1]); 22 | 23 | return preg_replace($pattern, '', $value); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/ManyToOne.php: -------------------------------------------------------------------------------- 1 | manyToOne($prop->getName())->targetTo($this->target, ...$this->columns); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/OneToMany.php: -------------------------------------------------------------------------------- 1 | oneToMany($prop->getName())->targetTo($this->target, ...$this->columns); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/utilities/src/Classes/ClassDecorator.php: -------------------------------------------------------------------------------- 1 | innerObject = $innerObject; 22 | } 23 | 24 | public function __call(string $name, array $args): mixed 25 | { 26 | return $this->innerObject->$name(...$args); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/orm/src/Cast/JsonCastArrayList.php: -------------------------------------------------------------------------------- 1 | encodeOptions); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/orm/src/EntityInterface.php: -------------------------------------------------------------------------------- 1 | hydrate(...); 19 | } 20 | 21 | /** 22 | * @inheritDoc 23 | */ 24 | public function getExtract(): mixed 25 | { 26 | return $this->extract(...); 27 | } 28 | 29 | public function getOptions(): int 30 | { 31 | return 0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/OneToOne.php: -------------------------------------------------------------------------------- 1 | oneToOne($prop->getName()) 21 | ->targetTo($this->target, ...$this->columns); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/database/src/Event/FullFetchedEvent.php: -------------------------------------------------------------------------------- 1 | query = $query; 21 | $this->sql = $sql; 22 | $this->bounded = $bounded; 23 | $this->statement = $statement; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /packages/event/src/EventEmitterInterface.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 25 | $this->server = $server; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/filter/src/Rule/IPV6.php: -------------------------------------------------------------------------------- 1 | reflector; 19 | $instance = $handler->object; 20 | 21 | if ($ref instanceof ReflectionMethod && $instance) { 22 | $ref->invoke($instance); 23 | } 24 | 25 | return $handler->get(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/crypt/src/Hasher/PasswordHasherInterface.php: -------------------------------------------------------------------------------- 1 | info = $info; 23 | 24 | return $new; 25 | } 26 | 27 | public function getInfo(): mixed 28 | { 29 | return $this->info; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /packages/queue/src/Event/AfterJobRunEvent.php: -------------------------------------------------------------------------------- 1 | runner = $runner; 25 | $this->queue = $queue; 26 | $this->controller = $controller; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/queue/src/Event/BeforeJobRunEvent.php: -------------------------------------------------------------------------------- 1 | controller = $controller; 25 | $this->runner = $runner; 26 | $this->queue = $queue; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/utilities/src/Proxy/CachedCallable.php: -------------------------------------------------------------------------------- 1 | called) { 23 | return $this->value; 24 | } 25 | 26 | $value = parent::__invoke(...$args); 27 | 28 | $this->value = $value; 29 | $this->called = true; 30 | 31 | return $value; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/PipeMessageEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 25 | $this->server = $server; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/SwooleMessageTextEmitter.php: -------------------------------------------------------------------------------- 1 | server->exists($fd)) { 22 | return false; 23 | } 24 | 25 | return $this->server->push($fd, $data); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/database/src/Hydrator/HydratorInterface.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 26 | $this->server = $server; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/stream/src/bootstrap.php: -------------------------------------------------------------------------------- 1 | $this->runner; 22 | } 23 | 24 | public QueueMessage $message { 25 | get => $this->controller->message; 26 | } 27 | 28 | // phpcs:disable 29 | public object $job { 30 | get => $this->message->getJob(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /packages/promise/src/SettledResult.php: -------------------------------------------------------------------------------- 1 | getMessage(), $e->getCode(), $e); 12 | } 13 | 14 | public static function throwFrom(\Throwable $e): never 15 | { 16 | throw static::from($e); 17 | } 18 | 19 | public function toReasonText(): string 20 | { 21 | if ($this->getMessage()) { 22 | return 'Job abandoned, reason: ' . $this->getMessage(); 23 | } 24 | 25 | return 'Job abandoned.'; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/queue/src/RunnerOptions.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 25 | $this->server = $server; 26 | $this->workerId = $workerId; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/WorkerStartEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 25 | $this->server = $server; 26 | $this->workerId = $workerId; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/WorkerStopEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 25 | $this->server = $server; 26 | $this->workerId = $workerId; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/di/.ide/phpstorm/.phpstorm.meta.php/ServiceAwareTrait.meta.php: -------------------------------------------------------------------------------- 1 | '@', 12 | ] 13 | ) 14 | ); 15 | 16 | override( 17 | \Windwalker\DI\ServiceAwareTrait::service(0), 18 | map( 19 | [ 20 | '' => '@', 21 | ] 22 | ) 23 | ); 24 | 25 | override( 26 | \Windwalker\DI\ServiceAwareTrait::resolve(0), 27 | map( 28 | [ 29 | '' => '@', 30 | ] 31 | ) 32 | ); 33 | } 34 | -------------------------------------------------------------------------------- /packages/edge/src/Compiler/Concern/CompileClassTrait.php: -------------------------------------------------------------------------------- 1 | \""; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /packages/cache/src/Serializer/JsonAssocSerializer.php: -------------------------------------------------------------------------------- 1 | value = $value; 24 | } 25 | 26 | /** 27 | * Get the string value. 28 | * 29 | * @return string 30 | */ 31 | public function __toString(): string 32 | { 33 | return (string) $this->value; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /packages/queue/src/Event/EnqueueFailureEvent.php: -------------------------------------------------------------------------------- 1 | exception = $exception; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/WorkerErrorEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 27 | $this->server = $server; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/database/src/Event/QueryEndEvent.php: -------------------------------------------------------------------------------- 1 | query = $query; 25 | $this->sql = $sql; 26 | $this->bounded = $bounded; 27 | $this->statement = $statement; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/di/src/ContainerAwareTrait.php: -------------------------------------------------------------------------------- 1 | container ??= new Container(); 20 | } 21 | 22 | /** 23 | * @param Container|null $container 24 | * 25 | * @return static Return self to support chaining. 26 | */ 27 | public function setContainer(?Container $container): static 28 | { 29 | $this->container = $container; 30 | 31 | return $this; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/orm/src/Attributes/CastNullable.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 26 | $this->server = $server; 27 | $this->fd = $fd; 28 | $this->reactorId = $reactorId; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /packages/database/src/Event/QueryStartEvent.php: -------------------------------------------------------------------------------- 1 | query = $query; 25 | $this->sql = $sql; 26 | $this->bounded = $bounded; 27 | $this->statement = $statement; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/utilities/src/Enum/EnumTranslatableTrait.php: -------------------------------------------------------------------------------- 1 | value] = $item->getTitle($lang, ...$args); 25 | } 26 | 27 | return $items; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/OpenEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 27 | $this->server = $server; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/database/src/Hydrator/ClassMethodHydrator.php: -------------------------------------------------------------------------------- 1 | container ??= new Container(); 20 | } 21 | 22 | /** 23 | * @param Container|null $container 24 | * 25 | * @return static Return self to support chaining. 26 | */ 27 | public function setContainer(?Container $container): static 28 | { 29 | $this->container = $container; 30 | 31 | return $this; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/filesystem/src/TempFileObject.php: -------------------------------------------------------------------------------- 1 | $this->deleteIfExists()); 17 | } 18 | 19 | public function deleteWhenDestruct(bool $value = false): void 20 | { 21 | $this->deleteWhenDestruct = $value; 22 | } 23 | 24 | /** 25 | * @inheritDoc 26 | */ 27 | public function __destruct() 28 | { 29 | if ($this->deleteWhenDestruct) { 30 | $this->deleteIfExists(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /packages/filter/src/Rule/DefaultValue.php: -------------------------------------------------------------------------------- 1 | default = $default; 27 | } 28 | 29 | /** 30 | * @inheritDoc 31 | */ 32 | public function filter(mixed $value): mixed 33 | { 34 | return $value === '' || $value === null ? $this->default : $value; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /packages/orm/src/Cast/CastInterface.php: -------------------------------------------------------------------------------- 1 | query = $query; 26 | $this->sql = $sql; 27 | $this->bounded = $bounded; 28 | $this->statement = $statement; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/BeforeHandshakeResponseEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 27 | $this->server = $server; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /packages/edge/src/Loader/EdgeLoaderInterface.php: -------------------------------------------------------------------------------- 1 | nullable && $data === null) { 25 | return null; 26 | } 27 | 28 | return TypeCast::toObject($data, $this->deep, $this->class); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /packages/reactor/src/Swoole/Event/ReceiveEvent.php: -------------------------------------------------------------------------------- 1 | swooleServer = $swooleServer; 27 | $this->server = $server; 28 | $this->fd = $fd; 29 | $this->reactorId = $reactorId; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /packages/database/src/Driver/Pdo/PdoPgsqlConnection.php: -------------------------------------------------------------------------------- 1 | host; 19 | $params['port'] = $options->port ?? null; 20 | $params['dbname'] = $options->dbname ?? null; 21 | $params['charset'] = $options->charset ?? null; 22 | 23 | $options->dsn ??= static::getDsn($params); 24 | 25 | return $options; 26 | } 27 | } 28 | --------------------------------------------------------------------------------