/DISK2/xehub/DOMAINS/brand-xe/vendor/league/oauth1-client/src/Server/Server.php
{
$defaultHeaders = $this->getHttpClientDefaultHeaders();
return array_merge($headers, $defaultHeaders);
}
/**
* Creates a client credentials instance from an array of credentials.
*
* @param array $clientCredentials
*
* @return ClientCredentials
*/
protected function createClientCredentials(array $clientCredentials)
{
$keys = ['identifier', 'secret'];
foreach ($keys as $key) {
if ( ! isset($clientCredentials[$key])) {
throw new \InvalidArgumentException("Missing client credentials key [$key] from options.");
}
}
if (isset($clientCredentials['rsa_private_key']) && isset($clientCredentials['rsa_public_key'])) {
$_clientCredentials = new RsaClientCredentials();
$_clientCredentials->setRsaPrivateKey($clientCredentials['rsa_private_key']);
$_clientCredentials->setRsaPublicKey($clientCredentials['rsa_public_key']);
} else {
$_clientCredentials = new ClientCredentials();
}
$_clientCredentials->setIdentifier($clientCredentials['identifier']);
$_clientCredentials->setSecret($clientCredentials['secret']);
if (isset($clientCredentials['callback_uri'])) {
$_clientCredentials->setCallbackUri($clientCredentials['callback_uri']);
}
return $_clientCredentials;
}
Arguments
"Missing client credentials key [identifier] from options."
/DISK2/xehub/DOMAINS/brand-xe/vendor/league/oauth1-client/src/Server/Server.php
protected $cachedUserDetailsResponse;
/**
* Optional user agent.
*
* @var string
*/
protected $userAgent;
/**
* Create a new server instance.
*
* @param ClientCredentialsInterface|array $clientCredentials
* @param SignatureInterface $signature
*/
public function __construct($clientCredentials, SignatureInterface $signature = null)
{
// Pass through an array or client credentials, we don't care
if (is_array($clientCredentials)) {
$clientCredentials = $this->createClientCredentials($clientCredentials);
} elseif ( ! $clientCredentials instanceof ClientCredentialsInterface) {
throw new \InvalidArgumentException('Client credentials must be an array or valid object.');
}
$this->clientCredentials = $clientCredentials;
if ( ! $signature && $clientCredentials instanceof RsaClientCredentials) {
$signature = new RsaSha1Signature($clientCredentials);
}
$this->signature = $signature ?: new HmacSha1Signature($clientCredentials);
}
/**
* Gets temporary credentials by performing a request to
* the server.
*
* @return TemporaryCredentials
*
* @throws CredentialsException
*/
Arguments
array:8 [
"identifier" => null
"secret" => null
"callback_uri" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
"activate" => true
"client_id" => null
"client_secret" => null
"title" => "social_login::twitter"
"redirect" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/vendor/league/oauth1-client/src/Server/Twitter.php
namespace League\OAuth1\Client\Server;
use League\OAuth1\Client\Credentials\TokenCredentials;
class Twitter extends Server
{
/**
* Application scope.
*
* @var ?string
*/
protected $applicationScope = null;
/**
* @inheritDoc
*/
public function __construct($clientCredentials, SignatureInterface $signature = null)
{
parent::__construct($clientCredentials, $signature);
if (is_array($clientCredentials)) {
$this->parseConfiguration($clientCredentials);
}
}
/**
* Set the application scope.
*
* @param ?string $applicationScope
*
* @return Twitter
*/
public function setApplicationScope($applicationScope)
{
$this->applicationScope = $applicationScope;
return $this;
}
Arguments
array:8 [
"identifier" => null
"secret" => null
"callback_uri" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
"activate" => true
"client_id" => null
"client_secret" => null
"title" => "social_login::twitter"
"redirect" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
]
null
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/socialite/src/SocialiteManager.php
public function buildProvider($provider, $config)
{
return new $provider(
$this->app['request'], $config['client_id'],
$config['client_secret'], $this->formatRedirectUrl($config),
Arr::get($config, 'guzzle', [])
);
}
/**
* Create an instance of the specified driver.
*
* @return \Laravel\Socialite\One\AbstractProvider
*/
protected function createTwitterDriver()
{
$config = $this->app['config']['services.twitter'];
return new TwitterProvider(
$this->app['request'], new TwitterServer($this->formatConfig($config))
);
}
/**
* Format the server configuration.
*
* @param array $config
* @return array
*/
public function formatConfig(array $config)
{
return array_merge([
'identifier' => $config['client_id'],
'secret' => $config['client_secret'],
'callback_uri' => $this->formatRedirectUrl($config),
], $config);
}
/**
* Format the callback URL, resolving a relative URI if needed.
Arguments
array:8 [
"identifier" => null
"secret" => null
"callback_uri" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
"activate" => true
"client_id" => null
"client_secret" => null
"title" => "social_login::twitter"
"redirect" => "https://brand-xe.xehub.co.kr/plugin/social_login/login/twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Support/Manager.php
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected function createDriver($driver)
{
// We'll check to see if a creator method exists for the given driver. If not we
// will check for a custom driver creator, which allows developers to create
// drivers using their own customized driver creator Closure to create it.
if (isset($this->customCreators[$driver])) {
return $this->callCustomCreator($driver);
} else {
$method = 'create'.Str::studly($driver).'Driver';
if (method_exists($this, $method)) {
return $this->$method();
}
}
throw new InvalidArgumentException("Driver [$driver] not supported.");
}
/**
* Call a custom driver creator.
*
* @param string $driver
* @return mixed
*/
protected function callCustomCreator($driver)
{
return $this->customCreators[$driver]($this->app);
}
/**
* Register a custom driver creator Closure.
*
* @param string $driver
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Support/Manager.php
*
* @return string
*/
abstract public function getDefaultDriver();
/**
* Get a driver instance.
*
* @param string $driver
* @return mixed
*/
public function driver($driver = null)
{
$driver = $driver ?: $this->getDefaultDriver();
// If the given driver has not been created before, we will create the instances
// here and cache it so we can return it next time very quickly. If there is
// already a driver created by this name, we'll just return that instance.
if (! isset($this->drivers[$driver])) {
$this->drivers[$driver] = $this->createDriver($driver);
}
return $this->drivers[$driver];
}
/**
* Create a new driver instance.
*
* @param string $driver
* @return mixed
*
* @throws \InvalidArgumentException
*/
protected function createDriver($driver)
{
// We'll check to see if a creator method exists for the given driver. If not we
// will check for a custom driver creator, which allows developers to create
// drivers using their own customized driver creator Closure to create it.
if (isset($this->customCreators[$driver])) {
return $this->callCustomCreator($driver);
Arguments
/DISK2/xehub/DOMAINS/brand-xe/privates/social_login/src/Handler.php
* @param UserHandler $users user handler
* @param DatabaseHandler $db database handler
* @param ConfigManager $cfg config manager
*/
public function __construct(Socialite $socialite, UserHandler $users, DatabaseHandler $db, ConfigManager $cfg)
{
$this->socialite = $socialite;
$this->users = $users;
$this->db = $db;
$this->cfg = $cfg;
}
/**
* @param string $provider provider
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function authorize($provider)
{
return $this->socialite->driver($provider)->redirect();
}
/**
* @param string $provider provider
* @param bool $stateless stateless
*
* @return Authenticatable|\Xpressengine\User\UserInterface
* @throws \Exception
*
* @deprecated since 1.0.5 instead use registerUser or connectAccount
*/
public function execute($provider, $stateless = false)
{
return $this->connect($this->getUser($provider, null, null, $stateless), $provider);
}
/**
* @param string $provider provider
* @param string|null $token token
* @param string|null $tokenSecret token secret
Arguments
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/Proxy/ProxyTrait.php
return call_user_func_array(
[$this, '_proxyTargetCall'],
[$method, $args]
);
}
);
}
/**
* 본래 실행하려고 했던 실제 타겟 오브젝트의 메소드를 실행한다.
*
* @param string $method origin method
* @param array $arguments argument of method call
*
* @return mixed
*/
private function _proxyTargetCall($method, $arguments)
{
return call_user_func_array("parent::$method", $arguments);
}
}
Arguments
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/Proxy/ProxyTrait.php
return call_user_func_array(
[$this, '_proxyTargetCall'],
[$method, $args]
);
}
);
}
/**
* 본래 실행하려고 했던 실제 타겟 오브젝트의 메소드를 실행한다.
*
* @param string $method origin method
* @param array $arguments argument of method call
*
* @return mixed
*/
private function _proxyTargetCall($method, $arguments)
{
return call_user_func_array("parent::$method", $arguments);
}
}
Arguments
"parent::authorize"
array:1 [
0 => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/Proxy/ProxyTrait.php
/** @var AdvisorList $advisorList */
$advisorList = $this->_getAdvisorCollection()->getAdvisorList(parent::class.'@'.$method);
$invocationHandler = new ProxyInvocationHandler($this, $method, $advisorList);
// 등록된 advisor들을 호출한다. advisor들이 실행되고 마지막으로 called method를 실행한다.
return $invocationHandler->callProxy(
$arguments,
// 등록된 advisor들이 모두 호출된 다음 마지막에 호출되어 target의 origin method를 실행하는 클로저
function () use ($method, $isCallMagicMethod) {
$args = func_get_args();
if ($isCallMagicMethod) {
array_unshift($args, $method);
$method = '__call';
}
return call_user_func_array(
[$this, '_proxyTargetCall'],
[$method, $args]
);
}
);
}
/**
* 본래 실행하려고 했던 실제 타겟 오브젝트의 메소드를 실행한다.
*
* @param string $method origin method
* @param array $arguments argument of method call
*
* @return mixed
*/
private function _proxyTargetCall($method, $arguments)
{
return call_user_func_array("parent::$method", $arguments);
}
}
Arguments
"authorize"
array:1 [
0 => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/Proxy/ProxyTrait.php
/** @var AdvisorList $advisorList */
$advisorList = $this->_getAdvisorCollection()->getAdvisorList(parent::class.'@'.$method);
$invocationHandler = new ProxyInvocationHandler($this, $method, $advisorList);
// 등록된 advisor들을 호출한다. advisor들이 실행되고 마지막으로 called method를 실행한다.
return $invocationHandler->callProxy(
$arguments,
// 등록된 advisor들이 모두 호출된 다음 마지막에 호출되어 target의 origin method를 실행하는 클로저
function () use ($method, $isCallMagicMethod) {
$args = func_get_args();
if ($isCallMagicMethod) {
array_unshift($args, $method);
$method = '__call';
}
return call_user_func_array(
[$this, '_proxyTargetCall'],
[$method, $args]
);
}
);
}
/**
* 본래 실행하려고 했던 실제 타겟 오브젝트의 메소드를 실행한다.
*
* @param string $method origin method
* @param array $arguments argument of method call
*
* @return mixed
*/
private function _proxyTargetCall($method, $arguments)
{
return call_user_func_array("parent::$method", $arguments);
}
}
Arguments
array:2 [
0 => Proxy_Xpressengine_Plugins_SocialLogin_Handler {#1900}
1 => "_proxyTargetCall"
]
array:2 [
0 => "authorize"
1 => array:1 [
0 => "twitter"
]
]
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/ProxyInvocationHandler.php
/**
* proxy object의 메소드가 실행될 경우, 메소드에 지정된 advisor를 모두 실행시킨다.
* 이때 decorator 패턴으로 advisor들이 실행되는데,
* 각 advisor들이 next call을 할 때 proxy는 자기 자신을 호출하도록 하여 결국 이 메소드가 실행된다.
* 이 메소드가 호출되면 다음 advisor를 찾아서 실행시켜주고, 더이상 실행할 advisor가 없을 경우 원래 호출된 proxy object의 메소드를 실행한다.
*
* @return mixed
*/
public function __invoke()
{
$args = func_get_args();
$advisor = $this->advisorList->next();
if ($advisor) {
$advice = $advisor->getAdvice();
$argsWithThis = array_merge([$this], $args);
return call_user_func_array($advice, $argsWithThis);
} else {
$closure = $this->originMethodCall;
return call_user_func_array($closure, $args);
}
}
/**
* target object(proxy object)를 반환한다.
*
* @return Object
*/
public function getTargetObject()
{
return $this->proxyObject;
}
/**
* 호출된 메소드명을 반환한다.
*
* @return string
*/
public function getTargetMethodName()
{
Arguments
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/ProxyInvocationHandler.php
/**
* proxy object의 메소드가 실행될 경우, 메소드에 지정된 advisor를 모두 실행시킨다.
* 이때 decorator 패턴으로 advisor들이 실행되는데,
* 각 advisor들이 next call을 할 때 proxy는 자기 자신을 호출하도록 하여 결국 이 메소드가 실행된다.
* 이 메소드가 호출되면 다음 advisor를 찾아서 실행시켜주고, 더이상 실행할 advisor가 없을 경우 원래 호출된 proxy object의 메소드를 실행한다.
*
* @return mixed
*/
public function __invoke()
{
$args = func_get_args();
$advisor = $this->advisorList->next();
if ($advisor) {
$advice = $advisor->getAdvice();
$argsWithThis = array_merge([$this], $args);
return call_user_func_array($advice, $argsWithThis);
} else {
$closure = $this->originMethodCall;
return call_user_func_array($closure, $args);
}
}
/**
* target object(proxy object)를 반환한다.
*
* @return Object
*/
public function getTargetObject()
{
return $this->proxyObject;
}
/**
* 호출된 메소드명을 반환한다.
*
* @return string
*/
public function getTargetMethodName()
{
Arguments
Closure {#2033
class: "Proxy_Xpressengine_Plugins_SocialLogin_Handler"
this: Proxy_Xpressengine_Plugins_SocialLogin_Handler {#1900 …}
use: {
$method: "authorize"
$isCallMagicMethod: false
}
}
array:1 [
0 => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/ProxyInvocationHandler.php
*/
public function __construct($proxyObject, $methodName, AdvisorList $advisorList)
{
$this->proxyObject = $proxyObject;
$this->targetMethodName = $methodName;
$this->advisorList = $advisorList;
}
/**
* target class의 origin method가 실행되기 전에 호출되어야 할 advisor를 호출한 다음, 마지막으로 origin method를 호출한다.
*
* @param array $args 호출된 메소드가 받은 파라메터 리스트
* @param Closure $then 호출된 메소드, advisor를 모두 호출한 후 이 Closure가 실행된다.
*
* @return mixed
*/
public function callProxy(array $args, Closure $then)
{
$this->originMethodCall = $then;
return call_user_func_array($this, $args);
}
/**
* proxy object의 메소드가 실행될 경우, 메소드에 지정된 advisor를 모두 실행시킨다.
* 이때 decorator 패턴으로 advisor들이 실행되는데,
* 각 advisor들이 next call을 할 때 proxy는 자기 자신을 호출하도록 하여 결국 이 메소드가 실행된다.
* 이 메소드가 호출되면 다음 advisor를 찾아서 실행시켜주고, 더이상 실행할 advisor가 없을 경우 원래 호출된 proxy object의 메소드를 실행한다.
*
* @return mixed
*/
public function __invoke()
{
$args = func_get_args();
$advisor = $this->advisorList->next();
if ($advisor) {
$advice = $advisor->getAdvice();
$argsWithThis = array_merge([$this], $args);
return call_user_func_array($advice, $argsWithThis);
} else {
Arguments
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/ProxyInvocationHandler.php
*/
public function __construct($proxyObject, $methodName, AdvisorList $advisorList)
{
$this->proxyObject = $proxyObject;
$this->targetMethodName = $methodName;
$this->advisorList = $advisorList;
}
/**
* target class의 origin method가 실행되기 전에 호출되어야 할 advisor를 호출한 다음, 마지막으로 origin method를 호출한다.
*
* @param array $args 호출된 메소드가 받은 파라메터 리스트
* @param Closure $then 호출된 메소드, advisor를 모두 호출한 후 이 Closure가 실행된다.
*
* @return mixed
*/
public function callProxy(array $args, Closure $then)
{
$this->originMethodCall = $then;
return call_user_func_array($this, $args);
}
/**
* proxy object의 메소드가 실행될 경우, 메소드에 지정된 advisor를 모두 실행시킨다.
* 이때 decorator 패턴으로 advisor들이 실행되는데,
* 각 advisor들이 next call을 할 때 proxy는 자기 자신을 호출하도록 하여 결국 이 메소드가 실행된다.
* 이 메소드가 호출되면 다음 advisor를 찾아서 실행시켜주고, 더이상 실행할 advisor가 없을 경우 원래 호출된 proxy object의 메소드를 실행한다.
*
* @return mixed
*/
public function __invoke()
{
$args = func_get_args();
$advisor = $this->advisorList->next();
if ($advisor) {
$advice = $advisor->getAdvice();
$argsWithThis = array_merge([$this], $args);
return call_user_func_array($advice, $argsWithThis);
} else {
Arguments
ProxyInvocationHandler {#2026}
array:1 [
0 => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/core/src/Xpressengine/Interception/Proxy/ProxyTrait.php
$invocationHandler = new ProxyInvocationHandler($this, $method, $advisorList);
// 등록된 advisor들을 호출한다. advisor들이 실행되고 마지막으로 called method를 실행한다.
return $invocationHandler->callProxy(
$arguments,
// 등록된 advisor들이 모두 호출된 다음 마지막에 호출되어 target의 origin method를 실행하는 클로저
function () use ($method, $isCallMagicMethod) {
$args = func_get_args();
if ($isCallMagicMethod) {
array_unshift($args, $method);
$method = '__call';
}
return call_user_func_array(
[$this, '_proxyTargetCall'],
[$method, $args]
);
}
);
}
/**
* 본래 실행하려고 했던 실제 타겟 오브젝트의 메소드를 실행한다.
*
* @param string $method origin method
* @param array $arguments argument of method call
*
* @return mixed
*/
private function _proxyTargetCall($method, $arguments)
{
return call_user_func_array("parent::$method", $arguments);
}
}
Arguments
array:1 [
0 => "twitter"
]
Closure {#2033
class: "Proxy_Xpressengine_Plugins_SocialLogin_Handler"
this: Proxy_Xpressengine_Plugins_SocialLogin_Handler {#1900 …}
use: {
$method: "authorize"
$isCallMagicMethod: false
}
}
/DISK2/xehub/DOMAINS/brand-xe/storage/app/interception/Proxy_Xpressengine_Plugins_SocialLogin_Handler.php
<?php
use Xpressengine\Interception\Proxy\ProxyTrait;
class Proxy_Xpressengine_Plugins_SocialLogin_Handler extends Xpressengine\Plugins\SocialLogin\Handler
{
use ProxyTrait;
public function __construct(Laravel\Socialite\Contracts\Factory $socialite, Xpressengine\User\UserHandler $users, Xpressengine\Database\DatabaseHandler $db, Xpressengine\Config\ConfigManager $cfg) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function authorize( $provider) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function execute( $provider, $stateless = false) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function getUser( $provider, $token = NULL, $tokenSecret = NULL, $stateless = false) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function getRegisteredUserAccount(Laravel\Socialite\Contracts\User $userContract, $providerName) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function registerUser( $userData) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
return $ret;
}
public function checkNeedRegisterForm(Laravel\Socialite\Contracts\User $userContract) {
$argv = func_get_args();
$ret = $this->_proxyMethodCall(__FUNCTION__, $argv);
Arguments
"authorize"
array:1 [
0 => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/privates/social_login/src/Controllers/ConnectController.php
* auth
*
* @param Request $request request
* @param string $provider provider
*
* @return mixed
*/
public function auth(Request $request, $provider)
{
if (auth()->check() === false && app('xe.config')->getVal('user.register.joinable') === false) {
return redirect('/')->with(
['alert' => ['type' => 'danger', 'message' => xe_trans('xe::joinNotAllowed')]]
);
}
if ($request->get('_p')) {
$request->session()->put('social_login::pop', true);
}
return $this->socialLoginHandler->authorize($provider);
}
private function loginUser(Request $request, $user)
{
switch ($user->getStatus()) {
case User::STATUS_DENIED:
return redirect()->route('login')->with('alert', [
'type' => 'danger',
'message' => xe_trans('social_login::disabledAccount')
]);
case User::STATUS_PENDING_ADMIN:
auth()->login($user);
return redirect()->route('auth.pending_admin');
break;
case User::STATUS_PENDING_EMAIL:
auth()->login($user);
return redirect()->route('auth.pending_email');
break;
Arguments
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException("Method [{$method}] does not exist on [".get_class($this).'].');
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"twitter"
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Routing/Controller.php
/**
* Get the middleware assigned to the controller.
*
* @return array
*/
public function getMiddleware()
{
return $this->middleware;
}
/**
* Execute an action on the controller.
*
* @param string $method
* @param array $parameters
* @return \Symfony\Component\HttpFoundation\Response
*/
public function callAction($method, $parameters)
{
return call_user_func_array([$this, $method], $parameters);
}
/**
* Handle calls to missing methods on the controller.
*
* @param string $method
* @param array $parameters
* @return mixed
*
* @throws \BadMethodCallException
*/
public function __call($method, $parameters)
{
throw new BadMethodCallException("Method [{$method}] does not exist on [".get_class($this).'].');
}
}
Arguments
array:2 [
0 => ConnectController {#1958}
1 => "auth"
]
array:2 [
0 => Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"provider" => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php
{
$this->container = $container;
}
/**
* 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']);
Arguments
"auth"
array:2 [
0 => Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
"provider" => "twitter"
]
/DISK2/xehub/DOMAINS/brand-xe/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
Route {#995}
ConnectController {#1958}
"auth"
/DISK2/xehub/DOMAINS/brand-xe/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.
/DISK2/xehub/DOMAINS/brand-xe/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);
}
/**
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/privates/social_login/src/Middleware.php
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request request
* @param \Closure $next next middleware
*
* @return mixed
*/
public function handle($request, Closure $next)
{
if ($request->routeIs('login') &&
in_array('GET', $request->route()->methods()) &&
// $request->get('by') !== 'email'
$request->has('by') === false
) {
return redirect()->route('social_login::login', $request->query());
}
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1693
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#1697 …}
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/AsyncExpose.php
*
* @category Middleware
* @package App\Http\Middleware
* @author XE Developers <developers@xpressengine.com>
* @copyright 2020 Copyright XEHub Corp. <https://www.xehub.io>
* @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL
* @link https://xpressengine.io
*/
class AsyncExpose
{
/**
* Handle an incoming request.
*
* @param Request $request request
* @param Closure $next to be called next
* @return mixed
*/
public function handle(Request $request, Closure $next)
{
$response = $next($request);
if ($request->wantsJson() && $request->hasHeader('X-XE-Async-Expose')) {
$content = json_decode($response->getContent(), true);
// assets
$assetCss = \Xpressengine\Presenter\Html\Tags\CSSFile::getFileList();
$assetJs = \Xpressengine\Presenter\Html\Tags\JSFile::getFileList();
$routes = \Xpressengine\Presenter\Html\Tags\Route::getRoutes();
$rules = \Xpressengine\Presenter\Html\Tags\Rule::getRuleList();
$translations = \Xpressengine\Presenter\Html\Tags\Translation::getTransList();
$assets = [];
$_XE_ = [];
if ($assetCss) {
$assets['css'] = $assetCss;
}
if ($assetJs) {
$assets['js'] = $assetJs;
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1968
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1693 …}
$pipe: "Xpressengine\Plugins\SocialLogin\Middleware"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/FreezeSEO.php
* @copyright 2020 Copyright XEHub Corp. <https://www.xehub.io>
* @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL
* @link https://xpressengine.io
*/
class FreezeSEO
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request request
* @param \Closure $next to be called next
* @return mixed
*/
public function handle($request, \Closure $next)
{
if ($request->isManageRequest()) {
app('xe.seo')->notExec();
}
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1970
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1968 …}
$pipe: "App\Http\Middleware\AsyncExpose"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/Purifying.php
* @link https://xpressengine.io
*/
class Purifying
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!$request->isManageRequest()) {
$inputs = $request->except('_token');
$request->merge($this->execute($inputs));
}
return $next($request);
}
/**
* Run the purifier for a given inputs.
*
* @param array $input inputs
* @return array
*/
protected function execute($input)
{
if (is_array($input) === true) {
return array_map(function ($item) {
return $this->execute($item);
}, $input);
}
return $input != strip_tags($input) ? app('purifier')->purify($input) : $input;
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1963
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1970 …}
$pipe: "App\Http\Middleware\FreezeSEO"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/LangPreprocessor.php
public function __construct(Application $app)
{
$this->app = $app;
}
/**
* Handle an incoming request.
*
* @param Request $request request
* @param Closure $next to be called next
* @return Response
*/
public function handle(Request $request, Closure $next)
{
if ($request->has('xe_use_request_preprocessor') && $this->available()) {
$this->prepare($request);
}
/** @var Response $response */
$response = $next($request);
if ($request->has('xe_use_request_preprocessor') && $this->available()) {
$this->conduct($request);
}
return $response;
}
/**
* Indicate it is available.
*
* @return bool
*/
private function available()
{
return in_array($this->app['auth']->user()->getRating(), [Rating::SUPER, Rating::MANAGER]);
}
/**
* Handle an request before dispatch router.
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1966
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1963 …}
$pipe: "App\Http\Middleware\Purifying"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*
* @throws \Illuminate\Session\TokenMismatchException
*/
public function handle($request, Closure $next)
{
if (
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return $this->addCookieToResponse($request, $next($request));
}
throw new TokenMismatchException;
}
/**
* Determine if the HTTP request uses a ‘read’ verb.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
protected function isReading($request)
{
return in_array($request->method(), ['HEAD', 'GET', 'OPTIONS']);
}
/**
* Determine if the application is running unit tests.
*
* @return bool
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/ExceptAppendableVerifyCsrfToken.php
/**
* Excepted routes
*
* @var array
*/
protected static $staticExcept = [];
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request request
* @param Closure $next to be called next
* @return \Symfony\Component\HttpFoundation\Response
* @throws mixed
*/
public function handle($request, Closure $next)
{
$this->except = array_merge($this->except, static::$staticExcept);
return parent::handle($request, $next);
}
/**
* Register the route for excepted.
*
* @param string $path route path
* @return void
*/
public static function setExcept($path)
{
static::$staticExcept[] = $path;
static::$staticExcept = array_unique(static::$staticExcept);
}
/**
* Unregister the route for excepted.
*
* @param string $path route path
* @return void
*/
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1973
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1966 …}
$pipe: "App\Http\Middleware\LangPreprocessor"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1973
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1966 …}
$pipe: "App\Http\Middleware\LangPreprocessor"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/RequiredDF.php
return $next($request);
}
$rules = Collection::make($fields)->filter(function ($field) {
return $field->isEnabled();
})->map(function ($field) {
return $field->getRules();
})->collapse()->filter(function ($rules) {
$rules = array_map('\Illuminate\Support\Str::snake', explode('|', $rules));
return in_array('required', $rules);
})->map(function () {
return 'required';
});
if (Validator::make(Auth::user()->getAttributes(), $rules->all())->fails()) {
return redirect()->route('auth.register.add');
}
}
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1967
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1973 …}
$pipe: "App\Http\Middleware\ExceptAppendableVerifyCsrfToken"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/HttpProtocol.php
* @copyright 2020 Copyright XEHub Corp. <https://www.xehub.io>
* @license http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL
* @link https://xpressengine.io
*/
class HttpProtocol
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (app('config')->get('xe.ssl.always') == true && $request->secure() == false) {
return redirect()->secure($request->getRequestUri());
}
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1974
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1967 …}
$pipe: "App\Http\Middleware\RequiredDF"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php
*/
public function __construct(Registrar $router)
{
$this->router = $router;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->router->substituteBindings($route = $request->route());
$this->router->substituteImplicitBindings($route);
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1972
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1974 …}
$pipe: "App\Http\Middleware\HttpProtocol"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// If the current session has an "errors" variable bound to it, we will share
// its value with all view instances so the views can easily access errors
// without having to bind. An empty bag is set when there aren't errors.
$this->view->share(
'errors', $request->session()->get('errors') ?: new ViewErrorBag
);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1975
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1972 …}
$pipe: "Illuminate\Routing\Middleware\SubstituteBindings"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/app/Http/Middleware/ShareLocalizeSession.php
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request request
* @param \Closure $next to be called next
* @return mixed
*/
public function handle($request, Closure $next)
{
if ($id = $this->getShareSessionId($request)) {
$this->app['session']->flush();
$this->app['session']->setId($id);
$this->app['session']->start();
}
if ($request->method() === 'GET' && array_has($queries = $request->query->all(), '_s')) {
$queries = array_except($queries, '_s');
return redirect($request->url().(count($queries) > 0 ? '?'.http_build_query($queries) : ''));
}
return $next($request);
}
/**
* Get the session id for shared
*
* @param \Illuminate\Http\Request $request request
* @return null|string
*/
protected function getShareSessionId($request)
{
if (!$this->isShouldSessionBeShared($request)) {
return null;
}
return $this->app['session']->isValidId($id = decrypt($request->get('_s'))) ? $id : null;
}
/**
* Determine if the session id should be shared
*
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1976
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1975 …}
$pipe: "Illuminate\View\Middleware\ShareErrorsFromSession"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$this->sessionHandled = true;
// If a session driver has been configured, we will need to start the session here
// so that the data is ready for an application. Note that the Laravel sessions
// do not make use of PHP "native" sessions in any way since they are crappy.
if ($this->sessionConfigured()) {
$request->setLaravelSession(
$session = $this->startSession($request)
);
$this->collectGarbage($session);
}
$response = $next($request);
// Again, if the session has been configured we will need to close out the session
// so that the attributes may be persisted to some storage medium. We will also
// add the session identifier cookie to the application response headers now.
if ($this->sessionConfigured()) {
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
}
return $response;
}
/**
* Perform any final actions for the request lifecycle.
*
* @param \Illuminate\Http\Request $request
* @param \Symfony\Component\HttpFoundation\Response $response
* @return void
*/
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1977
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1976 …}
$pipe: "App\Http\Middleware\ShareLocalizeSession"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php
* Create a new CookieQueue instance.
*
* @param \Illuminate\Contracts\Cookie\QueueingFactory $cookies
* @return void
*/
public function __construct(CookieJar $cookies)
{
$this->cookies = $cookies;
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
return $response;
}
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1978
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1977 …}
$pipe: "Illuminate\Session\Middleware\StartSession"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php
* Disable encryption for the given cookie name(s).
*
* @param string|array $cookieName
* @return void
*/
public function disableFor($cookieName)
{
$this->except = array_merge($this->except, (array) $cookieName);
}
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* @return \Symfony\Component\HttpFoundation\Request
*/
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $cookie) {
if ($this->isDisabled($key)) {
continue;
}
try {
$decryptedValue = $this->decryptCookie($key, $cookie);
$value = CookieValuePrefix::getVerifiedValue($key, $decryptedValue, $this->encrypter->getKey());
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1979
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#1698 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1978 …}
$pipe: "Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#1697
class: "Illuminate\Routing\Router"
this: Router {#27 …}
parameters: {
$request: {}
}
use: {
$route: Route {#995 …}
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#995}
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Route {#995}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php
* @param LaravelDebugbar $debugbar
*/
public function __construct(Container $container, LaravelDebugbar $debugbar)
{
$this->container = $container;
$this->debugbar = $debugbar;
$this->except = config('debugbar.except') ?: [];
}
/**
* Handle an incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
return $next($request);
}
$this->debugbar->boot();
try {
/** @var \Illuminate\Http\Response $response */
$response = $next($request);
} catch (Exception $e) {
$response = $this->handleException($request, $e);
} catch (Error $error) {
$e = new FatalThrowableError($error);
$response = $this->handleException($request, $e);
}
// Modify the response to add the Debugbar
$this->debugbar->modifyResponse($request, $response);
return $response;
}
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1648
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$destination: Closure {#1649 …}
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1664
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1648 …}
$pipe: "Barryvdh\Debugbar\Middleware\InjectDebugbar"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1665
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1664 …}
$pipe: "App\Http\Middleware\TrustProxies"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1661
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1665 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1667
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1661 …}
$pipe: "App\Http\Middleware\TrimStrings"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
Closure {#1668
class: "Illuminate\Routing\Pipeline"
this: Pipeline {#48 …}
parameters: {
$passable: {}
}
use: {
$stack: Closure {#1667 …}
$pipe: "Illuminate\Foundation\Http\Middleware\ValidatePostSize"
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#1649
class: "Illuminate\Foundation\Http\Kernel"
this: Kernel {#31 …}
parameters: {
$request: {}
}
}
/DISK2/xehub/DOMAINS/brand-xe/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 {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}
/DISK2/xehub/DOMAINS/brand-xe/index.php
|| (isset($_SERVER["HTTP_X_PROTO"]) && (strpos($_SERVER["HTTP_X_PROTO"], "SSL") !== false))
) {
$_SERVER["HTTPS"] = "on";
}
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Xpressengine\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Arguments
Request {#26
#mobileResolver: Closure {#1687
class: "App\Providers\MobileServiceProvider"
this: MobileServiceProvider {#115 …}
parameters: {
$request: {
typeHint: "Illuminate\Http\Request"
}
$byUserAgent: {
default: false
}
}
}
#originInputSource: ParameterBag {#36}
#config: Repository {#40}
#localeSegment: false
#json: null
#convertedFiles: []
#userResolver: Closure {#1688
class: "Illuminate\Auth\AuthServiceProvider"
this: AuthServiceProvider {#43 …}
parameters: {
$guard: {
default: null
}
}
use: {
$app: Application {#5 …}
}
}
#routeResolver: Closure {#1695
class: "Illuminate\Routing\Router"
this: Router {#27 …}
use: {
$route: Route {#995 …}
}
}
+attributes: ParameterBag {#23}
+request: ParameterBag {#25}
+query: ParameterBag {#24}
+server: ServerBag {#34}
+files: FileBag {#33}
+cookies: ParameterBag {#32}
+headers: HeaderBag {#35}
#content: null
#languages: null
#charsets: null
#encodings: null
#acceptableContentTypes: array:1 [
0 => "*/*"
]
#pathInfo: "/plugin/social_login/auth/twitter"
#requestUri: "/plugin/social_login/auth/twitter"
#baseUrl: ""
#basePath: null
#method: "GET"
#format: null
#session: Store {#1928}
#locale: null
#defaultLocale: "en"
-isHostValid: true
-isForwardedValid: true
basePath: ""
format: "html"
}