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.216.28
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 /
intl /
Util /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
GitRepository.php
2.74
KB
-rwxrwxr-x
2026-03-24 11:36
GzipStreamWrapper.php
2.17
KB
-rwxrwxr-x
2026-03-24 11:36
IcuVersion.php
2.79
KB
-rwxrwxr-x
2026-03-24 11:36
IntlTestHelper.php
3.54
KB
-rwxrwxr-x
2026-03-24 11:36
Version.php
2.28
KB
-rwxrwxr-x
2026-03-24 11:36
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\Intl\Util; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Intl\Exception\RuntimeException; /** * @internal */ final class GitRepository { private string $path; public function __construct(string $path) { $this->path = $path; $this->getUrl(); } public static function download(string $remote, string $targetDir): self { self::exec('which git', 'The command "git" is not installed.'); $filesystem = new Filesystem(); if (!$filesystem->exists($targetDir.'/.git')) { $filesystem->remove($targetDir); $filesystem->mkdir($targetDir); self::exec(\sprintf('git clone %s %s', escapeshellarg($remote), escapeshellarg($targetDir))); } return new self(realpath($targetDir)); } public function getPath(): string { return $this->path; } public function getUrl(): string { return $this->getLastLine($this->execInPath('git config --get remote.origin.url')); } public function getLastCommitHash(): string { return $this->getLastLine($this->execInPath('git log -1 --format="%H"')); } public function getLastAuthor(): string { return $this->getLastLine($this->execInPath('git log -1 --format="%an"')); } public function getLastAuthoredDate(): \DateTimeImmutable { return new \DateTimeImmutable($this->getLastLine($this->execInPath('git log -1 --format="%ai"'))); } public function getLastTag(?callable $filter = null): string { $tags = $this->execInPath('git tag -l --sort=v:refname'); if (null !== $filter) { $tags = array_filter($tags, $filter); } return $this->getLastLine($tags); } public function checkout(string $branch): void { $this->execInPath(\sprintf('git checkout %s', escapeshellarg($branch))); } private function execInPath(string $command): array { return self::exec(\sprintf('cd %s && %s', escapeshellarg($this->path), $command)); } private static function exec(string $command, ?string $customErrorMessage = null): array { exec(\sprintf('%s 2>&1', $command), $output, $result); if (0 !== $result) { throw new RuntimeException($customErrorMessage ?? \sprintf('The "%s" command failed.', $command)); } return $output; } private function getLastLine(array $output): string { return array_pop($output); } }