Пример #1
0
 public function exchangeArray($input)
 {
     if (!$this->allowed($input)) {
         $denied = $this->deniedList($input)->keys();
         $denied = implode(', ', $denied);
         throw new PolicyBagException("Input contains restricted items '{$denied}'");
     }
     parent::exchangeArray($input);
 }