symplify / symfony-php-config
This package is abandoned and no longer maintained.
The author suggests using the symplify/package-builder package instead.
Tools that easy work with Symfony PHP Configs
10.0.24
2022-02-19 17:41 UTC
Requires
- php: >=8.0
- symfony/dependency-injection: ^5.4|^6.0
- symplify/package-builder: ^10.0.24
- symplify/symplify-kernel: ^10.0.24
Requires (Dev)
- phpstan/phpstan: ^1.4.6
- phpunit/phpunit: ^9.5
Conflicts
- symplify/amnesia: <10.0.24
- symplify/astral: <10.0.24
- symplify/autowire-array-parameter: <10.0.24
- symplify/coding-standard: <10.0.24
- symplify/composer-json-manipulator: <10.0.24
- symplify/config-transformer: <10.0.24
- symplify/console-color-diff: <10.0.24
- symplify/easy-ci: <10.0.24
- symplify/easy-coding-standard: <10.0.24
- symplify/easy-parallel: <10.0.24
- symplify/easy-testing: <10.0.24
- symplify/git-wrapper: <10.0.24
- symplify/latte-phpstan-compiler: <10.0.24
- symplify/markdown-diff: <10.0.24
- symplify/monorepo-builder: <10.0.24
- symplify/neon-config-dumper: <10.0.24
- symplify/php-config-printer: <10.0.24
- symplify/phpstan-extensions: <10.0.24
- symplify/phpstan-latte-rules: <10.0.24
- symplify/phpstan-rules: <10.0.24
- symplify/rule-doc-generator: <10.0.24
- symplify/rule-doc-generator-contracts: <10.0.24
- symplify/simple-php-doc-parser: <10.0.24
- symplify/skipper: <10.0.24
- symplify/smart-file-system: <10.0.24
- symplify/symfony-static-dumper: <10.0.24
- symplify/template-phpstan-compiler: <10.0.24
- symplify/vendor-patches: <10.0.24
- dev-main / 10.1.x-dev
- 10.0.24
- 10.0.23
- 10.0.22
- 10.0.21
- 10.0.20
- 10.0.19
- 10.0.18
- 10.0.17
- 10.0.16
- 10.0.15
- 10.0.14
- 10.0.13
- 10.0.12
- 10.0.11
- 10.0.10
- 10.0.9
- 10.0.8
- 10.0.7
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 10.0.0-beta17
- 10.0.0-beta16
- 10.0.0-beta15
- 10.0.0-beta14
- 10.0.0-beta13
- 10.0.0-beta12
- 10.0.0-beta11
- 10.0.0-beta10
- 10.0.0-beta9
- 10.0.0-beta8
- 10.0.0-beta7
- 10.0.0-beta6
- 10.0.0-beta5
- 10.0.0-beta4
- 10.0.0-beta3
- 10.0.0-beta2
- 10.0.0-beta1
- 9.4.70
- 9.4.69
- 9.4.68
- 9.4.67
- 9.4.66
- 9.4.65
- 9.4.64
- 9.4.63
- 9.4.62
- 9.4.61
- 9.4.60
- 9.4.59
- 9.4.58
- 9.4.57
- 9.4.56
- 9.4.55
- 9.4.54
- 9.4.53
- 9.4.52
- 9.4.51
- 9.4.50
- 9.4.49
- 9.4.48
- 9.4.47
- 9.4.46
- 9.4.45
- 9.4.44
- 9.4.43
- 9.4.42
- 9.4.41
- 9.4.40
- 9.4.39
- 9.4.38
- 9.4.37
- 9.4.36
- 9.4.35
- 9.4.34
- 9.4.33
- 9.4.32
- 9.4.31
- 9.4.30
- 9.4.29
- 9.4.28
- 9.4.27
- 9.4.26
- 9.4.25
- 9.4.24
- 9.4.23
- 9.4.22
- 9.4.21
- 9.4.20
- 9.4.19
- 9.4.18
- 9.4.17
- 9.4.16
- 9.4.15
- 9.4.14
- 9.4.13
- 9.4.12
- 9.4.11
- 9.4.10
- 9.4.9
- 9.4.8
- 9.4.7
- 9.4.6
- 9.4.5
- 9.4.4
- 9.4.3
- 9.4.2
- v9.4.1
- v9.4.0
- v9.3.27
- v9.3.26
- v9.3.25
- v9.3.24
- v9.3.23
- v9.3.22
- v9.3.21
- v9.3.20
- v9.3.19
- v9.3.18
- v9.3.17
- v9.3.16
- v9.3.15
- v9.3.14
- v9.3.13
- v9.3.12
- v9.3.11
- v9.3.10
- v9.3.8
- v9.3.6
- v9.3.5
- v9.3.4
- v9.3.3
- v9.3.1
- v9.3.0
- v9.2.24
- v9.2.23
- v9.2.22
- v9.2.21
- v9.2.20
- v9.2.19
- v9.2.18
- v9.2.17
- v9.2.16
- v9.2.15
- v9.2.14
- v9.2.13
- v9.2.12
- v9.2.11
- v9.2.10
- v9.2.9
- v9.2.8
- v9.2.7
- v9.2.6
- v9.2.5
- v9.2.4
- v9.2.3
- v9.2.2
- 9.2.1
- 9.2.0
- 9.1.9
- 9.1.8
- 9.1.7
- 9.1.6
- 9.1.5
- 9.1.4
- 9.1.3
- 9.1.1
- 9.1.0
- 9.0.50
- 9.0.49
- 9.0.48
- 9.0.47
- 9.0.46
- 9.0.45
- 9.0.44
- 9.0.43
- 9.0.42
- 9.0.41
- 9.0.40
- 9.0.39
- 9.0.38
- 9.0.37
- 9.0.36
- 9.0.35
- 9.0.34
- 9.0.33
- 9.0.32
- 9.0.31
- 9.0.30
- 9.0.29
- 9.0.28
- 9.0.27
- 9.0.26
- 9.0.25
- 9.0.24
- 9.0.23
- 9.0.22
- 9.0.21
- 9.0.20
- 9.0.19
- 9.0.17
- 9.0.16
- 9.0.15
- 9.0.14
- 9.0.13
- 9.0.12
- 9.0.11
- 9.0.10
- 9.0.9
- 9.0.8
- 9.0.7
- 9.0.6
- 9.0.5
- 9.0.4
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 9.0.0-rc1
- 9.0.0-BETA9
- 9.0.0-BETA8
- 9.0.0-BETA7
- 9.0.0-BETA6
- 9.0.0-BETA5
- 0.8.56
- 0.8.54
- 0.8.53
- 0.8.52
- 0.8.45
- 0.8.44
- 0.8.43
- 0.8.42
- 0.8.41
- 0.8.40
- 0.8.39
- 0.8.35
- 0.8.34
- 0.8.33
- 0.8.32
- 0.8.31
- 0.8.30
- 0.8.29
- 0.8.28
- 0.8.27
- 0.8.26
- 0.8.25
- 0.8.24
- 0.8.23
- 0.8.21
- 0.8.20
- 0.8.19
- 0.8.18
This package is auto-updated.
Last update: 2022-02-19 19:03:32 UTC
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'), ]), ]]); };