Blame view

common/components/debug/CustomVarDamp.php 413 Bytes
3c5edb9b   Mihail   edit createAssocA...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  <?php
  /**
   * Created by PhpStorm.
   * User: Cibermag
   * Date: 27.08.2015
   * Time: 16:47
   */
  namespace common\components\debug;
  use yii\helpers\BaseVarDumper;
  
  class CustomVarDamp extends BaseVarDumper  {
  
      public static function dumpAndDie($var, $depth = 10, $highlight = false)
      {
          echo "<pre>";
          echo static::dumpAsString($var, $depth, $highlight);
          echo "</pre>";
          die;
      }
  }