/var/www/vhosts/salz.kaufen/httpdocs/vendor/yireo/magento2-whoops/Plugin/HttpApp.php
* @param Http $subject
* @param Closure $proceed
* @return ResponseInterface
* @throws Exception
*/
public function aroundLaunch(Http $subject, Closure $proceed): ResponseInterface
{
try {
return $proceed();
} catch (Throwable $e) {
if ($e instanceof Exception) {
throw $e;
}
/**
* Convert the Throwable to an exception for it to be caught by the main catch(\Exception) block.
*
* @see \Magento\Framework\App\Bootstrap::run
*/
throw new Exception($e->getMessage(), $e->getCode(), $e);
}
}
/**
* Add custom resource path to allow us override Whoops resources
*
* @return void
*/
public function addCustomViewsFolderToResourcePaths(): void
{
$viewsDirPath = __DIR__ . '/../view/whoops';
if (is_dir($viewsDirPath)) {
$this->pageHandler->addResourcePath($viewsDirPath);
}
}
}
Arguments
"Class 'Mirasvit\Core\Model\UrlRewriteFactory' not found"
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php
{
if ($this->definitions === null) {
$this->definitions = new \Magento\Framework\ObjectManager\Definition\Runtime();
}
return $this->definitions;
}
/**
* Create object
*
* @param string $type
* @param array $args
*
* @return object
* @throws RuntimeException
*/
protected function createObject($type, $args)
{
try {
return new $type(...array_values($args));
} catch (\TypeError $exception) {
/**
* @var LoggerInterface $logger
*/
$logger = ObjectManager::getInstance()->get(LoggerInterface::class);
$logger->critical(
sprintf('Type Error occurred when creating object: %s, %s', $type, $exception->getMessage())
);
throw new RuntimeException(
new Phrase('Type Error occurred when creating object: %type, %msg', [
'type' => $type,
'msg' => $exception->getMessage()
])
);
}
}
/**
* Resolve an argument
Arguments
"Class 'Mirasvit\Core\Model\UrlRewriteFactory' not found"
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php
} elseif (isset($argument['_a_'])) {
if (isset($this->globalArguments[$argument['_a_']])) {
$argument = $this->globalArguments[$argument['_a_']];
} else {
$argument = $argument['_d_'];
}
}
}
$args = array_values($args);
} else {
// Case 3: arguments retrieved in runtime
$parameters = $this->getDefinitions()->getParameters($type) ?: [];
$args = $this->resolveArgumentsInRuntime(
$type,
$parameters,
$arguments
);
}
return $this->createObject($type, $args);
}
/**
* Parse array argument
*
* @param array $array
*
* @return void
*
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
*/
protected function parseArray(&$array)
{
foreach ($array as $key => &$argument) {
if ($argument === (array)$argument) {
if (isset($argument['_i_'])) {
$argument = $this->get($argument['_i_']);
} elseif (isset($argument['_ins_'])) {
$argument = $this->create($argument['_ins_']);
} elseif (isset($argument['_a_'])) {
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php
} else {
$argument = $argument['_d_'];
}
} else {
$this->parseArray($argument);
}
}
}
}
/**
* Retrieve cached object instance
*
* @param string $type
* @return mixed
*/
protected function get($type)
{
if (!isset($this->sharedInstances[$type])) {
$this->sharedInstances[$type] = $this->create($type);
}
return $this->sharedInstances[$type];
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php
return new $type();
} elseif ($args !== null) {
/**
* Case 2: arguments retrieved from pre-compiled DI cache
*
* Argument key meanings:
*
* _i_: shared instance of a class or interface
* _ins_: non-shared instance of a class or interface
* _v_: non-array literal value
* _vac_: array, may be nested and contain other types of keys listed here (objects, array, nulls, etc)
* _vn_: null value
* _a_: value to be taken from named environment variable
* _d_: default value in case environment variable specified by _a_ does not exist
*/
foreach ($args as $key => &$argument) {
if (isset($arguments[$key])) {
$argument = $arguments[$key];
} elseif (isset($argument['_i_'])) {
$argument = $this->get($argument['_i_']);
} elseif (isset($argument['_ins_'])) {
$argument = $this->create($argument['_ins_']);
} elseif (isset($argument['_v_'])) {
$argument = $argument['_v_'];
} elseif (isset($argument['_vac_'])) {
$argument = $argument['_vac_'];
$this->parseArray($argument);
} elseif (isset($argument['_vn_'])) {
$argument = null;
} elseif (isset($argument['_a_'])) {
if (isset($this->globalArguments[$argument['_a_']])) {
$argument = $this->globalArguments[$argument['_a_']];
} else {
$argument = $argument['_d_'];
}
}
}
$args = array_values($args);
} else {
// Case 3: arguments retrieved in runtime
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php
} else {
$argument = $argument['_d_'];
}
} else {
$this->parseArray($argument);
}
}
}
}
/**
* Retrieve cached object instance
*
* @param string $type
* @return mixed
*/
protected function get($type)
{
if (!isset($this->sharedInstances[$type])) {
$this->sharedInstances[$type] = $this->create($type);
}
return $this->sharedInstances[$type];
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/Factory/Compiled.php
return new $type();
} elseif ($args !== null) {
/**
* Case 2: arguments retrieved from pre-compiled DI cache
*
* Argument key meanings:
*
* _i_: shared instance of a class or interface
* _ins_: non-shared instance of a class or interface
* _v_: non-array literal value
* _vac_: array, may be nested and contain other types of keys listed here (objects, array, nulls, etc)
* _vn_: null value
* _a_: value to be taken from named environment variable
* _d_: default value in case environment variable specified by _a_ does not exist
*/
foreach ($args as $key => &$argument) {
if (isset($arguments[$key])) {
$argument = $arguments[$key];
} elseif (isset($argument['_i_'])) {
$argument = $this->get($argument['_i_']);
} elseif (isset($argument['_ins_'])) {
$argument = $this->create($argument['_ins_']);
} elseif (isset($argument['_v_'])) {
$argument = $argument['_v_'];
} elseif (isset($argument['_vac_'])) {
$argument = $argument['_vac_'];
$this->parseArray($argument);
} elseif (isset($argument['_vn_'])) {
$argument = null;
} elseif (isset($argument['_a_'])) {
if (isset($this->globalArguments[$argument['_a_']])) {
$argument = $this->globalArguments[$argument['_a_']];
} else {
$argument = $argument['_d_'];
}
}
}
$args = array_values($args);
} else {
// Case 3: arguments retrieved in runtime
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php
* @param array &$sharedInstances
*/
public function __construct(FactoryInterface $factory, ConfigInterface $config, &$sharedInstances = [])
{
$this->_config = $config;
$this->_factory = $factory;
$this->_sharedInstances = &$sharedInstances;
$this->_sharedInstances[\Magento\Framework\ObjectManagerInterface::class] = $this;
}
/**
* Create new object instance
*
* @param string $type
* @param array $arguments
* @return mixed
*/
public function create($type, array $arguments = [])
{
return $this->_factory->create($this->_config->getPreference($type), $arguments);
}
/**
* Retrieve cached object instance
*
* @param string $type
* @return mixed
*/
public function get($type)
{
$type = ltrim($type, '\\');
$type = $this->_config->getPreference($type);
if (!isset($this->_sharedInstances[$type])) {
$this->_sharedInstances[$type] = $this->_factory->create($type);
}
return $this->_sharedInstances[$type];
}
/**
* Configure di instance
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/App/RouterList.php
$this->routerList = array_filter(
$routerList,
function ($item) {
return (!isset($item['disable']) || !$item['disable']) && $item['class'];
}
);
uasort($this->routerList, [$this, 'compareRoutersSortOrder']);
}
/**
* Retrieve router instance by id
*
* @param string $routerId
* @return RouterInterface
*/
protected function getRouterInstance($routerId)
{
if (!isset($this->routerList[$routerId]['object'])) {
$this->routerList[$routerId]['object'] = $this->objectManager->create(
$this->routerList[$routerId]['class']
);
}
return $this->routerList[$routerId]['object'];
}
/**
* (PHP 5 >= 5.0.0)<br/>
* Return the current element
* @link http://php.net/manual/en/iterator.current.php
* @return RouterInterface
*/
public function current()
{
return $this->getRouterInstance($this->key());
}
/**
* (PHP 5 >= 5.0.0)<br/>
* Move forward to next element
* @link http://php.net/manual/en/iterator.next.php
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/App/RouterList.php
*/
protected function getRouterInstance($routerId)
{
if (!isset($this->routerList[$routerId]['object'])) {
$this->routerList[$routerId]['object'] = $this->objectManager->create(
$this->routerList[$routerId]['class']
);
}
return $this->routerList[$routerId]['object'];
}
/**
* (PHP 5 >= 5.0.0)<br/>
* Return the current element
* @link http://php.net/manual/en/iterator.current.php
* @return RouterInterface
*/
public function current()
{
return $this->getRouterInstance($this->key());
}
/**
* (PHP 5 >= 5.0.0)<br/>
* Move forward to next element
* @link http://php.net/manual/en/iterator.next.php
* @return void Any returned value is ignored.
*/
public function next()
{
next($this->routerList);
}
/**
* (PHP 5 >= 5.0.0)<br/>
* Return the key of the current element
* @link http://php.net/manual/en/iterator.key.php
* @return string|int|null
*/
public function key()
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/App/FrontController.php
?? ObjectManager::getInstance()->get(AreaList::class);
}
/**
* Perform action and generate response
*
* @param RequestInterface|HttpRequest $request
* @return ResponseInterface|ResultInterface
* @throws \LogicException
* @throws LocalizedException
*/
public function dispatch(RequestInterface $request)
{
\Magento\Framework\Profiler::start('routers_match');
$this->validatedRequest = false;
$routingCycleCounter = 0;
$result = null;
while (!$request->isDispatched() && $routingCycleCounter++ < 100) {
/** @var \Magento\Framework\App\RouterInterface $router */
foreach ($this->_routerList as $router) {
try {
$actionInstance = $router->match($request);
if ($actionInstance) {
$result = $this->processRequest(
$request,
$actionInstance
);
break;
}
} catch (\Magento\Framework\Exception\NotFoundException $e) {
$request->initForward();
$request->setActionName('noroute');
$request->setDispatched(false);
break;
}
}
}
\Magento\Framework\Profiler::stop('routers_match');
if ($routingCycleCounter > 100) {
throw new \LogicException('Front controller reached 100 router match iterations');
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
*/
public function ___init()
{
$this->pluginList = ObjectManager::getInstance()->get(PluginListInterface::class);
$this->subjectType = get_parent_class($this);
if (method_exists($this->subjectType, '___init')) {
parent::___init();
}
}
/**
* Calls parent class method
*
* @param string $method
* @param array $arguments
* @return mixed
*/
public function ___callParent($method, array $arguments)
{
return parent::$method(...array_values($arguments));
}
/**
* Calls parent class sleep if defined, otherwise provides own implementation
*
* @return array
*/
public function __sleep()
{
if (method_exists(get_parent_class($this), '__sleep')) {
$properties = parent::__sleep();
} else {
$properties = array_keys(get_object_vars($this));
}
$properties = array_diff($properties, ['pluginList', 'subjectType']);
return $properties;
}
/**
* Causes Interceptor to be initialized
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php
$uri = parse_url($baseUrl);
if (!$this->getBaseUrlChecker()->execute($uri, $request)) {
$redirectUrl = $this->_url->getRedirectUrl(
$this->_url->getDirectUrl(ltrim($request->getPathInfo(), '/'), ['_nosid' => true])
);
$redirectCode = (int)$this->_scopeConfig->getValue(
'web/url/redirect_to_base',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
) !== 301 ? 302 : 301;
$response = $this->_responseFactory->create();
$response->setRedirect($redirectUrl, $redirectCode);
$response->setNoCacheHeaders();
return $response;
}
}
}
$request->setDispatched(false);
return $proceed($request);
}
/**
* Gets base URL checker.
*
* @return \Magento\Store\Model\BaseUrlChecker
* @deprecated 100.1.0
*/
private function getBaseUrlChecker()
{
if ($this->baseUrlChecker === null) {
$this->baseUrlChecker = \Magento\Framework\App\ObjectManager::getInstance()->get(
\Magento\Store\Model\BaseUrlChecker::class
);
}
return $this->baseUrlChecker;
}
/**
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE])) {
// Call 'before' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
/var/www/vhosts/salz.kaufen/httpdocs/app/code/Amasty/InvisibleCaptcha/Plugin/Framework/App/FrontControllerInterface/ValidateCaptcha.php
&& false !== strpos($this->urlBuilder->getCurrentUrl(), $captchaUrl)
) {
$token = $request->getPost('g-recaptcha-response');
$validation = $this->captchaModel->verify($token);
if (!$validation['success']) {
$this->messageManager->addErrorMessage($validation['error']);
$response = $this->responseFactory->create();
$response->setRedirect($this->redirect->getRefererUrl());
$response->setNoCacheHeaders();
return $response;
}
break;
}
}
}
return $proceed($request);
}
/**
* @param string $captchaUrl
* @return bool
*/
private function isInIgnoreList(string $captchaUrl): bool
{
if ($this->session->getCustomerGroupId() != Group::NOT_LOGGED_IN_ID) {
foreach ($this->ignoreListForLoggedIn as $ignoredUrl) {
if (false !== strpos($captchaUrl, $ignoredUrl)) {
return true;
}
}
}
return false;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE])) {
// Call 'before' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php
* Add PageCache functionality to Dispatch method
*
* @param \Magento\Framework\App\FrontControllerInterface $subject
* @param callable $proceed
* @param \Magento\Framework\App\RequestInterface $request
* @return \Magento\Framework\Controller\ResultInterface|\Magento\Framework\App\Response\Http
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function aroundDispatch(
\Magento\Framework\App\FrontControllerInterface $subject,
\Closure $proceed,
\Magento\Framework\App\RequestInterface $request
) {
$this->version->process();
if (!$this->config->isEnabled() || $this->config->getType() != \Magento\PageCache\Model\Config::BUILT_IN) {
return $proceed($request);
}
$result = $this->kernel->load();
if ($result === false) {
$result = $proceed($request);
if ($result instanceof ResponseHttp) {
$this->addDebugHeaders($result);
$this->kernel->process($result);
}
} else {
$this->addDebugHeader($result, 'X-Magento-Cache-Debug', 'HIT', true);
}
return $result;
}
/**
* Set cache control
*
* @param ResponseHttp $result
* @return ResponseHttp
*/
protected function addDebugHeaders(ResponseHttp $result)
{
$cacheControlHeader = $result->getHeader('Cache-Control');
if ($cacheControlHeader instanceof \Laminas\Http\Header\HeaderInterface) {
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
*/
public function ___init()
{
$this->pluginList = ObjectManager::getInstance()->get(PluginListInterface::class);
$this->subjectType = get_parent_class($this);
if (method_exists($this->subjectType, '___init')) {
parent::___init();
}
}
/**
* Calls parent class method
*
* @param string $method
* @param array $arguments
* @return mixed
*/
public function ___callParent($method, array $arguments)
{
return parent::$method(...array_values($arguments));
}
/**
* Calls parent class sleep if defined, otherwise provides own implementation
*
* @return array
*/
public function __sleep()
{
if (method_exists(get_parent_class($this), '__sleep')) {
$properties = parent::__sleep();
} else {
$properties = array_keys(get_object_vars($this));
}
$properties = array_diff($properties, ['pluginList', 'subjectType']);
return $properties;
}
/**
* Causes Interceptor to be initialized
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/generated/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin/Interceptor.php
/**
* Interceptor class for @see \Magento\PageCache\Model\App\FrontController\BuiltinPlugin
*/
class Interceptor extends \Magento\PageCache\Model\App\FrontController\BuiltinPlugin implements \Magento\Framework\Interception\InterceptorInterface
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\PageCache\Model\Config $config, \Magento\Framework\App\PageCache\Version $version, \Magento\Framework\App\PageCache\Kernel $kernel, \Magento\Framework\App\State $state)
{
$this->___init();
parent::__construct($config, $version, $kernel, $state);
}
/**
* {@inheritdoc}
*/
public function aroundDispatch(\Magento\Framework\App\FrontControllerInterface $subject, \Closure $proceed, \Magento\Framework\App\RequestInterface $request)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'aroundDispatch');
return $pluginInfo ? $this->___callPlugins('aroundDispatch', func_get_args(), $pluginInfo) : parent::aroundDispatch($subject, $proceed, $request);
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE])) {
// Call 'before' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/generated/code/Magento/Framework/App/FrontController/Interceptor.php
/**
* Interceptor class for @see \Magento\Framework\App\FrontController
*/
class Interceptor extends \Magento\Framework\App\FrontController implements \Magento\Framework\Interception\InterceptorInterface
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\Framework\App\RouterListInterface $routerList, \Magento\Framework\App\ResponseInterface $response, ?\Magento\Framework\App\Request\ValidatorInterface $requestValidator = null, ?\Magento\Framework\Message\ManagerInterface $messageManager = null, ?\Psr\Log\LoggerInterface $logger = null, ?\Magento\Framework\App\State $appState = null, ?\Magento\Framework\App\AreaList $areaList = null)
{
$this->___init();
parent::__construct($routerList, $response, $requestValidator, $messageManager, $logger, $appState, $areaList);
}
/**
* {@inheritdoc}
*/
public function dispatch(\Magento\Framework\App\RequestInterface $request)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'dispatch');
return $pluginInfo ? $this->___callPlugins('dispatch', func_get_args(), $pluginInfo) : parent::dispatch($request);
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/App/Http.php
$this->_configLoader = $configLoader;
$this->_state = $state;
$this->registry = $registry;
$this->exceptionHandler = $exceptionHandler ?: $this->_objectManager->get(ExceptionHandlerInterface::class);
}
/**
* Run application
*
* @return ResponseInterface
* @throws LocalizedException|\InvalidArgumentException
*/
public function launch()
{
$areaCode = $this->_areaList->getCodeByFrontName($this->_request->getFrontName());
$this->_state->setAreaCode($areaCode);
$this->_objectManager->configure($this->_configLoader->load($areaCode));
/** @var \Magento\Framework\App\FrontControllerInterface $frontController */
$frontController = $this->_objectManager->get(\Magento\Framework\App\FrontControllerInterface::class);
$result = $frontController->dispatch($this->_request);
// TODO: Temporary solution until all controllers return ResultInterface (MAGETWO-28359)
if ($result instanceof ResultInterface) {
$this->registry->register('use_page_cache_plugin', true, true);
$result->renderResult($this->_response);
} elseif ($result instanceof HttpInterface) {
$this->_response = $result;
} else {
throw new \InvalidArgumentException('Invalid return type');
}
if ($this->_request->isHead() && $this->_response->getHttpResponseCode() == 200) {
$this->handleHeadRequest();
}
// This event gives possibility to launch something before sending output (allow cookie setting)
$eventParams = ['request' => $this->_request, 'response' => $this->_response];
$this->_eventManager->dispatch('controller_front_send_response_before', $eventParams);
return $this->_response;
}
/**
* Handle HEAD requests by adding the Content-Length header and removing the body from the response.
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
*/
public function ___init()
{
$this->pluginList = ObjectManager::getInstance()->get(PluginListInterface::class);
$this->subjectType = get_parent_class($this);
if (method_exists($this->subjectType, '___init')) {
parent::___init();
}
}
/**
* Calls parent class method
*
* @param string $method
* @param array $arguments
* @return mixed
*/
public function ___callParent($method, array $arguments)
{
return parent::$method(...array_values($arguments));
}
/**
* Calls parent class sleep if defined, otherwise provides own implementation
*
* @return array
*/
public function __sleep()
{
if (method_exists(get_parent_class($this), '__sleep')) {
$properties = parent::__sleep();
} else {
$properties = array_keys(get_object_vars($this));
}
$properties = array_diff($properties, ['pluginList', 'subjectType']);
return $properties;
}
/**
* Causes Interceptor to be initialized
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/yireo/magento2-whoops/Plugin/HttpApp.php
private function setEditor(): bool
{
if ($editor = $this->config->getEditor()) {
$this->pageHandler->setEditor($editor);
return true;
}
return false;
}
/**
* @param Http $subject
* @param Closure $proceed
* @return ResponseInterface
* @throws Exception
*/
public function aroundLaunch(Http $subject, Closure $proceed): ResponseInterface
{
try {
return $proceed();
} catch (Throwable $e) {
if ($e instanceof Exception) {
throw $e;
}
/**
* Convert the Throwable to an exception for it to be caught by the main catch(\Exception) block.
*
* @see \Magento\Framework\App\Bootstrap::run
*/
throw new Exception($e->getMessage(), $e->getCode(), $e);
}
}
/**
* Add custom resource path to allow us override Whoops resources
*
* @return void
*/
public function addCustomViewsFolderToResourcePaths(): void
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE])) {
// Call 'before' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_BEFORE] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'before' . $capMethod;
$beforeResult = $pluginInstance->$pluginMethod($this, ...array_values($arguments));
if ($beforeResult !== null) {
$arguments = (array)$beforeResult;
}
}
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AROUND])) {
// Call 'around' listener
$code = $currentPluginInfo[DefinitionInterface::LISTENER_AROUND];
$pluginInfo = $pluginList->getNext($type, $method, $code);
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/Interception/Interceptor.php
$pluginMethod = 'around' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $next, ...array_values($arguments));
} else {
// Call original method
$result = $subject->___callParent($method, $arguments);
}
if (isset($currentPluginInfo[DefinitionInterface::LISTENER_AFTER])) {
// Call 'after' listeners
foreach ($currentPluginInfo[DefinitionInterface::LISTENER_AFTER] as $code) {
$pluginInstance = $pluginList->getPlugin($type, $code);
$pluginMethod = 'after' . $capMethod;
$result = $pluginInstance->$pluginMethod($subject, $result, ...array_values($arguments));
}
}
return $result;
};
$result = $next(...array_values($arguments));
$next = null;
return $result;
}
}
/var/www/vhosts/salz.kaufen/httpdocs/generated/code/Magento/Framework/App/Http/Interceptor.php
/**
* Interceptor class for @see \Magento\Framework\App\Http
*/
class Interceptor extends \Magento\Framework\App\Http implements \Magento\Framework\Interception\InterceptorInterface
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Event\Manager $eventManager, \Magento\Framework\App\AreaList $areaList, \Magento\Framework\App\Request\Http $request, \Magento\Framework\App\Response\Http $response, \Magento\Framework\ObjectManager\ConfigLoaderInterface $configLoader, \Magento\Framework\App\State $state, \Magento\Framework\Registry $registry, ?\Magento\Framework\App\ExceptionHandlerInterface $exceptionHandler = null)
{
$this->___init();
parent::__construct($objectManager, $eventManager, $areaList, $request, $response, $configLoader, $state, $registry, $exceptionHandler);
}
/**
* {@inheritdoc}
*/
public function launch()
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'launch');
return $pluginInfo ? $this->___callPlugins('launch', func_get_args(), $pluginInfo) : parent::launch();
}
/**
* {@inheritdoc}
*/
public function catchException(\Magento\Framework\App\Bootstrap $bootstrap, \Exception $exception) : bool
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'catchException');
return $pluginInfo ? $this->___callPlugins('catchException', func_get_args(), $pluginInfo) : parent::catchException($bootstrap, $exception);
}
}
/var/www/vhosts/salz.kaufen/httpdocs/vendor/magento/framework/App/Bootstrap.php
}
}
/**
* Runs an application
*
* @param \Magento\Framework\AppInterface $application
* @return void
*
* phpcs:disable Magento2.Exceptions,Squiz.Commenting.FunctionCommentThrowTag
*/
public function run(AppInterface $application)
{
try {
try {
\Magento\Framework\Profiler::start('magento');
$this->initErrorHandler();
$this->assertMaintenance();
$this->assertInstalled();
$response = $application->launch();
$response->sendResponse();
\Magento\Framework\Profiler::stop('magento');
} catch (\Exception $e) {
\Magento\Framework\Profiler::stop('magento');
$this->objectManager->get(LoggerInterface::class)->error($e->getMessage());
if (!$application->catchException($this, $e)) {
throw $e;
}
}
} catch (\Throwable $e) {
$this->terminate($e);
}
} // phpcs:enable
/**
* Asserts maintenance mode
*
* @return void
* @throws \Exception
*
/var/www/vhosts/salz.kaufen/httpdocs/pub/index.php
try {
require __DIR__ . '/../app/bootstrap.php';
} catch (\Exception $e) {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
Autoload error</h3>
</div>
<p>{$e->getMessage()}</p>
</div>
HTML;
exit(1);
}
$bootstrap = Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
$bootstrap->run($app);