c33s / parameter-objects-bundle
Plain PHP objects for Symfony parameter values to ease autowiring
1.0.1
2020-12-16 15:56 UTC
Requires
- php: ^7.1.0|^8.0
- symfony/config: ^3.4|^4.0|^5.0
- symfony/dependency-injection: ^3.4|^4.0|^5.0
- symfony/http-kernel: ^3.4|^4.0|^5.0
Requires (Dev)
- codeception/codeception: 4.1.12
- codeception/module-asserts: 1.3.1
- codeception/module-cli: 1.1.0
- codeception/module-filesystem: 1.0.3
- composer/semver: ^3.2.4
- doctrine/annotations: ^1.11.1
- roave/security-advisories: dev-latest
- symfony/finder: ^3.4|^4.0|^5.0
- voku/stringy: ^6.4.0
README
Inject plain PHP classes which can be autowired into your services instead of binding string parameters.
Classes and their respective parameters:
\C33s\ParameterObjects\KernelEnvironment
:%kernel.environment%
\C33s\ParameterObjects\KernelProjectDir
:%kernel.project_dir%
Testing
Environment variables
used by the integration test
SYMFONY_VERSION
version constraint which will passed tocomposer create-project
e.g.~4.4.0
COMPOSER_PHAR
composer phar to use, defaults to the version installed with robo.robo/bin/composer.phar
SYMFONY_INTEGRATION_TEST_INITIALIZED
can be set to true to prevent the project initializationSYMFONY_INTEGRATION_TEST_FORCE_REINITIALIZE
set this to true to force project reinitialization
also see adding-new-parameter.md