Added vendor/ directory for Composer's installed files
This commit is contained in:
45
vendor/illuminate/contracts/Validation/Factory.php
vendored
Executable file
45
vendor/illuminate/contracts/Validation/Factory.php
vendored
Executable file
@ -0,0 +1,45 @@
|
||||
<?php namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface Factory {
|
||||
|
||||
/**
|
||||
* Create a new Validator instance.
|
||||
*
|
||||
* @param array $data
|
||||
* @param array $rules
|
||||
* @param array $messages
|
||||
* @param array $customAttributes
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
public function make(array $data, array $rules, array $messages = array(), array $customAttributes = array());
|
||||
|
||||
/**
|
||||
* Register a custom validator extension.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $extension
|
||||
* @param string $message
|
||||
* @return void
|
||||
*/
|
||||
public function extend($rule, $extension, $message = null);
|
||||
|
||||
/**
|
||||
* Register a custom implicit validator extension.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $extension
|
||||
* @param string $message
|
||||
* @return void
|
||||
*/
|
||||
public function extendImplicit($rule, $extension, $message = null);
|
||||
|
||||
/**
|
||||
* Register a custom implicit validator message replacer.
|
||||
*
|
||||
* @param string $rule
|
||||
* @param \Closure|string $replacer
|
||||
* @return void
|
||||
*/
|
||||
public function replacer($rule, $replacer);
|
||||
|
||||
}
|
5
vendor/illuminate/contracts/Validation/UnauthorizedException.php
vendored
Executable file
5
vendor/illuminate/contracts/Validation/UnauthorizedException.php
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
<?php namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class UnauthorizedException extends RuntimeException {}
|
12
vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Executable file
12
vendor/illuminate/contracts/Validation/ValidatesWhenResolved.php
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
<?php namespace Illuminate\Contracts\Validation;
|
||||
|
||||
interface ValidatesWhenResolved {
|
||||
|
||||
/**
|
||||
* Validate the given class instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function validate();
|
||||
|
||||
}
|
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;
|
||||
}
|
||||
|
||||
}
|
39
vendor/illuminate/contracts/Validation/Validator.php
vendored
Executable file
39
vendor/illuminate/contracts/Validation/Validator.php
vendored
Executable file
@ -0,0 +1,39 @@
|
||||
<?php namespace Illuminate\Contracts\Validation;
|
||||
|
||||
use Illuminate\Contracts\Support\MessageProvider;
|
||||
|
||||
interface Validator extends MessageProvider {
|
||||
|
||||
/**
|
||||
* Determine if the data fails the validation rules.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function fails();
|
||||
|
||||
/**
|
||||
* Get the failed validation rules.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function failed();
|
||||
|
||||
/**
|
||||
* Add conditions to a given field based on a Closure.
|
||||
*
|
||||
* @param string $attribute
|
||||
* @param string|array $rules
|
||||
* @param callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public function sometimes($attribute, $rules, callable $callback);
|
||||
|
||||
/**
|
||||
* After an after validation callback.
|
||||
*
|
||||
* @param callable|string $callback
|
||||
* @return $this
|
||||
*/
|
||||
public function after($callback);
|
||||
|
||||
}
|
Reference in New Issue
Block a user