Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
vendor /
symfony /
asset /
Delete
Unzip
Name
Size
Permission
Date
Action
Context
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
Exception
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
VersionStrategy
[ DIR ]
drwxrwxr-x
2026-08-17 03:12
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
CHANGELOG.md
830
B
-rwxrwxr-x
2026-02-07 09:15
LICENSE
1.04
KB
-rwxrwxr-x
2026-02-07 09:15
Package.php
1.62
KB
-rwxrwxr-x
2026-02-07 09:15
PackageInterface.php
630
B
-rwxrwxr-x
2026-02-07 09:15
Packages.php
2.93
KB
-rwxrwxr-x
2026-02-07 09:15
PathPackage.php
1.88
KB
-rwxrwxr-x
2026-02-07 09:15
README.md
552
B
-rwxrwxr-x
2026-02-07 09:15
UrlPackage.php
3.68
KB
-rwxrwxr-x
2026-02-07 09:15
composer.json
987
B
-rwxrwxr-x
2026-02-07 09:15
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 ?PackageInterface $defaultPackage; private array $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); } } /** * @return void */ public function setDefaultPackage(PackageInterface $defaultPackage) { $this->defaultPackage = $defaultPackage; } /** * @return void */ public function addPackage(string $name, PackageInterface $package) { $this->packages[$name] = $package; } /** * Returns an asset package. * * @param string|null $name The name of the package or null for the default package * * @throws InvalidArgumentException If there is no package by that name * @throws LogicException If no default package is defined */ public function getPackage(?string $name = null): PackageInterface { 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|null $packageName A package name */ public function getVersion(string $path, ?string $packageName = null): string { 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|null $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): string { return $this->getPackage($packageName)->getUrl($path); } }