c33s / parameter-objects-bundle
Plain PHP objects for Symfony parameter values to ease autowiring
Installs: 158
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Forks: 0
Type:symfony-bundle
pkg:composer/c33s/parameter-objects-bundle
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_VERSIONversion constraint which will passed tocomposer create-projecte.g.~4.4.0COMPOSER_PHARcomposer phar to use, defaults to the version installed with robo.robo/bin/composer.pharSYMFONY_INTEGRATION_TEST_INITIALIZEDcan be set to true to prevent the project initializationSYMFONY_INTEGRATION_TEST_FORCE_REINITIALIZEset this to true to force project reinitialization
also see adding-new-parameter.md