lukaszmakuch / sf-container-haringo-val
Haringo ValueSource extension that provides values from Symfony Container
v0.0.2
2016-02-06 21:03 UTC
Requires
- lukaszmakuch/haringo: ^0.0.4
- symfony/dependency-injection: ^2.5
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: 4.7.*
This package is not auto-updated.
Last update: 2025-01-10 10:58:30 UTC
README
SfContainerHaringoVal
Let Haringo use values from the Symfony DI container!
Using values from the Symfony DI container
<?php use lukaszmakuch\SfContainerHaringoVal\InjectedValue; $valueSourceFromContainer = new InjectedValue("service_key");
Getting Symfony container Haringo value source extension
$ composer require lukaszmakuch/sf-container-haringo-val
Building extension
<?php use lukaszmakuch\SfContainerHaringoVal\InjectedValueExtensionFactory; use Symfony\Component\DependencyInjection\Container; /* @var $symfonyContainer Container */ $extensionFactory = new InjectedValueExtensionFactory(); $extension = $extensionFactory->buildWith($symfonyContainer);
Installing
For installation instruction check the main Haringo documentation.