Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Decoder.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class Decoder implements DecoderInterface
11 {
15  protected $urlBuilder;
16 
20  public function __construct(
22  ) {
23  $this->urlBuilder = $urlBuilder;
24  }
25 
32  public function decode($url)
33  {
34  $url = base64_decode(strtr($url, '-_,', '+/='));
35  return $this->urlBuilder->sessionUrlVar($url);
36  }
37 }
__construct(UrlInterface $urlBuilder)
Definition: Decoder.php:20