remi-san/sf-di-tools

A set of tools for symfony DI

v0.1.1 2021-02-21 14:59 UTC

This package is auto-updated.

Last update: 2024-11-21 23:01:21 UTC


README

Author Build Status Quality Score Software License Packagist Version Coverage Status SensioLabsInsight

Providing easy-to-use tools for symfony

Content

This lib provides the following util classes:

  • YamlCachedContainerBuilder allows to manage cached Symfony Dependency Injector container with YAML 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');