public function __construct($logger = null, $directories = array('cache', 'log', 'library/Proxy', 'themes'), $basePath = null)
{
$this->mustBeWritable = $directories;
$this->filesystem = new Filesystem();
$this->logger = $logger;
$this->basePath = $basePath;
if (is_null($basePath)) {
$this->basePath = __DIR__ . '/../../../../';
}
}