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 Illuminate\Support\Facades\App;
/**
* @author Théo FIDRY <[email protected]>
final class DefaultExtension extends AbstractExtension
{
* {@inheritdoc}
public function load(ContainerBuilder $container)
$loader = parent::load($container);
$this
->loadResourceIfExist($loader, 'parameters.yml')
->loadResourceIfExist($loader, 'services.yml')
->loadResourceIfExist($loader, sprintf('parameters_%s.yml', App::environment()))
;
}