/** * Get storage path * * @param string $path Path to use OPTIONAL * * @return string */ public function getStoragePath($path = null) { if (self::STORAGE_S3 == $this->getStorageType()) { $result = $this->generateS3Path($path); } else { $result = parent::getStoragePath($path); } return $result; }