?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/brizy/vendor/knplabs/gaufrette/src/Gaufrette/Adapter/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/brizy/vendor/knplabs/gaufrette/src/Gaufrette

?? Viewing: SafeLocal.php

<?php

namespace Gaufrette\Adapter;

/**
 * Safe local adapter that encodes key to avoid the use of the directories
 * structure.
 *
 * @author  Antoine Hérault <antoine.herault@gmail.com>
 */
class SafeLocal extends Local
{
    /**
     * {@inheritdoc}
     */
    public function computeKey($path)
    {
        return base64_decode(parent::computeKey($path));
    }

    /**
     * {@inheritdoc}
     */
    protected function computePath($key)
    {
        return parent::computePath(base64_encode($key));
    }
}


??

??