propelorm/Propel2

View on GitHub
src/Propel/Common/Config/Loader/LoaderResolver.php
A

No issues here. Congrats!

<?php

/**
 * This file is part of the Propel package.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @license MIT License
 */

namespace Propel\Common\Config\Loader;

use Symfony\Component\Config\Loader\LoaderResolver as BaseLoaderResolver;

/**
 * Class LoaderResolver
 *
 * @author Cristiano Cinotti
 */
class LoaderResolver extends BaseLoaderResolver
{
    /**
     * @param array $loaders
     */
    public function __construct(array $loaders = null)
    {
        if (null === $loaders) {
            $loaders = [
                new IniFileLoader(),
                new PhpFileLoader(),
                new XmlFileLoader(),
                new YamlFileLoader(),
                new JsonFileLoader(),
            ];
        }

        parent::__construct($loaders);
    }
}

Size

Lines of code
19