for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gaufrette\Adapter\Local;
/**
* Safe local adapter that encodes key to avoid the use of the directories
* structure.
*
* @author Antoine Hérault <[email protected]>
*/
class SafeLocal extends Local
{
* {@inheritdoc}
public function computeKey($path)
return base64_decode(parent::computeKey($path));
}
protected function computePath($key)
return parent::computePath(base64_encode($key));