for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fenrizbes\UploadableBundle\File;
use Symfony\Component\HttpFoundation\File\File;
class UploadableFile extends File
{
/**
* Path to the project's root directory
*
* @var string
*/
protected $root_path;
* Web path to the file
protected $web_path;
public function __construct($root_path, $web_path)
$this->root_path = $root_path;
$this->web_path = $web_path;
parent::__construct($root_path . $web_path);
}
* @return string
public function getRootPath()
return $this->root_path;
public function getWebPath()
return $this->web_path;