Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Drupal\Core\Http\Exception; use Drupal\Core\Cache\CacheableDependencyInt..

Decoded Output download

<?php

namespace Drupal\Core\Http\Exception;

use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Cache\CacheableDependencyTrait;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;

/**
 * A cacheable UnauthorizedHttpException.
 */
class CacheableUnauthorizedHttpException extends UnauthorizedHttpException implements CacheableDependencyInterface {

  use CacheableDependencyTrait;

  /**
   * {@inheritdoc}
   */
  public function __construct(CacheableDependencyInterface $cacheability, $challenge, $message = '', ?\Exception $previous = NULL, $code = 0) {
    $this->setCacheability($cacheability);
    parent::__construct($challenge, $message, $previous, $code);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Drupal\Core\Http\Exception;

use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Cache\CacheableDependencyTrait;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;

/**
 * A cacheable UnauthorizedHttpException.
 */
class CacheableUnauthorizedHttpException extends UnauthorizedHttpException implements CacheableDependencyInterface {

  use CacheableDependencyTrait;

  /**
   * {@inheritdoc}
   */
  public function __construct(CacheableDependencyInterface $cacheability, $challenge, $message = '', ?\Exception $previous = NULL, $code = 0) {
    $this->setCacheability($cacheability);
    parent::__construct($challenge, $message, $previous, $code);
  }

}

Function Calls

None

Variables

None

Stats

MD5 6e4d62483d8ed1e3a2980e42b97688ca
Eval Count 0
Decode Time 93 ms