$15 GRAYBYTE WORDPRESS FILE MANAGER $91

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php54/usr/share/pear/Symfony/Component/Validator/Mapping/Loader/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/Validator/Mapping/Loader//AbstractLoader.php
<?php

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

namespace Symfony\Component\Validator\Mapping\Loader;

use Symfony\Component\Validator\Exception\MappingException;
use Symfony\Component\Validator\Constraint;

abstract class AbstractLoader implements LoaderInterface
{
    /**
     * Contains all known namespaces indexed by their prefix
     * @var array
     */
    protected $namespaces = array();

    /**
     * Adds a namespace alias.
     *
     * @param string $alias     The alias
     * @param string $namespace The PHP namespace
     */
    protected function addNamespaceAlias($alias, $namespace)
    {
        $this->namespaces[$alias] = $namespace;
    }

    /**
     * Creates a new constraint instance for the given constraint name.
     *
     * @param string $name   The constraint name. Either a constraint relative
     *                       to the default constraint namespace, or a fully
     *                       qualified class name
     * @param mixed $options The constraint options
     *
     * @return Constraint
     *
     * @throws MappingException If the namespace prefix is undefined
     */
    protected function newConstraint($name, $options)
    {
        if (strpos($name, '\\') !== false && class_exists($name)) {
            $className = (string) $name;
        } elseif (strpos($name, ':') !== false) {
            list($prefix, $className) = explode(':', $name, 2);

            if (!isset($this->namespaces[$prefix])) {
                throw new MappingException(sprintf('Undefined namespace prefix "%s"', $prefix));
            }

            $className = $this->namespaces[$prefix].$className;
        } else {
            $className = 'Symfony\\Component\\Validator\\Constraints\\'.$name;
        }

        return new $className($options);
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
schema
--
3 Mar 2024 10.54 PM
root / root
0755
AbstractLoader.php
1.943 KB
18 Dec 2019 11.22 AM
root / root
0644
AnnotationLoader.php
3.079 KB
18 Dec 2019 11.22 AM
root / root
0644
FileLoader.php
0.999 KB
18 Dec 2019 11.22 AM
root / root
0644
FilesLoader.php
1.382 KB
18 Dec 2019 11.22 AM
root / root
0644
LoaderChain.php
1.703 KB
18 Dec 2019 11.22 AM
root / root
0644
LoaderInterface.php
0.562 KB
18 Dec 2019 11.22 AM
root / root
0644
StaticMethodLoader.php
1.462 KB
18 Dec 2019 11.22 AM
root / root
0644
XmlFileLoader.php
5.798 KB
18 Dec 2019 11.22 AM
root / root
0644
XmlFilesLoader.php
0.631 KB
18 Dec 2019 11.22 AM
root / root
0644
YamlFileLoader.php
4.354 KB
18 Dec 2019 11.22 AM
root / root
0644
YamlFilesLoader.php
0.634 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF