remi-san / sf-di-tools
A set of tools for symfony DI
v0.1.1
2021-02-21 14:59 UTC
Requires
- symfony/config: ^3.0
- symfony/dependency-injection: ^3.0
- symfony/yaml: ^3.0
Requires (Dev)
- fabpot/php-cs-fixer: ^1.10
- mockery/mockery: ^0.9
- phpunit/phpunit: ^4.5
- squizlabs/php_codesniffer: ~2.0
This package is auto-updated.
Last update: 2024-10-21 22:47:40 UTC
README
Providing easy-to-use tools for symfony
Content
This lib provides the following util classes:
YamlCachedContainerBuilder
allows to manage cachedSymfony Dependency Injector
container withYAML
config files easily.
Usage example
YamlCachedContainerBuilder
$cacheBuilder = new YamlCachedContainerBuilder('path/to/cache/dir', false); $container = $cacheBuilder->build('path/to/config/dir', 'root-config-file.yml', 'MyCachedContainer', 'MyProject\\Cache');