定制 symplify/symfony-php-config 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

symplify/symfony-php-config

最新稳定版本:10.0.24

Composer 安装命令:

composer require symplify/symfony-php-config

包简介

Tools that easy work with Symfony PHP Configs

README 文档

README

Tools that easy work with Symfony PHP Configs.

Read How to Inline Value Object in Symfony PHP Config to learn more.TagValueNodeReprintTest

1. Install

composer require symplify/symfony-php-config

2. Usage

Do you want to use value objects in Symfony configs?

Use Symplify\SymfonyPhpConfig\ValueObjectInliner::inline() method:

use Rector\Generic\Rector\FuncCall\FuncCallToStaticCallRector; use Rector\Transform\ValueObject\FuncCallToStaticCall; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symplify\SymfonyPhpConfig\ValueObjectInliner; return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); $services->set(FuncCallToStaticCallRector::class) ->call('configure', [[ FuncCallToStaticCallRector::FUNC_CALLS_TO_STATIC_CALLS => ValueObjectInliner::inline([ new FuncCallToStaticCall('dump', 'Tracy\Debugger', 'dump'), // it handles multiple items without duplicated call new FuncCallToStaticCall('d', 'Tracy\Debugger', 'dump'), new FuncCallToStaticCall('dd', 'Tracy\Debugger', 'dump'), ]), ]]); };

统计信息

  • 总下载量: 1.55M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固