Added vendor/ directory for Composer's installed files
This commit is contained in:
16
vendor/illuminate/contracts/Routing/Middleware.php
vendored
Executable file
16
vendor/illuminate/contracts/Routing/Middleware.php
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
use Closure;
|
||||
|
||||
interface Middleware {
|
||||
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next);
|
||||
|
||||
}
|
115
vendor/illuminate/contracts/Routing/Registrar.php
vendored
Executable file
115
vendor/illuminate/contracts/Routing/Registrar.php
vendored
Executable file
@ -0,0 +1,115 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
use Closure;
|
||||
|
||||
interface Registrar {
|
||||
|
||||
/**
|
||||
* Register a new GET route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function get($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new POST route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function post($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new PUT route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function put($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new DELETE route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function delete($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new PATCH route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function patch($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new OPTIONS route with the router.
|
||||
*
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function options($uri, $action);
|
||||
|
||||
/**
|
||||
* Register a new route with the given verbs.
|
||||
*
|
||||
* @param array|string $methods
|
||||
* @param string $uri
|
||||
* @param \Closure|array|string $action
|
||||
* @return void
|
||||
*/
|
||||
public function match($methods, $uri, $action);
|
||||
|
||||
/**
|
||||
* Route a resource to a controller.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $controller
|
||||
* @param array $options
|
||||
* @return void
|
||||
*/
|
||||
public function resource($name, $controller, array $options = array());
|
||||
|
||||
/**
|
||||
* Create a route group with shared attributes.
|
||||
*
|
||||
* @param array $attributes
|
||||
* @param \Closure $callback
|
||||
* @return void
|
||||
*/
|
||||
public function group(array $attributes, Closure $callback);
|
||||
|
||||
/**
|
||||
* Register a new "before" filter with the router.
|
||||
*
|
||||
* @param string|callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public function before($callback);
|
||||
|
||||
/**
|
||||
* Register a new "after" filter with the router.
|
||||
*
|
||||
* @param string|callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public function after($callback);
|
||||
|
||||
/**
|
||||
* Register a new filter with the router.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string|callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public function filter($name, $callback);
|
||||
|
||||
}
|
125
vendor/illuminate/contracts/Routing/ResponseFactory.php
vendored
Executable file
125
vendor/illuminate/contracts/Routing/ResponseFactory.php
vendored
Executable file
@ -0,0 +1,125 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
interface ResponseFactory {
|
||||
|
||||
/**
|
||||
* Return a new response from the application.
|
||||
*
|
||||
* @param string $content
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function make($content = '', $status = 200, array $headers = array());
|
||||
|
||||
/**
|
||||
* Return a new view response from the application.
|
||||
*
|
||||
* @param string $view
|
||||
* @param array $data
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function view($view, $data = array(), $status = 200, array $headers = array());
|
||||
|
||||
/**
|
||||
* Return a new JSON response from the application.
|
||||
*
|
||||
* @param string|array $data
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @param int $options
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function json($data = array(), $status = 200, array $headers = array(), $options = 0);
|
||||
|
||||
/**
|
||||
* Return a new JSONP response from the application.
|
||||
*
|
||||
* @param string $callback
|
||||
* @param string|array $data
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @param int $options
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function jsonp($callback, $data = array(), $status = 200, array $headers = array(), $options = 0);
|
||||
|
||||
/**
|
||||
* Return a new streamed response from the application.
|
||||
*
|
||||
* @param \Closure $callback
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @return \Symfony\Component\HttpFoundation\StreamedResponse
|
||||
*/
|
||||
public function stream($callback, $status = 200, array $headers = array());
|
||||
|
||||
/**
|
||||
* Create a new file download response.
|
||||
*
|
||||
* @param \SplFileInfo|string $file
|
||||
* @param string $name
|
||||
* @param array $headers
|
||||
* @param null|string $disposition
|
||||
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
*/
|
||||
public function download($file, $name = null, array $headers = array(), $disposition = 'attachment');
|
||||
|
||||
/**
|
||||
* Create a new redirect response to the given path.
|
||||
*
|
||||
* @param string $path
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @param bool $secure
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function redirectTo($path, $status = 302, $headers = array(), $secure = null);
|
||||
|
||||
/**
|
||||
* Create a new redirect response to a named route.
|
||||
*
|
||||
* @param string $route
|
||||
* @param array $parameters
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array());
|
||||
|
||||
/**
|
||||
* Create a new redirect response to a controller action.
|
||||
*
|
||||
* @param string $action
|
||||
* @param array $parameters
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function redirectToAction($action, $parameters = array(), $status = 302, $headers = array());
|
||||
|
||||
/**
|
||||
* Create a new redirect response, while putting the current URL in the session.
|
||||
*
|
||||
* @param string $path
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @param bool $secure
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function redirectGuest($path, $status = 302, $headers = array(), $secure = null);
|
||||
|
||||
/**
|
||||
* Create a new redirect response to the previously intended location.
|
||||
*
|
||||
* @param string $default
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
* @param bool $secure
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null);
|
||||
|
||||
}
|
14
vendor/illuminate/contracts/Routing/TerminableMiddleware.php
vendored
Executable file
14
vendor/illuminate/contracts/Routing/TerminableMiddleware.php
vendored
Executable file
@ -0,0 +1,14 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
interface TerminableMiddleware extends Middleware {
|
||||
|
||||
/**
|
||||
* Perform any final actions for the request lifecycle.
|
||||
*
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
* @param \Symfony\Component\HttpFoundation\Response $response
|
||||
* @return void
|
||||
*/
|
||||
public function terminate($request, $response);
|
||||
|
||||
}
|
63
vendor/illuminate/contracts/Routing/UrlGenerator.php
vendored
Executable file
63
vendor/illuminate/contracts/Routing/UrlGenerator.php
vendored
Executable file
@ -0,0 +1,63 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
interface UrlGenerator {
|
||||
|
||||
/**
|
||||
* Generate a absolute URL to the given path.
|
||||
*
|
||||
* @param string $path
|
||||
* @param mixed $extra
|
||||
* @param bool $secure
|
||||
* @return string
|
||||
*/
|
||||
public function to($path, $extra = array(), $secure = null);
|
||||
|
||||
/**
|
||||
* Generate a secure, absolute URL to the given path.
|
||||
*
|
||||
* @param string $path
|
||||
* @param array $parameters
|
||||
* @return string
|
||||
*/
|
||||
public function secure($path, $parameters = array());
|
||||
|
||||
/**
|
||||
* Generate a URL to an application asset.
|
||||
*
|
||||
* @param string $path
|
||||
* @param bool $secure
|
||||
* @return string
|
||||
*/
|
||||
public function asset($path, $secure = null);
|
||||
|
||||
/**
|
||||
* Get the URL to a named route.
|
||||
*
|
||||
* @param string $name
|
||||
* @param mixed $parameters
|
||||
* @param bool $absolute
|
||||
* @return string
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function route($name, $parameters = array(), $absolute = true);
|
||||
|
||||
/**
|
||||
* Get the URL to a controller action.
|
||||
*
|
||||
* @param string $action
|
||||
* @param mixed $parameters
|
||||
* @param bool $absolute
|
||||
* @return string
|
||||
*/
|
||||
public function action($action, $parameters = array(), $absolute = true);
|
||||
|
||||
/**
|
||||
* Set the root controller namespace.
|
||||
*
|
||||
* @param string $rootNamespace
|
||||
* @return $this
|
||||
*/
|
||||
public function setRootControllerNamespace($rootNamespace);
|
||||
|
||||
}
|
19
vendor/illuminate/contracts/Routing/UrlRoutable.php
vendored
Executable file
19
vendor/illuminate/contracts/Routing/UrlRoutable.php
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
<?php namespace Illuminate\Contracts\Routing;
|
||||
|
||||
interface UrlRoutable {
|
||||
|
||||
/**
|
||||
* Get the value of the model's route key.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getRouteKey();
|
||||
|
||||
/**
|
||||
* Get the route key for the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRouteKeyName();
|
||||
|
||||
}
|
Reference in New Issue
Block a user