/_ide_helper.php
PHP | 10400 lines | 2790 code | 915 blank | 6695 comment | 0 complexity | e091f88c5cd43cdc0df13049998f2da4 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /**
- * An helper file for Laravel 4, to provide autocomplete information to your IDE
- * Generated with https://github.com/barryvdh/laravel-ide-helper
- *
- * @author Barry vd. Heuvel <barryvdh@gmail.com>
- */
- namespace {
- die('Only to be used as an helper for your IDE');
- }
- namespace {
- class App extends Illuminate\Support\Facades\App{
- /**
- * Create a new Illuminate application instance.
- *
- * @param \Illuminate\Http\Request $request
- * @return self
- * @static
- */
- public static function __construct($request = null){
- \Illuminate\Foundation\Application::__construct($request);
- }
- /**
- * Set the application request for the console environment.
- *
- * @return void
- * @static
- */
- public static function setRequestForConsoleEnvironment(){
- \Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
- }
- /**
- * Redirect the request if it has a trailing slash.
- *
- * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
- * @static
- */
- public static function redirectIfTrailingSlash(){
- return \Illuminate\Foundation\Application::redirectIfTrailingSlash();
- }
- /**
- * Bind the installation paths to the application.
- *
- * @param array $paths
- * @return void
- * @static
- */
- public static function bindInstallPaths($paths){
- \Illuminate\Foundation\Application::bindInstallPaths($paths);
- }
- /**
- * Get the application bootstrap file.
- *
- * @return string
- * @static
- */
- public static function getBootstrapFile(){
- return \Illuminate\Foundation\Application::getBootstrapFile();
- }
- /**
- * Start the exception handling for the request.
- *
- * @return void
- * @static
- */
- public static function startExceptionHandling(){
- \Illuminate\Foundation\Application::startExceptionHandling();
- }
- /**
- * Get the current application environment.
- *
- * @return string
- * @static
- */
- public static function environment(){
- return \Illuminate\Foundation\Application::environment();
- }
- /**
- * Detect the application's current environment.
- *
- * @param array|string $environments
- * @return string
- * @static
- */
- public static function detectEnvironment($environments){
- return \Illuminate\Foundation\Application::detectEnvironment($environments);
- }
- /**
- * Determine if we are running in the console.
- *
- * @return bool
- * @static
- */
- public static function runningInConsole(){
- return \Illuminate\Foundation\Application::runningInConsole();
- }
- /**
- * Determine if we are running unit tests.
- *
- * @return bool
- * @static
- */
- public static function runningUnitTests(){
- return \Illuminate\Foundation\Application::runningUnitTests();
- }
- /**
- * Register a service provider with the application.
- *
- * @param \Illuminate\Support\ServiceProvider|string $provider
- * @param array $options
- * @return void
- * @static
- */
- public static function register($provider, $options = array()){
- \Illuminate\Foundation\Application::register($provider, $options);
- }
- /**
- * Load and boot all of the remaining deferred providers.
- *
- * @return void
- * @static
- */
- public static function loadDeferredProviders(){
- \Illuminate\Foundation\Application::loadDeferredProviders();
- }
- /**
- * Resolve the given type from the container.
- *
- * (Overriding Container::make)
- *
- * @param string $abstract
- * @param array $parameters
- * @return mixed
- * @static
- */
- public static function make($abstract, $parameters = array()){
- return \Illuminate\Foundation\Application::make($abstract, $parameters);
- }
- /**
- * Register a "before" application filter.
- *
- * @param Closure|string $callback
- * @return void
- * @static
- */
- public static function before($callback){
- \Illuminate\Foundation\Application::before($callback);
- }
- /**
- * Register an "after" application filter.
- *
- * @param Closure|string $callback
- * @return void
- * @static
- */
- public static function after($callback){
- \Illuminate\Foundation\Application::after($callback);
- }
- /**
- * Register a "close" application filter.
- *
- * @param Closure|string $callback
- * @return void
- * @static
- */
- public static function close($callback){
- \Illuminate\Foundation\Application::close($callback);
- }
- /**
- * Register a "finish" application filter.
- *
- * @param Closure|string $callback
- * @return void
- * @static
- */
- public static function finish($callback){
- \Illuminate\Foundation\Application::finish($callback);
- }
- /**
- * Register a "shutdown" callback.
- *
- * @param callable $callback
- * @return void
- * @static
- */
- public static function shutdown($callback = null){
- \Illuminate\Foundation\Application::shutdown($callback);
- }
- /**
- * Handles the given request and delivers the response.
- *
- * @return void
- * @static
- */
- public static function run(){
- \Illuminate\Foundation\Application::run();
- }
- /**
- * Handle the given request and get the response.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Symfony\Component\HttpFoundation\Response
- * @static
- */
- public static function dispatch($request){
- return \Illuminate\Foundation\Application::dispatch($request);
- }
- /**
- * Handle the given request and get the response.
- *
- * Provides compatibility with BrowserKit functional testing.
- *
- * @implements HttpKernelInterface::handle
- * @param \Illuminate\Http\Request $request
- * @param int $type
- * @param bool $catch
- * @return \Symfony\Component\HttpFoundation\Response
- * @static
- */
- public static function handle($request, $type = 1, $catch = true){
- return \Illuminate\Foundation\Application::handle($request, $type, $catch);
- }
- /**
- * Boot the application's service providers.
- *
- * @return void
- * @static
- */
- public static function boot(){
- \Illuminate\Foundation\Application::boot();
- }
- /**
- * Register a new boot listener.
- *
- * @param mixed $callback
- * @return void
- * @static
- */
- public static function booting($callback){
- \Illuminate\Foundation\Application::booting($callback);
- }
- /**
- * Register a new "booted" listener.
- *
- * @param mixed $callback
- * @return void
- * @static
- */
- public static function booted($callback){
- \Illuminate\Foundation\Application::booted($callback);
- }
- /**
- * Prepare the request by injecting any services.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Request
- * @static
- */
- public static function prepareRequest($request){
- return \Illuminate\Foundation\Application::prepareRequest($request);
- }
- /**
- * Prepare the given value as a Response object.
- *
- * @param mixed $value
- * @return \Symfony\Component\HttpFoundation\Response
- * @static
- */
- public static function prepareResponse($value){
- return \Illuminate\Foundation\Application::prepareResponse($value);
- }
- /**
- * Determine if the application is currently down for maintenance.
- *
- * @return bool
- * @static
- */
- public static function isDownForMaintenance(){
- return \Illuminate\Foundation\Application::isDownForMaintenance();
- }
- /**
- * Register a maintenance mode event listener.
- *
- * @param \Closure $callback
- * @return void
- * @static
- */
- public static function down($callback){
- \Illuminate\Foundation\Application::down($callback);
- }
- /**
- * Throw an HttpException with the given data.
- *
- * @param int $code
- * @param string $message
- * @param array $headers
- * @return void
- * @static
- */
- public static function abort($code, $message = '', $headers = array()){
- \Illuminate\Foundation\Application::abort($code, $message, $headers);
- }
- /**
- * Register a 404 error handler.
- *
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function missing($callback){
- \Illuminate\Foundation\Application::missing($callback);
- }
- /**
- * Register an application error handler.
- *
- * @param \Closure $callback
- * @return void
- * @static
- */
- public static function error($callback){
- \Illuminate\Foundation\Application::error($callback);
- }
- /**
- * Register an error handler at the bottom of the stack.
- *
- * @param \Closure $callback
- * @return void
- * @static
- */
- public static function pushError($callback){
- \Illuminate\Foundation\Application::pushError($callback);
- }
- /**
- * Register an error handler for fatal errors.
- *
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function fatal($callback){
- \Illuminate\Foundation\Application::fatal($callback);
- }
- /**
- * Get the configuration loader instance.
- *
- * @return \Illuminate\Config\LoaderInterface
- * @static
- */
- public static function getConfigLoader(){
- return \Illuminate\Foundation\Application::getConfigLoader();
- }
- /**
- * Get the service provider repository instance.
- *
- * @return \Illuminate\Foundation\ProviderRepository
- * @static
- */
- public static function getProviderRepository(){
- return \Illuminate\Foundation\Application::getProviderRepository();
- }
- /**
- * Set the current application locale.
- *
- * @param string $locale
- * @return void
- * @static
- */
- public static function setLocale($locale){
- \Illuminate\Foundation\Application::setLocale($locale);
- }
- /**
- * Get the service providers that have been loaded.
- *
- * @return array
- * @static
- */
- public static function getLoadedProviders(){
- return \Illuminate\Foundation\Application::getLoadedProviders();
- }
- /**
- * Set the application's deferred services.
- *
- * @param array $services
- * @return void
- * @static
- */
- public static function setDeferredServices($services){
- \Illuminate\Foundation\Application::setDeferredServices($services);
- }
- /**
- * Dynamically access application services.
- *
- * @param string $key
- * @return mixed
- * @static
- */
- public static function __get($key){
- return \Illuminate\Foundation\Application::__get($key);
- }
- /**
- * Dynamically set application services.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function __set($key, $value){
- \Illuminate\Foundation\Application::__set($key, $value);
- }
- /**
- * Determine if the given abstract type has been bound.
- *
- * @param string $abstract
- * @return bool
- * @static
- */
- public static function bound($abstract){
- return \Illuminate\Container\Container::bound($abstract);
- }
- /**
- * Register a binding with the container.
- *
- * @param string $abstract
- * @param Closure|string|null $concrete
- * @param bool $shared
- * @return void
- * @static
- */
- public static function bind($abstract, $concrete = null, $shared = false){
- \Illuminate\Container\Container::bind($abstract, $concrete, $shared);
- }
- /**
- * Register a binding if it hasn't already been registered.
- *
- * @param string $abstract
- * @param Closure|string|null $concrete
- * @param bool $shared
- * @return bool
- * @static
- */
- public static function bindIf($abstract, $concrete = null, $shared = false){
- return \Illuminate\Container\Container::bindIf($abstract, $concrete, $shared);
- }
- /**
- * Register a shared binding in the container.
- *
- * @param string $abstract
- * @param Closure|string|null $concrete
- * @return void
- * @static
- */
- public static function singleton($abstract, $concrete = null){
- \Illuminate\Container\Container::singleton($abstract, $concrete);
- }
- /**
- * Wrap a Closure such that it is shared.
- *
- * @param Closure $closure
- * @return Closure
- * @static
- */
- public static function share($closure){
- return \Illuminate\Container\Container::share($closure);
- }
- /**
- * "Extend" an abstract type in the container.
- *
- * @param string $abstract
- * @param Closure $closure
- * @return void
- * @static
- */
- public static function extend($abstract, $closure){
- \Illuminate\Container\Container::extend($abstract, $closure);
- }
- /**
- * Register an existing instance as shared in the container.
- *
- * @param string $abstract
- * @param mixed $instance
- * @return void
- * @static
- */
- public static function instance($abstract, $instance){
- \Illuminate\Container\Container::instance($abstract, $instance);
- }
- /**
- * Alias a type to a shorter name.
- *
- * @param string $abstract
- * @param string $alias
- * @return void
- * @static
- */
- public static function alias($abstract, $alias){
- \Illuminate\Container\Container::alias($abstract, $alias);
- }
- /**
- * Instantiate a concrete instance of the given type.
- *
- * @param string $concrete
- * @param array $parameters
- * @return mixed
- * @static
- */
- public static function build($concrete, $parameters = array()){
- return \Illuminate\Container\Container::build($concrete, $parameters);
- }
- /**
- * Register a new resolving callback.
- *
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function resolving($callback){
- \Illuminate\Container\Container::resolving($callback);
- }
- /**
- * Get the container's bindings.
- *
- * @return array
- * @static
- */
- public static function getBindings(){
- return \Illuminate\Container\Container::getBindings();
- }
- /**
- * Determine if a given offset exists.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function offsetExists($key){
- return \Illuminate\Container\Container::offsetExists($key);
- }
- /**
- * Get the value at a given offset.
- *
- * @param string $key
- * @return mixed
- * @static
- */
- public static function offsetGet($key){
- return \Illuminate\Container\Container::offsetGet($key);
- }
- /**
- * Set the value at a given offset.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function offsetSet($key, $value){
- \Illuminate\Container\Container::offsetSet($key, $value);
- }
- /**
- * Unset the value at a given offset.
- *
- * @param string $key
- * @return void
- * @static
- */
- public static function offsetUnset($key){
- \Illuminate\Container\Container::offsetUnset($key);
- }
- }
- }
- namespace {
- class Artisan extends Illuminate\Support\Facades\Artisan{
- /**
- * Start a new Console application.
- *
- * @param \Illuminate\Foundation\Application $app
- * @return \Illuminate\Console\Application
- * @static
- */
- public static function start($app){
- return \Illuminate\Console\Application::start($app);
- }
- /**
- * Add a command to the console.
- *
- * @param \Symfony\Component\Console\Command\Command $command
- * @return \Symfony\Component\Console\Command\Command
- * @static
- */
- public static function add($command){
- return \Illuminate\Console\Application::add($command);
- }
- /**
- * Add a command, resolving through the application.
- *
- * @param string $command
- * @return void
- * @static
- */
- public static function resolve($command){
- \Illuminate\Console\Application::resolve($command);
- }
- /**
- * Resolve an array of commands through the application.
- *
- * @param array|dynamic $commands
- * @return void
- * @static
- */
- public static function resolveCommands($commands){
- \Illuminate\Console\Application::resolveCommands($commands);
- }
- /**
- * Render the given exception.
- *
- * @param Exception $e
- * @param \Symfony\Component\Console\Output\OutputInterface $output
- * @return void
- * @static
- */
- public static function renderException($e, $output){
- \Illuminate\Console\Application::renderException($e, $output);
- }
- /**
- * Set the exception handler instance.
- *
- * @param \Illuminate\Exception\Handler $handler
- * @return void
- * @static
- */
- public static function setExceptionHandler($handler){
- \Illuminate\Console\Application::setExceptionHandler($handler);
- }
- /**
- * Set the Laravel application instance.
- *
- * @param \Illuminate\Foundation\Application $laravel
- * @return void
- * @static
- */
- public static function setLaravel($laravel){
- \Illuminate\Console\Application::setLaravel($laravel);
- }
- /**
- * Constructor.
- *
- * @param string $name The name of the application
- * @param string $version The version of the application
- * @api
- * @static
- */
- public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
- \Symfony\Component\Console\Application::__construct($name, $version);
- }
- /**
- *
- *
- * @static
- */
- public static function setDispatcher($dispatcher){
- \Symfony\Component\Console\Application::setDispatcher($dispatcher);
- }
- /**
- * Runs the current application.
- *
- * @param InputInterface $input An Input instance
- * @param OutputInterface $output An Output instance
- * @return integer 0 if everything went fine, or an error code
- * @throws \Exception When doRun returns Exception
- * @api
- * @static
- */
- public static function run($input = null, $output = null){
- return \Symfony\Component\Console\Application::run($input, $output);
- }
- /**
- * Runs the current application.
- *
- * @param InputInterface $input An Input instance
- * @param OutputInterface $output An Output instance
- * @return integer 0 if everything went fine, or an error code
- * @static
- */
- public static function doRun($input, $output){
- return \Symfony\Component\Console\Application::doRun($input, $output);
- }
- /**
- * Set a helper set to be used with the command.
- *
- * @param HelperSet $helperSet The helper set
- * @api
- * @static
- */
- public static function setHelperSet($helperSet){
- \Symfony\Component\Console\Application::setHelperSet($helperSet);
- }
- /**
- * Get the helper set associated with the command.
- *
- * @return HelperSet The HelperSet instance associated with this command
- * @api
- * @static
- */
- public static function getHelperSet(){
- return \Symfony\Component\Console\Application::getHelperSet();
- }
- /**
- * Set an input definition set to be used with this application
- *
- * @param InputDefinition $definition The input definition
- * @api
- * @static
- */
- public static function setDefinition($definition){
- \Symfony\Component\Console\Application::setDefinition($definition);
- }
- /**
- * Gets the InputDefinition related to this Application.
- *
- * @return InputDefinition The InputDefinition instance
- * @static
- */
- public static function getDefinition(){
- return \Symfony\Component\Console\Application::getDefinition();
- }
- /**
- * Gets the help message.
- *
- * @return string A help message.
- * @static
- */
- public static function getHelp(){
- return \Symfony\Component\Console\Application::getHelp();
- }
- /**
- * Sets whether to catch exceptions or not during commands execution.
- *
- * @param Boolean $boolean Whether to catch exceptions or not during commands execution
- * @api
- * @static
- */
- public static function setCatchExceptions($boolean){
- \Symfony\Component\Console\Application::setCatchExceptions($boolean);
- }
- /**
- * Sets whether to automatically exit after a command execution or not.
- *
- * @param Boolean $boolean Whether to automatically exit after a command execution or not
- * @api
- * @static
- */
- public static function setAutoExit($boolean){
- \Symfony\Component\Console\Application::setAutoExit($boolean);
- }
- /**
- * Gets the name of the application.
- *
- * @return string The application name
- * @api
- * @static
- */
- public static function getName(){
- return \Symfony\Component\Console\Application::getName();
- }
- /**
- * Sets the application name.
- *
- * @param string $name The application name
- * @api
- * @static
- */
- public static function setName($name){
- \Symfony\Component\Console\Application::setName($name);
- }
- /**
- * Gets the application version.
- *
- * @return string The application version
- * @api
- * @static
- */
- public static function getVersion(){
- return \Symfony\Component\Console\Application::getVersion();
- }
- /**
- * Sets the application version.
- *
- * @param string $version The application version
- * @api
- * @static
- */
- public static function setVersion($version){
- \Symfony\Component\Console\Application::setVersion($version);
- }
- /**
- * Returns the long version of the application.
- *
- * @return string The long application version
- * @api
- * @static
- */
- public static function getLongVersion(){
- return \Symfony\Component\Console\Application::getLongVersion();
- }
- /**
- * Registers a new command.
- *
- * @param string $name The command name
- * @return Command The newly created command
- * @api
- * @static
- */
- public static function register($name){
- return \Symfony\Component\Console\Application::register($name);
- }
- /**
- * Adds an array of command objects.
- *
- * @param Command[] $commands An array of commands
- * @api
- * @static
- */
- public static function addCommands($commands){
- \Symfony\Component\Console\Application::addCommands($commands);
- }
- /**
- * Returns a registered command by name or alias.
- *
- * @param string $name The command name or alias
- * @return Command A Command object
- * @throws \InvalidArgumentException When command name given does not exist
- * @api
- * @static
- */
- public static function get($name){
- return \Symfony\Component\Console\Application::get($name);
- }
- /**
- * Returns true if the command exists, false otherwise.
- *
- * @param string $name The command name or alias
- * @return Boolean true if the command exists, false otherwise
- * @api
- * @static
- */
- public static function has($name){
- return \Symfony\Component\Console\Application::has($name);
- }
- /**
- * Returns an array of all unique namespaces used by currently registered commands.
- *
- * It does not returns the global namespace which always exists.
- *
- * @return array An array of namespaces
- * @static
- */
- public static function getNamespaces(){
- return \Symfony\Component\Console\Application::getNamespaces();
- }
- /**
- * Finds a registered namespace by a name or an abbreviation.
- *
- * @param string $namespace A namespace or abbreviation to search for
- * @return string A registered namespace
- * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
- * @static
- */
- public static function findNamespace($namespace){
- return \Symfony\Component\Console\Application::findNamespace($namespace);
- }
- /**
- * Finds a command by name or alias.
- *
- * Contrary to get, this command tries to find the best
- * match if you give it an abbreviation of a name or alias.
- *
- * @param string $name A command name or a command alias
- * @return Command A Command instance
- * @throws \InvalidArgumentException When command name is incorrect or ambiguous
- * @api
- * @static
- */
- public static function find($name){
- return \Symfony\Component\Console\Application::find($name);
- }
- /**
- * Gets the commands (registered in the given namespace if provided).
- *
- * The array keys are the full names and the values the command instances.
- *
- * @param string $namespace A namespace name
- * @return Command[] An array of Command instances
- * @api
- * @static
- */
- public static function all($namespace = null){
- return \Symfony\Component\Console\Application::all($namespace);
- }
- /**
- * Returns an array of possible abbreviations given a set of names.
- *
- * @param array $names An array of names
- * @return array An array of abbreviations
- * @static
- */
- public static function getAbbreviations($names){
- return \Symfony\Component\Console\Application::getAbbreviations($names);
- }
- /**
- * Returns a text representation of the Application.
- *
- * @param string $namespace An optional namespace name
- * @param boolean $raw Whether to return raw command list
- * @return string A string representing the Application
- * @deprecated Deprecated since version 2.3, to be removed in 3.0.
- * @static
- */
- public static function asText($namespace = null, $raw = false){
- return \Symfony\Component\Console\Application::asText($namespace, $raw);
- }
- /**
- * Returns an XML representation of the Application.
- *
- * @param string $namespace An optional namespace name
- * @param Boolean $asDom Whether to return a DOM or an XML string
- * @return string|\DOMDocument An XML string representing the Application
- * @deprecated Deprecated since version 2.3, to be removed in 3.0.
- * @static
- */
- public static function asXml($namespace = null, $asDom = false){
- return \Symfony\Component\Console\Application::asXml($namespace, $asDom);
- }
- /**
- * Tries to figure out the terminal dimensions based on the current environment
- *
- * @return array Array containing width and height
- * @static
- */
- public static function getTerminalDimensions(){
- return \Symfony\Component\Console\Application::getTerminalDimensions();
- }
- /**
- * Returns the namespace part of the command name.
- *
- * This method is not part of public API and should not be used directly.
- *
- * @param string $name The full name of the command
- * @param string $limit The maximum number of parts of the namespace
- * @return string The namespace of the command
- * @static
- */
- public static function extractNamespace($name, $limit = null){
- return \Symfony\Component\Console\Application::extractNamespace($name, $limit);
- }
- }
- }
- namespace {
- class Auth extends Illuminate\Support\Facades\Auth{
- /**
- * Create an instance of the Eloquent driver.
- *
- * @return \Illuminate\Auth\Guard
- * @static
- */
- public static function createEloquentDriver(){
- return \Illuminate\Auth\AuthManager::createEloquentDriver();
- }
- /**
- * Create a new manager instance.
- *
- * @param \Illuminate\Foundation\Application $app
- * @return self
- * @static
- */
- public static function __construct($app){
- \Illuminate\Support\Manager::__construct($app);
- }
- /**
- * Get a driver instance.
- *
- * @param string $driver
- * @return mixed
- * @static
- */
- public static function driver($driver = null){
- return \Illuminate\Support\Manager::driver($driver);
- }
- /**
- * Register a custom driver creator Closure.
- *
- * @param string $driver
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function extend($driver, $callback){
- \Illuminate\Support\Manager::extend($driver, $callback);
- }
- /**
- * Get all of the created "drivers".
- *
- * @return array
- * @static
- */
- public static function getDrivers(){
- return \Illuminate\Support\Manager::getDrivers();
- }
- /**
- * Dynamically call the default driver instance.
- *
- * @param string $method
- * @param array $parameters
- * @return mixed
- * @static
- */
- public static function __call($method, $parameters){
- return \Illuminate\Support\Manager::__call($method, $parameters);
- }
- /**
- * Determine if the current user is authenticated.
- *
- * @return bool
- * @static
- */
- public static function check(){
- return \Illuminate\Auth\Guard::check();
- }
- /**
- * Determine if the current user is a guest.
- *
- * @return bool
- * @static
- */
- public static function guest(){
- return \Illuminate\Auth\Guard::guest();
- }
- /**
- * Get the currently authenticated user.
- *
- * @return \Illuminate\Auth\UserInterface|null
- * @static
- */
- public static function user(){
- return \Illuminate\Auth\Guard::user();
- }
- /**
- * Log a user into the application without sessions or cookies.
- *
- * @param array $credentials
- * @return bool
- * @static
- */
- public static function once($credentials = array()){
- return \Illuminate\Auth\Guard::once($credentials);
- }
- /**
- * Validate a user's credentials.
- *
- * @param array $credentials
- * @return bool
- * @static
- */
- public static function validate($credentials = array()){
- return \Illuminate\Auth\Guard::validate($credentials);
- }
- /**
- * Attempt to authenticate using HTTP Basic Auth.
- *
- * @param string $field
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @return \Symfony\Component\HttpFoundation\Response|null
- * @static
- */
- public static function basic($field = 'email', $request = null){
- return \Illuminate\Auth\Guard::basic($field, $request);
- }
- /**
- * Perform a stateless HTTP Basic login attempt.
- *
- * @param string $field
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @return \Symfony\Component\HttpFoundation\Response|null
- * @static
- */
- public static function onceBasic($field = 'email', $request = null){
- return \Illuminate\Auth\Guard::onceBasic($field, $request);
- }
- /**
- * Attempt to authenticate a user using the given credentials.
- *
- * @param array $credentials
- * @param bool $remember
- * @param bool $login
- * @return bool
- * @static
- */
- public static function attempt($credentials = array(), $remember = false, $login = true){
- return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
- }
- /**
- * Register an authentication attempt event listener.
- *
- * @param mixed $callback
- * @return void
- * @static
- */
- public static function attempting($callback){
- \Illuminate\Auth\Guard::attempting($callback);
- }
- /**
- * Log a user into the application.
- *
- * @param \Illuminate\Auth\UserInterface $user
- * @param bool $remember
- * @return void
- * @static
- */
- public static function login($user, $remember = false){
- \Illuminate\Auth\Guard::login($user, $remember);
- }
- /**
- * Log the given user ID into the application.
- *
- * @param mixed $id
- * @param bool $remember
- * @return \Illuminate\Auth\UserInterface
- * @static
- */
- public static function loginUsingId($id, $remember = false){
- return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
- }
- /**
- * Log the user out of the application.
- *
- * @return void
- * @static
- */
- public static function logout(){
- \Illuminate\Auth\Guard::logout();
- }
- /**
- * Get the cookies queued by the guard.
- *
- * @return array
- * @static
- */
- public static function getQueuedCookies(){
- return \Illuminate\Auth\Guard::getQueuedCookies();
- }
- /**
- * Get the cookie creator instance used by the guard.
- *
- * @return \Illuminate\Cookie\CookieJar
- * @static
- */
- public static function getCookieJar(){
- return \Illuminate\Auth\Guard::getCookieJar();
- }
- /**
- * Set the cookie creator instance used by the guard.
- *
- * @param \Illuminate\Cookie\CookieJar $cookie
- * @return void
- * @static
- */
- public static function setCookieJar($cookie){
- \Illuminate\Auth\Guard::setCookieJar($cookie);
- }
- /**
- * Get the event dispatcher instance.
- *
- * @return \Illuminate\Events\Dispatcher
- * @static
- */
- public static function getDispatcher(){
- return \Illuminate\Auth\Guard::getDispatcher();
- }
- /**
- * Set the event dispatcher instance.
- *
- * @param \Illuminate\Events\Dispatcher
- * @static
- */
- public static function setDispatcher($events){
- \Illuminate\Auth\Guard::setDispatcher($events);
- }
- /**
- * Get the session store used by the guard.
- *
- * @return \Illuminate\Session\Store
- * @static
- */
- public static function getSession(){
- return \Illuminate\Auth\Guard::getSession();
- }
- /**
- * Get the user provider used by the guard.
- *
- * @return \Illuminate\Auth\UserProviderInterface
- * @static
- */
- public static function getProvider(){
- return \Illuminate\Auth\Guard::getProvider();
- }
- /**
- * Set the user provider used by the guard.
- *
- * @param \Illuminate\Auth\UserProviderInterface $provider
- * @return void
- * @static
- */
- public static function setProvider($provider){
- \Illuminate\Auth\Guard::setProvider($provider);
- }
- /**
- * Return the currently cached user of the application.
- *
- * @return \Illuminate\Auth\UserInterface|null
- * @static
- */
- public static function getUser(){
- return \Illuminate\Auth\Guard::getUser();
- }
- /**
- * Set the current user of the application.
- *
- * @param \Illuminate\Auth\UserInterface $user
- * @return void
- * @static
- */
- public static function setUser($user){
- \Illuminate\Auth\Guard::setUser($user);
- }
- /**
- * Get the current request instance.
- *
- * @return \Symfony\Component\HttpFoundation\Request
- * @static
- */
- public static function getRequest(){
- return \Illuminate\Auth\Guard::getRequest();
- }
- /**
- * Set the current request instance.
- *
- * @param \Symfony\Component\HttpFoundation\Request
- * @return \Illuminate\Auth\Guard
- * @static
- */
- public static function setRequest($request){
- return \Illuminate\Auth\Guard::setRequest($request);
- }
- /**
- * Get a unique identifier for the auth session value.
- *
- * @return string
- * @static
- */
- public static function getName(){
- return \Illuminate\Auth\Guard::getName();
- }
- /**
- * Get the name of the cookie used to store the "recaller".
- *
- * @return string
- * @static
- */
- public static function getRecallerName(){
- return \Illuminate\Auth\Guard::getRecallerName();
- }
- }
- }
- namespace {
- class Blade extends Illuminate\Support\Facades\Blade{
- /**
- * Compile the view at the given path.
- *
- * @param string $path
- * @return void
- * @static
- */
- public static function compile($path){
- \Illuminate\View\Compilers\BladeCompiler::compile($path);
- }
- /**
- * Compile the given Blade template contents.
- *
- * @param string $value
- * @return string
- * @static
- */
- public static function compileString($value){
- return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
- }
- /**
- * Register a custom Blade compiler.
- *
- * @param Closure $compiler
- * @return void
- * @static
- */
- public static function extend($compiler){
- \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
- }
- /**
- * Get the regular expression for a generic Blade function.
- *
- * @param string $function
- * @return string
- * @static
- */
- public static function createMatcher($function){
- return \Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
- }
- /**
- * Get the regular expression for a generic Blade function.
- *
- * @param string $function
- * @return string
- * @static
- */
- public static function createOpenMatcher($function){
- return \Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
- }
- /**
- * Create a plain Blade matcher.
- *
- * @param string $function
- * @return string
- * @static
- */
- public static function createPlainMatcher($function){
- return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
- }
- /**
- * Sets the content tags used for the compiler.
- *
- * @param string $openTag
- * @param string $closeTag
- * @param bool $escaped
- * @return void
- * @static
- */
- public static function setContentTags($openTag, $closeTag, $escaped = false){
- \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
- }
- /**
- * Sets the escaped content tags used for the compiler.
- *
- * @param string $openTag
- * @param string $closeTag
- * @return void
- * @static
- */
- public static function setEscapedContentTags($openTag, $closeTag){
- \Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
- }
- /**
- * Create a new compiler instance.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @param string $cachePath
- * @return self
- * @static
- */
- public static function __construct($files, $cachePath){
- \Illuminate\View\Compilers\Compiler::__construct($files, $cachePath);
- }
- /**
- * Get the path to the compiled version of a view.
- *
- * @param string $path
- * @return string
- * @static
- */
- public static function getCompiledPath($path){
- return \Illuminate\View\Compilers\Compiler::getCompiledPath($path);
- }
- /**
- * Determine if the view at the given path is expired.
- *
- * @param string $path
- * @return bool
- * @static
- */
- public static function isExpired($path){
- return \Illuminate\View\Compilers\Compiler::isExpired($path);
- }
- }
- }
- namespace {
- class Cache extends Illuminate\Support\Facades\Cache{
- /**
- * Get the cache "prefix" value.
- *
- * @return string
- * @static
- */
- public static function getPrefix(){
- return \Illuminate\Cache\CacheManager::getPrefix();
- }
- /**
- * Create a new manager instance.
- *
- * @param \Illuminate\Foundation\Application $app
- * @return self
- * @static
- */
- public static function __construct($app){
- \Illuminate\Support\Manager::__construct($app);
- }
- /**
- * Get a driver instance.
- *
- * @param string $driver
- * @return mixed
- * @static
- */
- public static function driver($driver = null){
- return \Illuminate\Support\Manager::driver($driver);
- }
- /**
- * Register a custom driver creator Closure.
- *
- * @param string $driver
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function extend($driver, $callback){
- \Illuminate\Support\Manager::extend($driver, $callback);
- }
- /**
- * Get all of the created "drivers".
- *
- * @return array
- * @static
- */
- public static function getDrivers(){
- return \Illuminate\Support\Manager::getDrivers();
- }
- /**
- * Dynamically call the default driver instance.
- *
- * @param string $method
- * @param array $parameters
- * @return mixed
- * @static
- */
- public static function __call($method, $parameters){
- return \Illuminate\Support\Manager::__call($method, $parameters);
- }
- /**
- * Retrieve an item from the cache by key.
- *
- * @param string $key
- * @return mixed
- * @static
- */
- public static function get($key){
- return \Illuminate\Cache\StoreInterface::get($key);
- }
- /**
- * Store an item in the cache for a given number of minutes.
- *
- * @param string $key
- * @param mixed $value
- * @param int $minutes
- * @return void
- * @static
- */
- public static function put($key, $value, $minutes){
- \Illuminate\Cache\StoreInterface::put($key, $value, $minutes);
- }
- /**
- * Increment the value of an item in the cache.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function increment($key, $value = 1){
- \Illuminate\Cache\StoreInterface::increment($key, $value);
- }
- /**
- * Decrement the value of an item in the cache.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function decrement($key, $value = 1){
- \Illuminate\Cache\StoreInterface::decrement($key, $value);
- }
- /**
- * Store an item in the cache indefinitely.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function forever($key, $value){
- \Illuminate\Cache\StoreInterface::forever($key, $value);
- }
- /**
- * Remove an item from the cache.
- *
- * @param string $key
- * @return void
- * @static
- */
- public static function forget($key){
- \Illuminate\Cache\StoreInterface::forget($key);
- }
- /**
- * Remove all items from the cache.
- *
- * @return void
- * @static
- */
- public static function flush(){
- \Illuminate\Cache\StoreInterface::flush();
- }
- /**
- * Determine if an item exists in the cache.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function has($key){
- return \Illuminate\Cache\Repository::has($key);
- }
- /**
- * Store an item in the cache if the key does not exist.
- *
- * @param string $key
- * @param mixed $value
- * @param int $minutes
- * @return void
- * @static
- */
- public static function add($key, $value, $minutes){
- \Illuminate\Cache\Repository::add($key, $value, $minutes);
- }
- /**
- * Get an item from the cache, or store the default value.
- *
- * @param string $key
- * @param int $minutes
- * @param Closure $callback
- * @return mixed
- * @static
- */
- public static function remember($key, $minutes, $callback){
- return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
- }
- /**
- * Get an item from the cache, or store the default value forever.
- *
- * @param string $key
- * @param Closure $callback
- * @return mixed
- * @static
- */
- public static function sear($key, $callback){
- return \Illuminate\Cache\Repository::sear($key, $callback);
- }
- /**
- * Get an item from the cache, or store the default value forever.
- *
- * @param string $key
- * @param Closure $callback
- * @return mixed
- * @static
- */
- public static function rememberForever($key, $callback){
- return \Illuminate\Cache\Repository::rememberForever($key, $callback);
- }
- /**
- * Get the default cache time.
- *
- * @return int
- * @static
- */
- public static function getDefaultCacheTime(){
- return \Illuminate\Cache\Repository::getDefaultCacheTime();
- }
- /**
- * Set the default cache time in minutes.
- *
- * @param int $minutes
- * @return void
- * @static
- */
- public static function setDefaultCacheTime($minutes){
- \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
- }
- /**
- * Get the cache store implementation.
- *
- * @return \Illuminate\Cache\StoreInterface
- * @static
- */
- public static function getStore(){
- return \Illuminate\Cache\Repository::getStore();
- }
- /**
- * Determine if a cached value exists.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function offsetExists($key){
- return \Illuminate\Cache\Repository::offsetExists($key);
- }
- /**
- * Retrieve an item from the cache by key.
- *
- * @param string $key
- * @return mixed
- * @static
- */
- public static function offsetGet($key){
- return \Illuminate\Cache\Repository::offsetGet($key);
- }
- /**
- * Store an item in the cache for the default time.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function offsetSet($key, $value){
- \Illuminate\Cache\Repository::offsetSet($key, $value);
- }
- /**
- * Remove an item from the cache.
- *
- * @param string $key
- * @return void
- * @static
- */
- public static function offsetUnset($key){
- \Illuminate\Cache\Repository::offsetUnset($key);
- }
- }
- }
- namespace {
- class ClassLoader extends Illuminate\Support\ClassLoader{
- }
- }
- namespace {
- class Config extends Illuminate\Support\Facades\Config{
- /**
- * Create a new configuration repository.
- *
- * @param \Illuminate\Config\LoaderInterface $loader
- * @param string $environment
- * @return self
- * @static
- */
- public static function __construct($loader, $environment){
- \Illuminate\Config\Repository::__construct($loader, $environment);
- }
- /**
- * Determine if the given configuration value exists.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function has($key){
- return \Illuminate\Config\Repository::has($key);
- }
- /**
- * Determine if a configuration group exists.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function hasGroup($key){
- return \Illuminate\Config\Repository::hasGroup($key);
- }
- /**
- * Get the specified configuration value.
- *
- * @param string $key
- * @param mixed $default
- * @return mixed
- * @static
- */
- public static function get($key, $default = null){
- return \Illuminate\Config\Repository::get($key, $default);
- }
- /**
- * Set a given configuration value.
- *
- * @param string $key
- * @param mixed $value
- * @return void
- * @static
- */
- public static function set($key, $value){
- \Illuminate\Config\Repository::set($key, $value);
- }
- /**
- * Register a package for cascading configuration.
- *
- * @param string $package
- * @param string $hint
- * @param string $namespace
- * @return void
- * @static
- */
- public static function package($package, $hint, $namespace = null){
- \Illuminate\Config\Repository::package($package, $hint, $namespace);
- }
- /**
- * Register an after load callback for a given namespace.
- *
- * @param string $namespace
- * @param Closure $callback
- * @return void
- * @static
- */
- public static function afterLoading($namespace, $callback){
- \Illuminate\Config\Repository::afterLoading($namespace, $callback);
- }
- /**
- * Add a new namespace to the loader.
- *
- * @param string $namespace
- * @param string $hint
- * @return void
- * @static
- */
- public static function addNamespace($namespace, $hint){
- \Illuminate\Config\Repository::addNamespace($namespace, $hint);
- }
- /**
- * Returns all registered namespaces with the config
- * loader.
- *
- * @return array
- * @static
- */
- public static function getNamespaces(){
- return \Illuminate\Config\Repository::getNamespaces();
- }
- /**
- * Get the loader implementation.
- *
- * @return \Illuminate\Config\LoaderInterface
- * @static
- */
- public static function getLoader(){
- return \Illuminate\Config\Repository::getLoader();
- }
- /**
- * Set the loader implementation.
- *
- * @param \Illuminate\Config\LoaderInterface $loader
- * @return void
- * @static
- */
- public static function setLoader($loader){
- \Illuminate\Config\Repository::setLoader($loader);
- }
- /**
- * Get the current configuration environment.
- *
- * @return string
- * @static
- */
- public static function getEnvironment(){
- return \Illuminate\Config\Repository::getEnvironment();
- }
- /**
- * Get the after load callback array.
- *
- * @return array
- * @static
- */
- public static function getAfterLoadCallbacks(){
- return \Illuminate\Config\Repository::getAfterLoadCallbacks();
- }
- /**
- * Get all of the configuration items.
- *
- * @return array
- * @static
- */
- public static function getItems(){
- return \Illuminate\Config\Repository::getItems();
- }
- /**
- * Determine if the given configuration option exists.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function offsetExists($key){
- return \Illuminate\Config\Repository::offsetExists($key);
- }
- /**
- * Get a configuration option.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function offsetGet($key){
- return \Illuminate\Config\Repository::offsetGet($key);
- }
- /**
- * Set a configuration option.
- *
- * @param string $key
- * @param string $value
- * @return void
- * @static
- */
- public static function offsetSet($key, $value){
- \Illuminate\Config\Repository::offsetSet($key, $value);
- }
- /**
- * Unset a configuration option.
- *
- * @param string $key
- * @return void
- * @static
- */
- public static function offsetUnset($key){
- \Illuminate\Config\Repository::offsetUnset($key);
- }
- /**
- * Parse a key into namespace, group, and item.
- *
- * @param string $key
- * @return array
- * @static
- */
- public static function parseKey($key){
- return \Illuminate\Support\NamespacedItemResolver::parseKey($key);
- }
- /**
- * Set the parsed value of a key.
- *
- * @param string $key
- * @param array $parsed
- * @return void
- * @static
- */
- public static function setParsedKey($key, $parsed){
- \Illuminate\Support\NamespacedItemResolver::setParsedKey($key, $parsed);
- }
- }
- }
- namespace {
- class Controller extends Illuminate\Routing\Controllers\Controller{
- }
- }
- namespace {
- class Cookie extends Illuminate\Support\Facades\Cookie{
- /**
- * Create a new cookie manager instance.
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @param \Illuminate\Encryption\Encrypter $encrypter
- * @return self
- * @static
- */
- public static function __construct($request, $encrypter){
- \Illuminate\Cookie\CookieJar::__construct($request, $encrypter);
- }
- /**
- * Determine if a cookie exists and is not null.
- *
- * @param string $key
- * @return bool
- * @static
- */
- public static function has($key){
- return \Illuminate\Cookie\CookieJar::has($key);
- }
- /**
- * Get the value of the given cookie.
- *
- * @param string $key
- * @param mixed $default
- * @return mixed
- * @static
- */
- public static function get($key, $default = null){
- return \Illuminate\Cookie\CookieJar::get($key, $default);
- }
- /**
- * Create a new cookie instance.
- *
- * @param string $name
- * @param string $value
- * @param int $minutes
- * @param string $path
- * @param string $domain
- * @param bool $secure
- * @param bool $httpOnly
- * @return \Symfony\Component\HttpFoundation\Cookie
- * @static
- */
- public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
- return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
- }
- /**
- * Create a cookie that lasts "forever" (five years).
- *
- * @param string $name
- * @param string $value
- * @param string $path
- * @param string $domain
- * @param bool $secure
- * @param bool $httpOnly
- * @return \Symfony\Component\HttpFoundation\Cookie
- * @static
- */
- public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
- return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
- }
- /**
- * Expire the given cookie.
- *
- * @param string $name
- * @return \Symfony\Component\HttpFoundation\Cookie
- * @static
- */
- public static function forget($name){
- return \Illuminate\Cookie\CookieJar::forget($name);
- }
- /**
- * Set the default path and domain for the jar.
- *
- * @param string $path
- * @param string $domain
- * @return void
- * @static
- */
- public static function setDefaultPathAndDomain($path, $domain){
- \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
- }
- /**
- * Get the request instance.
- *
- * @return \Symfony\Component\HttpFoundation\Request
- * @static
- */
- public static function getRequest(){
- return \Illuminate\Cookie\CookieJar::getRequest();
- }
- /**
- * Get the encrypter instance.
- *
- * @return \Illuminate\Encryption\Encrypter
- * @static
- */
- public static function getEncrypter(){
- return \Illuminate\Cookie\CookieJar::getEncrypter();
- }
- }
- }
- namespace {
- class Crypt extends Illuminate\Support\Facades\Crypt{
- /**
- * Create a new encrypter instance.
- *
- * @param string $key
- * @return self
- * @static
- */
- public static function __constr…
Large files files are truncated, but you can click here to view the full file