/var/www/website/app/helpers.php
return session('lang');
}
}
if (!function_exists('__get_footer')) {
function __get_footer()
{
$suffix = __get_suffix();
$company = DB::table('website')->where('company', config('website.company'))->where('code', 'company')->first();
$address = DB::table('website')->where('company', config('website.company'))->where('code', 'address')->first();
$phone = DB::table('website')->where('company', config('website.company'))->where('code', 'phone')->first();
$email = DB::table('website')->where('company', config('website.company'))->where('code', 'email')->first();
$beian = DB::table('website')->where('company', config('website.company'))->where('code', 'beian')->first();
$copyright = DB::table('website')->where('company', config('website.company'))->where('code', 'copyright')->first();
$multi_sales_company = DB::table('website')->where('company', config('website.company'))->where('code', 'multi_sales_company')->first();
$tmp = DB::table('website')->where('company', config('website.company'))->where('code', 'wechat')->first();
$wechat = config('website.host.image_prefix').$tmp['image'];
$tmp = DB::table('website')->where('company', config('website.company'))->where('code', 'wechat_official')->first();
$wechat_official= $tmp['value'.$suffix];//config('website.host.image_prefix').$tmp['image'];
$footer = [
'company_name' => $company['value' . $suffix],
'logo' => config('website.host.image_prefix') . $company['image'],
'address' => $address['value' . $suffix],
'phone' => $phone['value' . $suffix],
'email' => $email['value' . $suffix],
'beian' => $beian['value' . $suffix],
'copyright' => $copyright['value' . $suffix],
'wechat' => $wechat,
'wechat_official' => $wechat_official,
'multi_sales_company' => json_decode($multi_sales_company['value'.$suffix], TRUE)
];
return $footer;
}
}
if (!function_exists('__get_common')) {
function __get_common($lang)
{
Arguments
"Undefined index: value_solutions.html"
/var/www/website/app/helpers.php
return session('lang');
}
}
if (!function_exists('__get_footer')) {
function __get_footer()
{
$suffix = __get_suffix();
$company = DB::table('website')->where('company', config('website.company'))->where('code', 'company')->first();
$address = DB::table('website')->where('company', config('website.company'))->where('code', 'address')->first();
$phone = DB::table('website')->where('company', config('website.company'))->where('code', 'phone')->first();
$email = DB::table('website')->where('company', config('website.company'))->where('code', 'email')->first();
$beian = DB::table('website')->where('company', config('website.company'))->where('code', 'beian')->first();
$copyright = DB::table('website')->where('company', config('website.company'))->where('code', 'copyright')->first();
$multi_sales_company = DB::table('website')->where('company', config('website.company'))->where('code', 'multi_sales_company')->first();
$tmp = DB::table('website')->where('company', config('website.company'))->where('code', 'wechat')->first();
$wechat = config('website.host.image_prefix').$tmp['image'];
$tmp = DB::table('website')->where('company', config('website.company'))->where('code', 'wechat_official')->first();
$wechat_official= $tmp['value'.$suffix];//config('website.host.image_prefix').$tmp['image'];
$footer = [
'company_name' => $company['value' . $suffix],
'logo' => config('website.host.image_prefix') . $company['image'],
'address' => $address['value' . $suffix],
'phone' => $phone['value' . $suffix],
'email' => $email['value' . $suffix],
'beian' => $beian['value' . $suffix],
'copyright' => $copyright['value' . $suffix],
'wechat' => $wechat,
'wechat_official' => $wechat_official,
'multi_sales_company' => json_decode($multi_sales_company['value'.$suffix], TRUE)
];
return $footer;
}
}
if (!function_exists('__get_common')) {
function __get_common($lang)
{
Arguments
8
"Undefined index: value_solutions.html"
"/var/www/website/app/helpers.php"
48
array:10 [
"suffix" => "_solutions.html"
"company" => array:11 [
"id" => 1
"code" => "company"
"value" => "苏州沃联网络信息科技有限责任公司"
"value_en" => "SUZHOU WOLINK TECHNOLOGY CO., LTD"
"company" => "沃联"
"created_at" => "2023-03-07 16:17:12"
"updated_at" => "2023-03-07 16:20:34"
"type" => null
"image" => "images/a81193d05272969190e3b8956fb9509d (1).png"
"image_en" => null
"index" => null
]
"address" => array:11 [
"id" => 2
"code" => "address"
"value" => "江苏省常熟市经济技术开发区高新技术产业园建业路2号1幢"
"value_en" => "Building 1, No. 2, Jianye Road, High Tech Industrial Park, Economic and Technological Development Zone"
"company" => "沃联"
"created_at" => "2023-03-07 16:21:06"
"updated_at" => "2023-03-07 16:28:53"
"type" => null
"image" => null
"image_en" => null
"index" => null
]
"phone" => array:11 [
"id" => 3
"code" => "phone"
"value" => "086-0512-52653176/18962393077"
"value_en" => "086-0512-52653176/18962393077"
"company" => "沃联"
"created_at" => "2023-03-07 16:21:47"
"updated_at" => "2023-03-08 13:40:54"
"type" => null
"image" => null
"image_en" => null
"index" => 1
]
"email" => array:11 [
"id" => 4
"code" => "email"
"value" => "tangk@wolink.com.cn"
"value_en" => "tangk@wolink.com.cn"
"company" => "沃联"
"created_at" => "2023-03-07 16:22:06"
"updated_at" => "2023-03-07 16:22:06"
"type" => null
"image" => null
"image_en" => null
"index" => null
]
"beian" => array:11 [
"id" => 6
"code" => "beian"
"value" => "<a target="_blank" href="https://beian.miit.gov.cn">苏ICP备 16054729号</a>"
"value_en" => "<a target="_blank" href="https://beian.miit.gov.cn">苏ICP备 16054729号</a>"
"company" => "沃联"
"created_at" => "2023-03-07 16:42:28"
"updated_at" => "2023-03-07 16:42:28"
"type" => null
"image" => null
"image_en" => null
"index" => null
]
"copyright" => array:11 [
"id" => 5
"code" => "copyright"
"value" => "© Copyright <strong>苏州沃联网络信息科技有限责任公司</strong>. All Rights Reserved"
"value_en" => "© Copyright <strong>WOESL</strong>. All Rights Reserved"
"company" => "沃联"
"created_at" => "2023-03-07 16:41:22"
"updated_at" => "2023-03-07 16:41:22"
"type" => null
"image" => null
"image_en" => null
"index" => null
]
"multi_sales_company" => array:11 [
"id" => 115
"code" => "multi_sales_company"
"value" => """
{\r\n
\t"中国-苏州": {\r\n
\t\t"phone": "086-0512-52653176/18962393077",\r\n
\t\t"email": "tangk@wolink.com.cn",\r\n
\t\t"address": "江苏省常熟市经济技术开发区高新技术产业园建业路2号1幢"\r\n
\t}\r\n
}
"""
"value_en" => """
{\r\n
\t"Suzhou,China": {\r\n
\t\t"phone": "086-0512-52653176/18962393077",\r\n
\t\t"email": "tangk@wolink.com.cn",\r\n
\t\t"address": "Building 1, No. 2, Jianye Road, High-tech Industrial Park, Economic and Technological Development Zone, Changshu City, Jiangsu Province"\r\n
\t}\r\n
}
"""
"company" => "沃联"
"created_at" => "2023-03-10 12:54:29"
"updated_at" => "2023-03-10 13:59:12"
"type" => null
"image" => null
"image_en" => null
"index" => 1
]
"tmp" => array:11 [
"id" => 56
"code" => "wechat_official"
"value" => null
"value_en" => null
"company" => "沃联"
"created_at" => "2023-03-09 09:19:23"
"updated_at" => "2023-03-09 09:19:23"
"type" => null
"image" => "images/qrcode_for_gh_f056e597c77e_344.jpg"
"image_en" => null
"index" => 1
]
"wechat" => "http://office.wolink.com.cn/upload/images/微信图片_20230309092443.png"
]
/var/www/website/app/helpers.php
'email' => $email['value' . $suffix],
'beian' => $beian['value' . $suffix],
'copyright' => $copyright['value' . $suffix],
'wechat' => $wechat,
'wechat_official' => $wechat_official,
'multi_sales_company' => json_decode($multi_sales_company['value'.$suffix], TRUE)
];
return $footer;
}
}
if (!function_exists('__get_common')) {
function __get_common($lang)
{
if (strlen($lang) == 0) {
session(['lang' => config('website.lang.default')]);
} else {
session(['lang' => $lang]);
}
$portfolio = [];
$footer = __get_footer();
$suffix = __get_suffix();
$language = __get_language();
app()->setLocale($language);
$header = __('lang.header');
$header['logo'] = $footer['logo'];
$header['lang'] = $language;
return [$suffix, $header, $footer];
}
}
/var/www/website/app/Admin/Controllers/HomeController.php
namespace App\Admin\Controllers;
use Encore\Admin\Layout\Content;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Input;
class HomeController
{
public function upload_msg() {
$name = Input::get('name');
$email = Input::get('email');
$subject = Input::get('subject');
$msg = Input::get('message');
DB::table('website_msg')->insert(['name' => $name, 'email' => $email, 'subject' => $subject, 'msg' => $msg, 'company' => config('website.company')]);
return 'OK';
}
public function index($lang = '')
{
list($suffix, $header, $footer) = __get_common($lang);
$material_type = DB::table('material_type')->whereIn('code', ['esl', 'nfc', 'ap', 'pad', 'handheld', 'plastic'])->pluck('name' . $suffix, 'code')->toArray();;
$portfolio_details = DB::table('quote')->whereIn('type', array_keys($material_type))->where('is_quote', 1)
->select(['id', 'ac_name' . $suffix, 'ac_tech' . $suffix, 'type', 'ac_pic'])->orderBy('index', 'asc')->get()->toArray();
$portfolio_details = array_map(function ($v) use ($material_type, $suffix) {
$tmp = [
'id' => $v['id'],
'type' => $v['type'],
'name' => $v['ac_name' . $suffix],
'tech' => $v['ac_tech' . $suffix],
'image' => config('website.host.image_prefix'). $v['ac_pic']
];
return $tmp;
}, $portfolio_details);
$portfolio = __('lang.portfolio');
$portfolio['type'] =$material_type;
$portfolio['details'] = $portfolio_details;
Arguments
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
/**
* Dispatch a request to a given controller and method.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $controller
* @param string $method
* @return mixed
*/
public function dispatch(Route $route, $controller, $method)
{
$parameters = $this->resolveClassMethodDependencies(
$route->parametersWithoutNulls(), $controller, $method
);
if (method_exists($controller, 'callAction')) {
return $controller->callAction($method, $parameters);
}
return $controller->{$method}(...array_values($parameters));
}
/**
* Get the middleware for the controller instance.
*
* @param \Illuminate\Routing\Controller $controller
* @param string $method
* @return array
*/
public function getMiddleware($controller, $method)
{
if (! method_exists($controller, 'getMiddleware')) {
return [];
}
return collect($controller->getMiddleware())->reject(function ($data) use ($method) {
return static::methodExcludedByOptions($method, $data['options']);
})->pluck('middleware')->all();
}
Arguments
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Route.php
protected function runCallable()
{
$callable = $this->action['uses'];
return $callable(...array_values($this->resolveMethodDependencies(
$this->parametersWithoutNulls(), new ReflectionFunction($this->action['uses'])
)));
}
/**
* Run the route action and return the response.
*
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function runController()
{
return $this->controllerDispatcher()->dispatch(
$this, $this->getController(), $this->getControllerMethod()
);
}
/**
* Get the controller instance for the route.
*
* @return mixed
*/
public function getController()
{
if (! $this->controller) {
$class = $this->parseControllerCallback()[0];
$this->controller = $this->container->make(ltrim($class, '\\'));
}
return $this->controller;
}
/**
Arguments
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Route.php
*
* @throws \UnexpectedValueException
*/
protected function parseAction($action)
{
return RouteAction::parse($this->uri, $action);
}
/**
* Run the route action and return the response.
*
* @return mixed
*/
public function run()
{
$this->container = $this->container ?: new Container;
try {
if ($this->isControllerAction()) {
return $this->runController();
}
return $this->runCallable();
} catch (HttpResponseException $e) {
return $e->getResponse();
}
}
/**
* Checks whether the route's action is a controller.
*
* @return bool
*/
protected function isControllerAction()
{
return is_string($this->action['uses']);
}
/**
* Run the route action and return the response.
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
* @param \Illuminate\Routing\Route $route
* @return array
*/
public function gatherRouteMiddleware(Route $route)
{
$middleware = collect($route->gatherMiddleware())->map(function ($name) {
return (array) MiddlewareNameResolver::resolve($name, $this->middleware, $this->middlewareGroups);
})->flatten();
return $this->sortMiddleware($middleware);
}
/**
* Sort the given middleware by priority.
*
Arguments
Closure {#10902
class: "Illuminate\Routing\Router"
this: Router {#61 …}
parameters: {
$request: {}
}
use: {
$route: Route {#1170 …}
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php
return $route;
}
/**
* Return the response for the given route.
*
* @param Route $route
* @param Request $request
* @return mixed
*/
protected function runRoute(Request $request, Route $route)
{
$request->setRouteResolver(function () use ($route) {
return $route;
});
$this->events->dispatch(new Events\RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
*
* @param \Illuminate\Routing\Route $route
* @param \Illuminate\Http\Request $request
* @return mixed
*/
protected function runRouteWithinStack(Route $route, Request $request)
{
$shouldSkipMiddleware = $this->container->bound('middleware.disable') &&
$this->container->make('middleware.disable') === true;
$middleware = $shouldSkipMiddleware ? [] : $this->gatherRouteMiddleware($route);
return (new Pipeline($this->container))
->send($request)
->through($middleware)
Arguments
Route {#1170}
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
{
$this->current = $route = $this->routes->match($request);
$this->container->instance(Route::class, $route);
return $route;
}
/**
* Return the response for the given route.
*
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Route {#1170}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php
* @return mixed
*/
public function respondWithRoute($name)
{
$route = tap($this->routes->getByName($name))->bind($this->currentRequest);
return $this->runRoute($this->currentRequest, $route);
}
/**
* Dispatch the request to the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Routing\Route
*/
protected function findRoute($request)
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Response $response
* @return void
*/
public function terminate($request, $response)
{
$this->terminateMiddleware($request, $response);
$this->app->terminate();
}
/**
* Call the terminate method on any terminable middleware.
*
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
use Symfony\Component\Debug\Exception\FatalThrowableError;
/**
* This extended pipeline catches any exceptions that occur during each slice.
*
* The exceptions are converted to HTTP responses for proper middleware handling.
*/
class Pipeline extends BasePipeline
{
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/fideloper/proxy/src/TrustProxies.php
{
$this->config = $config;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->setTrustedProxyHeaderNames($request);
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
* @param \Illuminate\Http\Request $request
*/
protected function setTrustedProxyIpAddresses($request)
{
$trustedIps = $this->proxies ?: $this->config->get('trustedproxy.proxies');
// We only trust specific IP addresses
if (is_array($trustedIps)) {
return $this->setTrustedProxyIpAddressesToSpecificIps($request, $trustedIps);
}
// We trust any IP address that calls us, but not proxies further
// up the forwarding chain.
// TODO: Determine if this should only trust the first IP address
// Currently it trusts the entire chain (array of IPs),
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#12406
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#11392 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#10416 …}
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#9604
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#11392 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#12406 …}
$pipe: "App\Http\Middleware\TrustProxies"
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
* The additional attributes passed to the middleware.
*
* @var array
*/
protected $attributes = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next, ...$attributes)
{
$this->attributes = $attributes;
$this->clean($request);
return $next($request);
}
/**
* Clean the request's data.
*
* @param \Illuminate\Http\Request $request
* @return void
*/
protected function clean($request)
{
$this->cleanParameterBag($request->query);
if ($request->isJson()) {
$this->cleanParameterBag($request->json());
} else {
$this->cleanParameterBag($request->request);
}
}
/**
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#8141
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#11392 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#9604 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull"
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Http\Exceptions\PostTooLargeException
*/
public function handle($request, Closure $next)
{
$max = $this->getPostMaxSize();
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
return $next($request);
}
/**
* Determine the server 'post_max_size' as bytes.
*
* @return int
*/
protected function getPostMaxSize()
{
if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
return (int) $postMaxSize;
}
$metric = strtoupper(substr($postMaxSize, -1));
$postMaxSize = (int) $postMaxSize;
switch ($metric) {
case 'K':
return $postMaxSize * 1024;
case 'M':
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#7109
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#11392 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#8141 …}
$pipe: "App\Http\Middleware\TrimStrings"
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handle($request, Closure $next)
{
if ($this->app->isDownForMaintenance()) {
$data = json_decode(file_get_contents($this->app->storagePath().'/framework/down'), true);
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
}
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
list($name, $parameters) = $this->parsePipeString($pipe);
// If the pipe is a string we will parse the string and resolve the class out
// of the dependency injection container. We can then build a callable and
// execute the pipe function giving in the parameters that are required.
$pipe = $this->getContainer()->make($name);
$parameters = array_merge([$passable, $stack], $parameters);
} else {
// If the pipe is already an object we'll just make a callable and pass it to
// the pipe as-is. There is no need to do any extra parsing and formatting
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
return method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
};
};
}
/**
* Parse full pipe string to get name and parameters.
*
* @param string $pipe
* @return array
*/
protected function parsePipeString($pipe)
{
list($name, $parameters) = array_pad(explode(':', $pipe, 2), 2, []);
if (is_string($parameters)) {
$parameters = explode(',', $parameters);
}
return [$name, $parameters];
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#10921
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#11392 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#7109 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ValidatePostSize"
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
return $this->handleException($passable, new FatalThrowableError($e));
}
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
protected function carry()
{
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
try {
$slice = parent::carry();
$callable = $slice($stack, $pipe);
return $callable($passable);
} catch (Exception $e) {
return $this->handleException($passable, $e);
} catch (Throwable $e) {
return $this->handleException($passable, new FatalThrowableError($e));
}
};
};
}
/**
* Handle the given exception.
*
* @param mixed $passable
* @param \Exception $e
* @return mixed
*
* @throws \Exception
*/
protected function handleException($passable, Exception $e)
{
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
public function via($method)
{
$this->method = $method;
return $this;
}
/**
* Run the pipeline with a final destination callback.
*
* @param \Closure $destination
* @return mixed
*/
public function then(Closure $destination)
{
$pipeline = array_reduce(
array_reverse($this->pipes), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Get the final piece of the Closure onion.
*
* @param \Closure $destination
* @return \Closure
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
return $destination($passable);
};
}
/**
* Get a Closure that represents a slice of the application onion.
*
* @return \Closure
*/
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
}
/**
* Send the given request through the middleware / router.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
protected function sendRequestThroughRouter($request)
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
*
* @return \Closure
*/
protected function dispatchToRouter()
Arguments
Closure {#10416
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#65 …}
parameters: {
$request: {}
}
}
/var/www/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
$router->middlewareGroup($key, $middleware);
}
foreach ($this->routeMiddleware as $key => $middleware) {
$router->aliasMiddleware($key, $middleware);
}
}
/**
* Handle an incoming HTTP request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Exception $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
} catch (Throwable $e) {
$this->reportException($e = new FatalThrowableError($e));
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new Events\RequestHandled($request, $response)
);
return $response;
}
/**
* Send the given request through the middleware / router.
*
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/hhxsv5/laravel-s/src/Illuminate/Laravel.php
public function getRawGlobals()
{
return $this->rawGlobals;
}
public function handleDynamic(IlluminateRequest $request)
{
ob_start();
if ($this->conf['is_lumen']) {
$response = $this->currentApp->dispatch($request);
if ($response instanceof SymfonyResponse) {
$content = $response->getContent();
} else {
$content = $response;
}
$this->reflectionApp->callTerminableMiddleware($response);
} else {
$response = $this->kernel->handle($request);
$content = $response->getContent();
$this->kernel->terminate($request, $response);
}
// prefer content in response, secondly ob
if (!($response instanceof StreamedResponse) && (string)$content === '' && ob_get_length() > 0) {
$response->setContent(ob_get_contents());
}
ob_end_clean();
return $response;
}
public function handleStatic(IlluminateRequest $request)
{
$uri = $request->getRequestUri();
if (isset(self::$staticBlackList[$uri])) {
return false;
}
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/hhxsv5/laravel-s/src/LaravelS.php
}
protected function handleStaticResource(Laravel $laravel, IlluminateRequest $laravelRequest, SwooleResponse $swooleResponse)
{
$laravelResponse = $laravel->handleStatic($laravelRequest);
if ($laravelResponse === false) {
return false;
}
$laravelResponse->headers->set('Server', $this->conf['server'], true);
$laravel->fireEvent('laravels.generated_response', [$laravelRequest, $laravelResponse]);
$response = new StaticResponse($swooleResponse, $laravelResponse);
$response->setChunkLimit($this->conf['swoole']['buffer_output_size']);
$response->send($this->conf['enable_gzip']);
return true;
}
protected function handleDynamicResource(Laravel $laravel, IlluminateRequest $laravelRequest, SwooleResponse $swooleResponse)
{
$laravel->cleanProviders();
$laravelResponse = $laravel->handleDynamic($laravelRequest);
$laravelResponse->headers->set('Server', $this->conf['server'], true);
$laravel->fireEvent('laravels.generated_response', [$laravelRequest, $laravelResponse]);
if ($laravelResponse instanceof BinaryFileResponse) {
$response = new StaticResponse($swooleResponse, $laravelResponse);
} else {
$response = new DynamicResponse($swooleResponse, $laravelResponse);
}
$response->setChunkLimit($this->conf['swoole']['buffer_output_size']);
$response->send($this->conf['enable_gzip']);
$laravel->clean();
return true;
}
/**@var OutputStyle */
protected static $outputStyle;
public static function setOutputStyle(OutputStyle $outputStyle)
{
static::$outputStyle = $outputStyle;
}
Arguments
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/var/www/website/vendor/hhxsv5/laravel-s/src/LaravelS.php
protected function convertRequest(Laravel $laravel, SwooleRequest $request)
{
$rawGlobals = $laravel->getRawGlobals();
return (new Request($request))->toIlluminateRequest($rawGlobals['_SERVER'], $rawGlobals['_ENV']);
}
public function onRequest(SwooleRequest $swooleRequest, SwooleResponse $swooleResponse)
{
try {
parent::onRequest($swooleRequest, $swooleResponse);
$laravelRequest = $this->convertRequest($this->laravel, $swooleRequest);
$this->laravel->bindRequest($laravelRequest);
$this->laravel->fireEvent('laravels.received_request', [$laravelRequest]);
$handleStaticSuccess = false;
if ($this->conf['handle_static']) {
// For Swoole < 1.9.17
$handleStaticSuccess = $this->handleStaticResource($this->laravel, $laravelRequest, $swooleResponse);
}
if (!$handleStaticSuccess) {
$this->handleDynamicResource($this->laravel, $laravelRequest, $swooleResponse);
}
} catch (\Exception $e) {
$this->handleException($e, $swooleResponse);
}
}
/**
* @param \Exception $e
* @param SwooleResponse $response
*/
protected function handleException($e, SwooleResponse $response)
{
$error = sprintf(
'onRequest: Uncaught exception "%s"([%d]%s) at %s:%s, %s%s',
get_class($e),
$e->getCode(),
$e->getMessage(),
$e->getFile(),
$e->getLine(),
PHP_EOL,
Arguments
Laravel {#36}
Request {#11020
#json: null
#convertedFiles: null
#userResolver: Closure {#9100
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#77 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#38 …}
}
}
#routeResolver: Closure {#10386
class: "Illuminate\Routing\Router"
this: Router {#61 …}
use: {
$route: Route {#1170 …}
}
}
+attributes: ParameterBag {#11302}
+request: ParameterBag {#10766}
+query: ParameterBag {#10766}
+server: ServerBag {#11280}
+files: FileBag {#9953}
+cookies: ParameterBag {#11567}
+headers: HeaderBag {#10683}
#content: ""
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/solutions.html"
#requestUri: "/solutions.html"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: null
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Response {#10668}
/var/www/website/vendor/hhxsv5/laravel-s/src/Swoole/Server.php
$eventHandlers = (array)$this->conf['event_handlers'][$event];
foreach ($eventHandlers as $eventHandler) {
if (!isset(class_implements($eventHandler)[$interface])) {
throw new \InvalidArgumentException(sprintf(
'%s must implement the interface %s',
$eventHandler,
$interface
)
);
}
$this->callWithCatchException(function () use ($eventHandler, $arguments) {
call_user_func_array([(new $eventHandler), 'handle'], $arguments);
});
}
}
}
public function run()
{
$this->swoole->start();
}
}
/var/www/website/vendor/hhxsv5/laravel-s/src/Console/Portal.php
}
// Here we go...
$config = $this->getConfig();
if (!$config['server']['ignore_check_pid'] && file_exists($config['server']['swoole']['pid_file'])) {
$pid = (int)file_get_contents($config['server']['swoole']['pid_file']);
if ($pid > 0 && self::kill($pid, 0)) {
$this->warning(sprintf('Swoole[PID=%d] is already running.', $pid));
return 1;
}
}
if ($config['server']['swoole']['daemonize']) {
$this->trace('Swoole is running in daemon mode, see "ps -ef|grep laravels".');
} else {
$this->trace('Swoole is running, press Ctrl+C to quit.');
}
(new LaravelS($config['server'], $config['laravel']))->run();
return 0;
}
public function stop()
{
$config = $this->getConfig();
$pidFile = $config['server']['swoole']['pid_file'];
if (!file_exists($pidFile)) {
$this->warning('It seems that Swoole is not running.');
return 0;
}
$pid = file_get_contents($pidFile);
if (!self::kill($pid, 0)) {
$this->warning("Swoole [PID={$pid}] does not exist, or permission denied.");
return 0;
}
if (!self::kill($pid, SIGTERM)) {
$this->error("Swoole [PID={$pid}] is stopped failed.");
/var/www/website/vendor/hhxsv5/laravel-s/src/Console/Portal.php
$this->addArgument('action', InputArgument::OPTIONAL, 'start|stop|restart|reload|info|help', 'help');
$this->addOption('env', 'e', InputOption::VALUE_OPTIONAL, 'The environment the command should run under, this feature requires Laravel 5.2+');
$this->addOption('daemonize', 'd', InputOption::VALUE_NONE, 'Run as a daemon');
$this->addOption('ignore', 'i', InputOption::VALUE_NONE, 'Ignore checking PID file of Master process');
$this->addOption('x-version', 'x', InputOption::VALUE_OPTIONAL, 'The version(branch) of the current project, stored in $_ENV/$_SERVER');
Client::attachCommandOptions($this);
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->input = $input;
$this->output = $output;
LaravelS::setOutputStyle(new SymfonyStyle($this->input, $this->output));
try {
$action = $input->getArgument('action');
switch ($action) {
case 'start':
return $this->start();
case 'stop':
return $this->stop();
case 'restart':
return $this->restart();
case 'reload':
return $this->reload();
case 'info':
return $this->showInfo();
default:
$help = <<<EOS
Usage:
[%s] ./bin/laravels [options] <action>
Arguments:
action start|stop|restart|reload|info|help
Options:
-e, --env The environment the command should run under, this feature requires Laravel 5.2+
-d, --daemonize Run as a daemon
/var/www/website/vendor/symfony/console/Command/Command.php
}
}
if ($input->isInteractive()) {
$this->interact($input, $output);
}
// The command name argument is often omitted when a command is executed directly with its run() method.
// It would fail the validation if we didn't make sure the command argument is present,
// since it's required by the application.
if ($input->hasArgument('command') && null === $input->getArgument('command')) {
$input->setArgument('command', $this->getName());
}
$input->validate();
if ($this->code) {
$statusCode = \call_user_func($this->code, $input, $output);
} else {
$statusCode = $this->execute($input, $output);
}
return is_numeric($statusCode) ? (int) $statusCode : 0;
}
/**
* Sets the code to execute when running this command.
*
* If this method is used, it overrides the code defined
* in the execute() method.
*
* @param callable $code A callable(InputInterface $input, OutputInterface $output)
*
* @return $this
*
* @throws InvalidArgumentException
*
* @see execute()
*/
public function setCode(callable $code)
Arguments
ArgvInput {#17}
ConsoleOutput {#19}
/var/www/website/bin/laravels
if (file_exists($file)) {
require $file;
return true;
}
return false;
}
}
$basePath = realpath(__DIR__ . '/../');
$loader = new Psr4Autoloader();
$loader->register();
$loader->addNamespace('Hhxsv5\LaravelS', $basePath . '/vendor/hhxsv5/laravel-s/src');
$loader->addNamespace('Symfony\Component\Console', $basePath . '/vendor/symfony/console');
$loader->addNamespace('Symfony\Contracts\Service', $basePath . '/vendor/symfony/service-contracts');
$loader->addNamespace('Symfony\Contracts', $basePath . '/vendor/symfony/contracts');
$command = new Hhxsv5\LaravelS\Console\Portal($basePath);
$input = new Symfony\Component\Console\Input\ArgvInput();
$output = new Symfony\Component\Console\Output\ConsoleOutput();
$code = $command->run($input, $output);
exit($code);
Arguments
ArgvInput {#17}
ConsoleOutput {#19}