for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Base64 File package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\Base64FileBundle\Model;
use Symfony\Component\HttpFoundation\File\File;
/**
* @author GeLo <[email protected]>
class Base64File extends File implements Base64FileInterface
{
use Base64FileTrait {
__construct as private constructTrait;
}
* @param string|resource $value
* @param bool $encoded
public function __construct($value, $encoded = true)
$this->constructTrait($value, $encoded);
$metadata = stream_get_meta_data($this->resource);
parent::__construct($metadata['uri']);