for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LaravelYaml package.
*
* (c) Théo FIDRY <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fidry\LaravelYaml\DependencyInjection\Extension;
use Fidry\LaravelYaml\DependencyInjection\Builder\ContainerBuilder;
use Fidry\LaravelYaml\FileLoader\Yaml\YamlFileLoader;
use Illuminate\Support\Facades\App;
use Symfony\Component\Config\FileLocator;
/**
* @author Théo FIDRY <[email protected]>
final class DefaultExtension implements ExtensionInterface
{
* {@inheritdoc}
public function load(ContainerBuilder $container)
$rootDir = new FileLocator(resource_path('/providers'));
$loader = new YamlFileLoader($container, $rootDir);
$loader
->load('parameters.yml')
->load(sprintf('parameters_%s.yml', App::environment()))
->load('services.yml')
;
}