예제 #1
0
 /**
  * Constructor
  * @param mixed $messages
  * @param array $replacers
  */
 public function __construct($messages = null, $replacers = array())
 {
     $messages = is_null($messages) ? static::MESSAGE : $messages;
     parent::__construct($messages, $replacers, static::CODE);
 }
예제 #2
0
파일: Exception.php 프로젝트: owlgrin/hive
 /**
  * Constructor
  * @param MessageBag|string|null $messages
  * @param array  $replacers
  * @param number $code
  */
 public function __construct($messages = null, $replacers = array(), $code = self::CODE)
 {
     $message = Lang::get($this->fetchMessage($messages));
     $message = $this->replacePlaceholders($message, $replacers);
     parent::__construct($message, $code);
 }