Spaces:
Runtime error
Runtime error
Download symfony/var-dumper/Caster/ImgStub.php from Alcazard/vibe-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/var-dumper/Caster/ImgStub.php
- Command line
-
hf download hf://spaces/Alcazard/vibe-coding-api/symfony/var-dumper/Caster/ImgStub.php
-
curl -L -o ImgStub.php https://huggingface.co/spaces/Alcazard/vibe-coding-api/resolve/main/symfony/var-dumper/Caster/ImgStub.php
637 Bytes
| /* | |
| * 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\VarDumper\Caster; | |
| /** | |
| * @author Grégoire Pineau <lyrixx@lyrixx.info> | |
| */ | |
| class ImgStub extends ConstStub | |
| { | |
| public function __construct(string $data, string $contentType, string $size = '') | |
| { | |
| $this->value = ''; | |
| $this->attr['img-data'] = $data; | |
| $this->attr['img-size'] = $size; | |
| $this->attr['content-type'] = $contentType; | |
| } | |
| } | |