PHPZLC 3 is now released, fully embracing Symfony 7. CJayhe PHPZlc动态 322 views ## Release Details PHPZLC 3 is now released, fully embracing Symfony 7. Includes core library + backend components and support + documentation. ## Modifications 1. Enhanced the functionality of ActionLoad. Added injection for CommandLoad. This allows for direct usage of these Symfony core services in any part of the system (interface or command), counteracting the restrictions on calling these services in Symfony 7. ```php /** * @var ContainerInterface */ public static $globalContainer; /** * @var ObjectManager */ public static $globalDoctrine; /** * @var ParameterBagInterface */ public static $globalParameter; /** * @var Connection */ public static $globalConnection; /** * @var ValidatorInterface */ public static $globalValidation; ``` ------------ 2. Adjusted the definition of entities based on the strong typing requirements of PHP 8 and the new feature `Attribute`. Retooled the way PHPZLC handles entity reading and programming in this area. ## Notes This round of upgrades involved simple testing of core parts and components, indicating basic usability. However, this version has not yet undergone testing in a complete project. Therefore, it is advisable for users with high stability requirements to refrain from trying it out easily. We will promptly arrange commercial project development for maintenance in the future and actively adapt to resolve issues. We welcome everyone to use and participate in open-source work. ## Notable Features 1. Global system service invocation allows you to easily call Symfony core services at any location, removing call restrictions. 2. Definition of database table external fields enables you to define SQL subqueries as a field, with the same reading method as other database fields. Querying, sorting, and combining conditions are consistent with native fields, greatly facilitating the reuse of SQL subqueries. 3. The rule-based query system intelligently determines the structure of your SQL, enabling correct binding to corresponding fields regardless of how complex the SQL is. This allows you to easily utilize the `NativeQuery` feature of the ORM. 4. The rule-based query system's rule definition feature lets you define and associate condition rules or other rules for programming combinations in complex WHERE statements. 5. Unique component design divided into business components and feature components, working seamlessly with Symfony Flex or PHPZLC Flex components to easily solidify business code for reuse in future systems. ## Documentation Link [PHPZLC Documentation](https://phpzlc.com/doc/) 帮助PHPZlc项目! 与任何开源项目一样, 贡献代码 或 文档 是最常见的帮助方式, 但我们也有广泛的 赞助机会。 2 赞赏 加入技术群 评论 去登录