Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.222.82.248
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
asset /
Delete
Unzip
Name
Size
Permission
Date
Action
Context
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
Exception
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
VersionStrategy
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
CHANGELOG.md
625
B
-rw-rw-r--
2022-03-18 16:00
LICENSE
1.04
KB
-rw-rw-r--
2022-03-18 16:00
Package.php
1.73
KB
-rw-rw-r--
2022-03-18 16:00
PackageInterface.php
672
B
-rw-rw-r--
2022-03-18 16:00
Packages.php
2.84
KB
-rw-rw-r--
2022-03-18 16:00
PathPackage.php
1.92
KB
-rw-rw-r--
2022-03-18 16:00
README.md
552
B
-rw-rw-r--
2022-03-18 16:00
UrlPackage.php
3.74
KB
-rw-rw-r--
2022-03-18 16:00
composer.json
1.11
KB
-rw-rw-r--
2022-03-18 16:00
Save
Rename
<?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\Asset; use Symfony\Component\Asset\Exception\InvalidArgumentException; use Symfony\Component\Asset\Exception\LogicException; /** * Helps manage asset URLs. * * @author Fabien Potencier <fabien@symfony.com> * @author Kris Wallsmith <kris@symfony.com> */ class Packages { private $defaultPackage; private $packages = []; /** * @param PackageInterface[] $packages Additional packages indexed by name */ public function __construct(PackageInterface $defaultPackage = null, iterable $packages = []) { $this->defaultPackage = $defaultPackage; foreach ($packages as $name => $package) { $this->addPackage($name, $package); } } public function setDefaultPackage(PackageInterface $defaultPackage) { $this->defaultPackage = $defaultPackage; } public function addPackage(string $name, PackageInterface $package) { $this->packages[$name] = $package; } /** * Returns an asset package. * * @param string $name The name of the package or null for the default package * * @return PackageInterface * * @throws InvalidArgumentException If there is no package by that name * @throws LogicException If no default package is defined */ public function getPackage(string $name = null) { if (null === $name) { if (null === $this->defaultPackage) { throw new LogicException('There is no default asset package, configure one first.'); } return $this->defaultPackage; } if (!isset($this->packages[$name])) { throw new InvalidArgumentException(sprintf('There is no "%s" asset package.', $name)); } return $this->packages[$name]; } /** * Gets the version to add to public URL. * * @param string $path A public path * @param string $packageName A package name * * @return string */ public function getVersion(string $path, string $packageName = null) { return $this->getPackage($packageName)->getVersion($path); } /** * Returns the public path. * * Absolute paths (i.e. http://...) are returned unmodified. * * @param string $path A public path * @param string $packageName The name of the asset package to use * * @return string A public path which takes into account the base path and URL path */ public function getUrl(string $path, string $packageName = null) { return $this->getPackage($packageName)->getUrl($path); } }