%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/knplabs/gaufrette/src/Gaufrette/Adapter/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/knplabs/gaufrette/src/Gaufrette/Adapter/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));
    }
}

Zerion Mini Shell 1.0