PHP code example of tarasovich / symfony-yaml-merge-loader
1. Go to this page and download the library: Download tarasovich/symfony-yaml-merge-loader 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/ */
tarasovich / symfony-yaml-merge-loader example snippets
// src/Kernel.php (your kernel class may be defined in a different class/path)
namespace App;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Tarasovich\YamlFileMergeLoader;
// ...
class Kernel extends BaseKernel
{
protected function getContainerLoader(ContainerInterface $container): LoaderInterface
{
/** @var ContainerBuilder $container */
return YamlFileMergeLoader::replaceOriginalLoader(
$container,
parent::getContainerLoader($container),
$this->getEnvironment()
);
}
}