Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Routing/Tests/Fixtures/CustomXmlFileLoader.php
Строк: 32
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SymfonyComponentRoutingTestsFixtures;

use 
SymfonyComponentRoutingLoaderXmlFileLoader;
use 
SymfonyComponentConfigUtilXmlUtils;

/**
 * XmlFileLoader with schema validation turned off.
 */
class CustomXmlFileLoader extends XmlFileLoader
{
    protected function 
loadFile($file)
    {
        return 
XmlUtils::loadFile($file, function () { return true; });
    }
}
Онлайн: 3
Реклама