Symfony Kernel Traits
Symfony 2.8 has that new Microkernel trait and
this package contains some other simple traits that can support development of simple Symfony Kernel applications., (*1)
Using these traits effectively probably requires you to store configuration in the environment with SYMFONY__
prefixed
envrionment variables., (*2)
ClassBasedNameTrait
Use this trait in your kernel to base the kernel's name on its class name instead of its directory., (*3)
VariableFilesystemTrait
Use this trait in your kernel to store cache and logs in the Symfony 3 standard var
location. If you have multiple
kernels in the same directory, you will need to use ClassBasedNameTrait
to avoid conflicts., (*4)
YamlEnvironmentTrait
Use this trait in your kernel to parse environment variables as YAML before populating the container parameters., (*5)
StandardConfigTrait
and MinimalConfigTrait
These two traits are probably not useful in any real sense, but they demonstrate how to sustain a Symfony Standard
configuration with the microkernel trait and the bare minimum required to instantiate the kernel and framework, respectively., (*6)