REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.70 KB
Close
/proc/thread-self/root/opt/alt/php55/usr/share/pear/Symfony/Component/Validator/Mapping/Loader/LoaderChain.php
Text
Base64
<?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 Symfony\Component\Validator\Mapping\Loader; use Symfony\Component\Validator\Exception\MappingException; use Symfony\Component\Validator\Mapping\ClassMetadata; /** * Calls multiple LoaderInterface instances in a chain * * This class accepts multiple instances of LoaderInterface to be passed to the * constructor. When loadClassMetadata() is called, the same method is called * in <em>all</em> of these loaders, regardless of whether any of them was * successful or not. * * @author Bernhard Schussek <bschussek@gmail.com> */ class LoaderChain implements LoaderInterface { protected $loaders; /** * Accepts a list of LoaderInterface instances * * @param LoaderInterface[] $loaders An array of LoaderInterface instances * * @throws MappingException If any of the loaders does not implement LoaderInterface */ public function __construct(array $loaders) { foreach ($loaders as $loader) { if (!$loader instanceof LoaderInterface) { throw new MappingException(sprintf('Class %s is expected to implement LoaderInterface', get_class($loader))); } } $this->loaders = $loaders; } /** * {@inheritDoc} */ public function loadClassMetadata(ClassMetadata $metadata) { $success = false; foreach ($this->loaders as $loader) { $success = $loader->loadClassMetadata($metadata) || $success; } return $success; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
schema
DIR
-
drwxr-xr-x
2024-03-03 22:54:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AbstractLoader.php
1.94 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AnnotationLoader.php
3.08 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FileLoader.php
1023 B
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FilesLoader.php
1.38 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoaderChain.php
1.70 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LoaderInterface.php
575 B
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
StaticMethodLoader.php
1.46 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlFileLoader.php
5.80 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlFilesLoader.php
646 B
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
YamlFileLoader.php
4.35 KB
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
YamlFilesLoader.php
649 B
lrw-r--r--
2019-12-18 11:24:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).