Removed unused container dependency from the FileManager class

This commit is contained in:
Franck Allimant
2014-01-31 15:55:21 +01:00
parent b7c076445c
commit f8e3553924
6 changed files with 48 additions and 65 deletions

View File

@@ -81,23 +81,6 @@ class FileManager
CONST FILE_TYPE_IMAGES = 'images';
CONST FILE_TYPE_DOCUMENTS = 'documents';
/** @var ContainerInterface Service Container */
protected $container = null;
/** @var Translator Service Translator */
protected $translator = null;
/**
* Constructor
*
* @param ContainerInterface $container Service container
*/
public function __construct(ContainerInterface $container)
{
$this->container = $container;
$this->translator = $this->container->get('thelia.translator');
}
/**
* Copy UploadedFile into the server storage directory
*