Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Encoder.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Url;
7 
8 class Encoder implements EncoderInterface
9 {
16  public function encode($url)
17  {
18  return strtr(base64_encode($url), '+/=', '-_,');
19  }
20 }