PHP code example of lukaszmakuch / sf-container-haringo-val

1. Go to this page and download the library: Download lukaszmakuch/sf-container-haringo-val library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lukaszmakuch / sf-container-haringo-val example snippets



use lukaszmakuch\SfContainerHaringoVal\InjectedValue;

$valueSourceFromContainer = new InjectedValue("service_key");



use lukaszmakuch\SfContainerHaringoVal\InjectedValueExtensionFactory;
use Symfony\Component\DependencyInjection\Container;

/* @var $symfonyContainer Container */
$extensionFactory = new InjectedValueExtensionFactory();
$extension = $extensionFactory->buildWith($symfonyContainer);