Plain PHP objects for Symfony parameter values to ease autowiring

1.0.1 2020-12-16 15:56 UTC

This package is auto-updated.

Last update: 2024-03-23 16:21:59 UTC


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%


Environment variables

used by the integration test

  • SYMFONY_VERSION version constraint which will passed to composer 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 initialization
  • SYMFONY_INTEGRATION_TEST_FORCE_REINITIALIZE set this to true to force project reinitialization

also see adding-new-parameter.md