Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
softmedya.net /
vendor /
symfony /
mime /
Delete
Unzip
Name
Size
Permission
Date
Action
Crypto
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
DependencyInjection
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Encoder
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Exception
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Header
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
HtmlToTextConverter
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Part
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Resources
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Test
[ DIR ]
drwxr-xr-x
2025-09-16 08:38
Address.php
4.44
KB
-rw-r--r--
2025-09-16 08:38
BodyRendererInterface.php
418
B
-rw-r--r--
2025-09-16 08:38
CHANGELOG.md
1.12
KB
-rw-r--r--
2025-09-16 08:38
CharacterStream.php
9.13
KB
-rw-r--r--
2025-09-16 08:38
DraftEmail.php
1.1
KB
-rw-r--r--
2025-09-16 08:38
Email.php
14.98
KB
-rw-r--r--
2025-09-16 08:38
FileBinaryMimeTypeGuesser.php
2.37
KB
-rw-r--r--
2025-09-16 08:38
FileinfoMimeTypeGuesser.php
1.96
KB
-rw-r--r--
2025-09-16 08:38
LICENSE
1.04
KB
-rw-r--r--
2025-09-16 08:38
Message.php
4.33
KB
-rw-r--r--
2025-09-16 08:38
MessageConverter.php
5.04
KB
-rw-r--r--
2025-09-16 08:38
MimeTypeGuesserInterface.php
826
B
-rw-r--r--
2025-09-16 08:38
MimeTypes.php
191.01
KB
-rw-r--r--
2025-09-16 08:38
MimeTypesInterface.php
777
B
-rw-r--r--
2025-09-16 08:38
README.md
459
B
-rw-r--r--
2025-09-16 08:38
RawMessage.php
2.38
KB
-rw-r--r--
2025-09-16 08:38
composer.json
1.42
KB
-rw-r--r--
2025-09-16 08:38
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\Mime; use Symfony\Component\Mime\Exception\LogicException; /** * @author Fabien Potencier <fabien@symfony.com> */ class RawMessage { private bool $isGeneratorClosed; /** * @param iterable<string>|string|resource $message */ public function __construct( private $message, ) { } public function __destruct() { if (\is_resource($this->message)) { fclose($this->message); } } public function toString(): string { if (\is_string($this->message)) { return $this->message; } if (\is_resource($this->message)) { return stream_get_contents($this->message, -1, 0); } $message = ''; foreach ($this->message as $chunk) { $message .= $chunk; } return $this->message = $message; } public function toIterable(): iterable { if ($this->isGeneratorClosed ?? false) { throw new LogicException('Unable to send the email as its generator is already closed.'); } if (\is_string($this->message)) { yield $this->message; return; } if (\is_resource($this->message)) { rewind($this->message); while ($line = fgets($this->message)) { yield $line; } return; } if ($this->message instanceof \Generator) { $message = fopen('php://temp', 'w+'); foreach ($this->message as $chunk) { fwrite($message, $chunk); yield $chunk; } $this->isGeneratorClosed = !$this->message->valid(); $this->message = $message; return; } foreach ($this->message as $chunk) { yield $chunk; } } /** * @throws LogicException if the message is not valid */ public function ensureValidity(): void { } public function __serialize(): array { return [$this->toString()]; } public function __unserialize(array $data): void { [$this->message] = $data; } }