/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/App/ErrorHandler.php
* @param int $errorLine
* @return bool
* @throws \Exception
*/
public function handler($errorNo, $errorStr, $errorFile, $errorLine)
{
if ($errorStr !== null && strpos($errorStr, 'DateTimeZone::__construct') !== false) {
// there's no way to distinguish between caught system exceptions and warnings
return false;
}
$errorNo = $errorNo & error_reporting();
if ($errorNo == 0) {
return false;
}
$msg = isset($this->errorPhrases[$errorNo]) ? $this->errorPhrases[$errorNo] : "Unknown error ({$errorNo})";
$msg .= ": {$errorStr} in {$errorFile} on line {$errorLine}";
// phpcs:ignore Magento2.Exceptions.DirectThrow
throw new \Exception($msg);
}
}
Arguments
"Deprecated Functionality: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in /home/eurozakup/web/eurozakup.com.ua/public_html/app/code/Undomod/SeoProduct/Observer/SeoUndoProduct.php on line 222"
/home/eurozakup/web/eurozakup.com.ua/public_html/app/code/Undomod/SeoProduct/Observer/SeoUndoProduct.php
'date' => $item['date'],
'images' => '',
'seller' => $item['seller'],
'url' => 'product-'.$item['alias'],
'pl_title' => $item['original_title'],
'old_product_id' => $item['id']
);
if(!empty($item['description'])){
$product['description'] = $item['description'];
}
if(!empty($item['images'])){
$product['images'] = $item['images'];
}
$unserCategories = [];
try
{
$unserCategories = unserialize($item['category']);
}catch(Exception $e) {
}
if(!empty($item['category'])){
$product['category'] = $unserCategories;
}
$this->importSimpleProducts($product);
}
}
}
if ($this->request->getFullActionName() == 'catalog_product_view') {
$currentProduct = $this->registry->registry('current_product');
$product_id = $currentProduct->getId();
$product_name = $currentProduct->getName();
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php
if (isset($configuration['shared']) && false === $configuration['shared']) {
$object = $this->_observerFactory->create($configuration['instance']);
} else {
$object = $this->_observerFactory->get($configuration['instance']);
}
$this->_callObserverMethod($object, $observer);
}
/**
* Execute Observer.
*
* @param \Magento\Framework\Event\ObserverInterface $object
* @param Observer $observer
* @return $this
* @throws \LogicException
*/
protected function _callObserverMethod($object, $observer)
{
if ($object instanceof \Magento\Framework\Event\ObserverInterface) {
$object->execute($observer);
} elseif ($this->_appState->getMode() == State::MODE_DEVELOPER) {
throw new \LogicException(
sprintf(
'Observer "%s" must implement interface "%s"',
get_class($object),
\Magento\Framework\Event\ObserverInterface::class
)
);
} else {
$this->logger->warning(sprintf(
'Observer "%s" must implement interface "%s"',
get_class($object),
\Magento\Framework\Event\ObserverInterface::class
));
}
return $this;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php
/**
* Dispatch event
*
* @param array $configuration
* @param Observer $observer
* @return void
*/
public function dispatch(array $configuration, Observer $observer)
{
/** Check whether event observer is disabled */
if (isset($configuration['disabled']) && true === $configuration['disabled']) {
return;
}
if (isset($configuration['shared']) && false === $configuration['shared']) {
$object = $this->_observerFactory->create($configuration['instance']);
} else {
$object = $this->_observerFactory->get($configuration['instance']);
}
$this->_callObserverMethod($object, $observer);
}
/**
* Execute Observer.
*
* @param \Magento\Framework\Event\ObserverInterface $object
* @param Observer $observer
* @return $this
* @throws \LogicException
*/
protected function _callObserverMethod($object, $observer)
{
if ($object instanceof \Magento\Framework\Event\ObserverInterface) {
$object->execute($observer);
} elseif ($this->_appState->getMode() == State::MODE_DEVELOPER) {
throw new \LogicException(
sprintf(
'Observer "%s" must implement interface "%s"',
get_class($object),
\Magento\Framework\Event\ObserverInterface::class
/home/eurozakup/web/eurozakup.com.ua/public_html/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
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/clawrock/magento2-debug/Plugin/Collector/EventCollectorPlugin.php
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
class EventCollectorPlugin
{
private \ClawRock\Debug\Model\Collector\EventCollector $eventCollector;
public function __construct(
\ClawRock\Debug\Model\Collector\EventCollector $eventCollector
) {
$this->eventCollector = $eventCollector;
}
public function aroundDispatch(
InvokerDefault $subject,
callable $proceed,
array $configuration,
Observer $observer
): void {
$start = microtime(true);
$proceed($configuration, $observer);
$end = microtime(true);
$this->eventCollector->log(new EventObserver(
$configuration['name'],
$configuration['instance'],
$observer->getEvent()->getName(),
$end - $start
));
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/generated/code/Magento/Framework/Event/Invoker/InvokerDefault/Interceptor.php
/**
* Interceptor class for @see \Magento\Framework\Event\Invoker\InvokerDefault
*/
class Interceptor extends \Magento\Framework\Event\Invoker\InvokerDefault implements \Magento\Framework\Interception\InterceptorInterface
{
use \Magento\Framework\Interception\Interceptor;
public function __construct(\Magento\Framework\Event\ObserverFactory $observerFactory, \Magento\Framework\App\State $appState, ?\Psr\Log\LoggerInterface $logger = null)
{
$this->___init();
parent::__construct($observerFactory, $appState, $logger);
}
/**
* {@inheritdoc}
*/
public function dispatch(array $configuration, \Magento\Framework\Event\Observer $observer)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'dispatch');
return $pluginInfo ? $this->___callPlugins('dispatch', func_get_args(), $pluginInfo) : parent::dispatch($configuration, $observer);
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/Event/Manager.php
* and multiple observers matching event name pattern
*
* @param string $eventName
* @param array $data
* @return void
*/
public function dispatch($eventName, array $data = [])
{
$eventName = $eventName !== null ? mb_strtolower($eventName) : '';
\Magento\Framework\Profiler::start('EVENT:' . $eventName, ['group' => 'EVENT', 'name' => $eventName]);
foreach ($this->_eventConfig->getObservers($eventName) as $observerConfig) {
$event = new \Magento\Framework\Event($data);
$event->setName($eventName);
$wrapper = new Observer();
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
$wrapper->setData(array_merge(['event' => $event], $data));
\Magento\Framework\Profiler::start('OBSERVER:' . $observerConfig['name']);
$this->_invoker->dispatch($observerConfig, $wrapper);
\Magento\Framework\Profiler::stop('OBSERVER:' . $observerConfig['name']);
}
\Magento\Framework\Profiler::stop('EVENT:' . $eventName);
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php
* Get proxied instance
*
* @return \Magento\Framework\Event\Manager
*/
protected function _getSubject()
{
if (!$this->_subject) {
$this->_subject = true === $this->_isShared
? $this->_objectManager->get($this->_instanceName)
: $this->_objectManager->create($this->_instanceName);
}
return $this->_subject;
}
/**
* {@inheritdoc}
*/
public function dispatch($eventName, array $data = [])
{
return $this->_getSubject()->dispatch($eventName, $data);
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/App/FrontController.php
* Dispatch the controller_action_postdispatch events.
*
* @param ActionInterface $actionInstance
* @param RequestInterface $request
* @return void
*/
private function dispatchPostDispatchEvents(ActionInterface $actionInstance, RequestInterface $request): void
{
Profiler::start('postdispatch');
if ($this->request instanceof HttpRequest) {
$this->eventManager->dispatch(
'controller_action_postdispatch_' . $request->getFullActionName(),
$this->getEventParameters($actionInstance)
);
$this->eventManager->dispatch(
'controller_action_postdispatch_' . $request->getRouteName(),
$this->getEventParameters($actionInstance)
);
}
$this->eventManager->dispatch('controller_action_postdispatch', $this->getEventParameters($actionInstance));
Profiler::stop('postdispatch');
}
/**
* Build the event parameter array
*
* @param ActionInterface $subject
* @return array
*/
private function getEventParameters(ActionInterface $subject): array
{
return ['controller_action' => $subject, 'request' => $this->request];
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/App/FrontController.php
$this->logger->debug(
sprintf('Request validation failed for action "%s"', get_class($actionInstance)),
["exception" => $exception]
);
$result = $exception->getReplaceResult();
if ($messages = $exception->getMessages()) {
foreach ($messages as $message) {
$this->messages->addErrorMessage($message);
}
}
}
$this->validatedRequest = true;
}
// Validation did not produce a result to replace the action's.
if (!$result) {
$this->dispatchPreDispatchEvents($actionInstance, $request);
$result = $this->getActionResponse($actionInstance, $request);
if (!$this->isSetActionNoPostDispatchFlag()) {
$this->dispatchPostDispatchEvents($actionInstance, $request);
}
}
//handling redirect to 404
if ($result instanceof NotFoundException) {
throw $result;
}
return $result;
}
/**
* Return the result of processed request
*
* There are 3 ways of handling requests:
* - Result without dispatching event when FLAG_NO_DISPATCH is set, just return ResponseInterface
* - Backwards-compatible way using `AbstractAction::dispatch` which is deprecated
* - Correct way for handling requests with `ActionInterface::execute`
*
* @param ActionInterface $actionInstance
* @param RequestInterface $request
/home/eurozakup/web/eurozakup.com.ua/public_html/vendor/magento/framework/App/FrontController.php
*
* @param RequestInterface|HttpRequest $request
* @return ResponseInterface|ResultInterface
* @throws \LogicException
* @throws LocalizedException
*/
public function dispatch(RequestInterface $request)
{
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;
}
}
}
Profiler::stop('routers_match');
if ($routingCycleCounter > 100) {
throw new \LogicException('Front controller reached 100 router match iterations');
}
return $result;
}
/**
/home/eurozakup/web/eurozakup.com.ua/public_html/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
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
/**
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
/home/eurozakup/web/eurozakup.com.ua/public_html/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) {
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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, ?\Magento\Framework\App\ActionFlag $actionFlag = null, ?\Magento\Framework\Event\ManagerInterface $eventManager = null, ?\Magento\Framework\App\RequestInterface $request = null)
{
$this->___init();
parent::__construct($routerList, $response, $requestValidator, $messageManager, $logger, $appState, $areaList, $actionFlag, $eventManager, $request);
}
/**
* {@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);
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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.
/home/eurozakup/web/eurozakup.com.ua/public_html/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
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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);
}
}
/home/eurozakup/web/eurozakup.com.ua/public_html/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
*
/home/eurozakup/web/eurozakup.com.ua/public_html/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;
http_response_code(500);
exit(1);
}
$bootstrap = Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication(\Magento\Framework\App\Http::class);
$bootstrap->run($app);