Added vendor/ directory for Composer's installed files

This commit is contained in:
Ascendings
2015-08-30 12:33:20 -04:00
parent 45df179c49
commit b66a773ed8
1162 changed files with 112457 additions and 0 deletions

18
vendor/illuminate/support/Facades/App.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Foundation\Application
*/
class App extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'app';
}
}

18
vendor/illuminate/support/Facades/Artisan.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Foundation\Artisan
*/
class Artisan extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'Illuminate\Contracts\Console\Kernel';
}
}

19
vendor/illuminate/support/Facades/Auth.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Auth\AuthManager
* @see \Illuminate\Auth\Guard
*/
class Auth extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'auth';
}
}

18
vendor/illuminate/support/Facades/Blade.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\View\Compilers\BladeCompiler
*/
class Blade extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return static::$app['view']->getEngineResolver()->resolve('blade')->getCompiler();
}
}

18
vendor/illuminate/support/Facades/Bus.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Bus\Dispatcher
*/
class Bus extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'Illuminate\Contracts\Bus\Dispatcher';
}
}

19
vendor/illuminate/support/Facades/Cache.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Cache\CacheManager
* @see \Illuminate\Cache\Repository
*/
class Cache extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'cache';
}
}

18
vendor/illuminate/support/Facades/Config.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Config\Repository
*/
class Config extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'config';
}
}

41
vendor/illuminate/support/Facades/Cookie.php vendored Executable file
View File

@ -0,0 +1,41 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Cookie\CookieJar
*/
class Cookie extends Facade {
/**
* Determine if a cookie exists on the request.
*
* @param string $key
* @return bool
*/
public static function has($key)
{
return ! is_null(static::$app['request']->cookie($key, null));
}
/**
* Retrieve a cookie from the request.
*
* @param string $key
* @param mixed $default
* @return string
*/
public static function get($key = null, $default = null)
{
return static::$app['request']->cookie($key, $default);
}
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'cookie';
}
}

18
vendor/illuminate/support/Facades/Crypt.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Encryption\Encrypter
*/
class Crypt extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'encrypter';
}
}

19
vendor/illuminate/support/Facades/DB.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Database\DatabaseManager
* @see \Illuminate\Database\Connection
*/
class DB extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'db';
}
}

18
vendor/illuminate/support/Facades/Event.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Events\Dispatcher
*/
class Event extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'events';
}
}

226
vendor/illuminate/support/Facades/Facade.php vendored Executable file
View File

@ -0,0 +1,226 @@
<?php namespace Illuminate\Support\Facades;
use Mockery;
use RuntimeException;
use Mockery\MockInterface;
abstract class Facade {
/**
* The application instance being facaded.
*
* @var \Illuminate\Contracts\Foundation\Application
*/
protected static $app;
/**
* The resolved object instances.
*
* @var array
*/
protected static $resolvedInstance;
/**
* Hotswap the underlying instance behind the facade.
*
* @param mixed $instance
* @return void
*/
public static function swap($instance)
{
static::$resolvedInstance[static::getFacadeAccessor()] = $instance;
static::$app->instance(static::getFacadeAccessor(), $instance);
}
/**
* Initiate a mock expectation on the facade.
*
* @param mixed
* @return \Mockery\Expectation
*/
public static function shouldReceive()
{
$name = static::getFacadeAccessor();
if (static::isMock())
{
$mock = static::$resolvedInstance[$name];
}
else
{
$mock = static::createFreshMockInstance($name);
}
return call_user_func_array(array($mock, 'shouldReceive'), func_get_args());
}
/**
* Create a fresh mock instance for the given class.
*
* @param string $name
* @return \Mockery\Expectation
*/
protected static function createFreshMockInstance($name)
{
static::$resolvedInstance[$name] = $mock = static::createMockByName($name);
if (isset(static::$app))
{
static::$app->instance($name, $mock);
}
return $mock;
}
/**
* Create a fresh mock instance for the given class.
*
* @param string $name
* @return \Mockery\Expectation
*/
protected static function createMockByName($name)
{
$class = static::getMockableClass($name);
return $class ? Mockery::mock($class) : Mockery::mock();
}
/**
* Determines whether a mock is set as the instance of the facade.
*
* @return bool
*/
protected static function isMock()
{
$name = static::getFacadeAccessor();
return isset(static::$resolvedInstance[$name]) && static::$resolvedInstance[$name] instanceof MockInterface;
}
/**
* Get the mockable class for the bound instance.
*
* @return string
*/
protected static function getMockableClass()
{
if ($root = static::getFacadeRoot()) return get_class($root);
}
/**
* Get the root object behind the facade.
*
* @return mixed
*/
public static function getFacadeRoot()
{
return static::resolveFacadeInstance(static::getFacadeAccessor());
}
/**
* Get the registered name of the component.
*
* @return string
*
* @throws \RuntimeException
*/
protected static function getFacadeAccessor()
{
throw new RuntimeException("Facade does not implement getFacadeAccessor method.");
}
/**
* Resolve the facade root instance from the container.
*
* @param string $name
* @return mixed
*/
protected static function resolveFacadeInstance($name)
{
if (is_object($name)) return $name;
if (isset(static::$resolvedInstance[$name]))
{
return static::$resolvedInstance[$name];
}
return static::$resolvedInstance[$name] = static::$app[$name];
}
/**
* Clear a resolved facade instance.
*
* @param string $name
* @return void
*/
public static function clearResolvedInstance($name)
{
unset(static::$resolvedInstance[$name]);
}
/**
* Clear all of the resolved instances.
*
* @return void
*/
public static function clearResolvedInstances()
{
static::$resolvedInstance = array();
}
/**
* Get the application instance behind the facade.
*
* @return \Illuminate\Contracts\Foundation\Application
*/
public static function getFacadeApplication()
{
return static::$app;
}
/**
* Set the application instance.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public static function setFacadeApplication($app)
{
static::$app = $app;
}
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
switch (count($args))
{
case 0:
return $instance->$method();
case 1:
return $instance->$method($args[0]);
case 2:
return $instance->$method($args[0], $args[1]);
case 3:
return $instance->$method($args[0], $args[1], $args[2]);
case 4:
return $instance->$method($args[0], $args[1], $args[2], $args[3]);
default:
return call_user_func_array(array($instance, $method), $args);
}
}
}

18
vendor/illuminate/support/Facades/File.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Filesystem\Filesystem
*/
class File extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'files';
}
}

18
vendor/illuminate/support/Facades/Hash.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Hashing\BcryptHasher
*/
class Hash extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'hash';
}
}

32
vendor/illuminate/support/Facades/Input.php vendored Executable file
View File

@ -0,0 +1,32 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Http\Request
*/
class Input extends Facade {
/**
* Get an item from the input data.
*
* This method is used for all request verbs (GET, POST, PUT, and DELETE)
*
* @param string $key
* @param mixed $default
* @return mixed
*/
public static function get($key = null, $default = null)
{
return static::$app['request']->input($key, $default);
}
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'request';
}
}

18
vendor/illuminate/support/Facades/Lang.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Translation\Translator
*/
class Lang extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'translator';
}
}

18
vendor/illuminate/support/Facades/Log.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Log\Writer
*/
class Log extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'log';
}
}

18
vendor/illuminate/support/Facades/Mail.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Mail\Mailer
*/
class Mail extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'mailer';
}
}

View File

@ -0,0 +1,53 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Auth\Passwords\PasswordBroker
*/
class Password extends Facade {
/**
* Constant representing a successfully sent reminder.
*
* @var string
*/
const RESET_LINK_SENT = 'passwords.sent';
/**
* Constant representing a successfully reset password.
*
* @var string
*/
const PASSWORD_RESET = 'passwords.reset';
/**
* Constant representing the user not found response.
*
* @var string
*/
const INVALID_USER = 'passwords.user';
/**
* Constant representing an invalid password.
*
* @var string
*/
const INVALID_PASSWORD = 'passwords.password';
/**
* Constant representing an invalid token.
*
* @var string
*/
const INVALID_TOKEN = 'passwords.token';
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'auth.password';
}
}

19
vendor/illuminate/support/Facades/Queue.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Queue\QueueManager
* @see \Illuminate\Queue\Queue
*/
class Queue extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'queue';
}
}

View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Routing\Redirector
*/
class Redirect extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'redirect';
}
}

18
vendor/illuminate/support/Facades/Redis.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Redis\Database
*/
class Redis extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'redis';
}
}

18
vendor/illuminate/support/Facades/Request.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Http\Request
*/
class Request extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'request';
}
}

View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Contracts\Routing\ResponseFactory
*/
class Response extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'Illuminate\Contracts\Routing\ResponseFactory';
}
}

18
vendor/illuminate/support/Facades/Route.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Routing\Router
*/
class Route extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'router';
}
}

29
vendor/illuminate/support/Facades/Schema.php vendored Executable file
View File

@ -0,0 +1,29 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Database\Schema\Builder
*/
class Schema extends Facade {
/**
* Get a schema builder instance for a connection.
*
* @param string $name
* @return \Illuminate\Database\Schema\Builder
*/
public static function connection($name)
{
return static::$app['db']->connection($name)->getSchemaBuilder();
}
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return static::$app['db']->connection()->getSchemaBuilder();
}
}

19
vendor/illuminate/support/Facades/Session.php vendored Executable file
View File

@ -0,0 +1,19 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Session\SessionManager
* @see \Illuminate\Session\Store
*/
class Session extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'session';
}
}

18
vendor/illuminate/support/Facades/Storage.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Filesystem\FilesystemManager
*/
class Storage extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'filesystem';
}
}

18
vendor/illuminate/support/Facades/URL.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Routing\UrlGenerator
*/
class URL extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'url';
}
}

View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Validation\Factory
*/
class Validator extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'validator';
}
}

18
vendor/illuminate/support/Facades/View.php vendored Executable file
View File

@ -0,0 +1,18 @@
<?php namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\View\Factory
*/
class View extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'view';
}
}