Added vendor/ directory for Composer's installed files
This commit is contained in:
46
vendor/illuminate/contracts/Validation/ValidationException.php
vendored
Executable file
46
vendor/illuminate/contracts/Validation/ValidationException.php
vendored
Executable file
@ -0,0 +1,46 @@
|
||||
<?php namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use RuntimeException;
|
||||
use Illuminate\Contracts\Support\MessageProvider;
|
||||
|
||||
class ValidationException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* The message provider implementation.
|
||||
*
|
||||
* @var \Illuminate\Contracts\Support\MessageProvider
|
||||
*/
|
||||
protected $provider;
|
||||
|
||||
/**
|
||||
* Create a new validation exception instance.
|
||||
*
|
||||
* @param \Illuminate\Contracts\Support\MessageProvider $provider
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(MessageProvider $provider)
|
||||
{
|
||||
$this->provider = $provider;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation error message provider.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Support\MessageProvider
|
||||
*/
|
||||
public function errors()
|
||||
{
|
||||
return $this->provider->getMessageBag();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation error message provider.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Support\MessageProvider
|
||||
*/
|
||||
public function getMessageProvider()
|
||||
{
|
||||
return $this->provider;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user