Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 07:51:57
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/ObjectManager/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/ObjectManager/TMap.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\ObjectManager; use Magento\Framework\ObjectManagerInterface; /** * Class TMap * @internal */ class TMap implements \IteratorAggregate, \Countable, \ArrayAccess { /** * @var string */ private $type; /** * @var array */ private $array = []; /** * @var array */ private $objectsArray = []; /** * @var int */ private $counter = 0; /** * @var ObjectManagerInterface */ private $objectManager; /** * @var ConfigInterface */ private $configInterface; /** * @var \Closure */ private $objectCreationStrategy; /** * @param string $type * @param ObjectManagerInterface $objectManager * @param ConfigInterface $configInterface * @param array $array * @param \Closure $objectCreationStrategy */ public function __construct( $type, ObjectManagerInterface $objectManager, ConfigInterface $configInterface, array $array = [], \Closure $objectCreationStrategy = null ) { if (!class_exists($this->type) && !interface_exists($type)) { throw new \InvalidArgumentException(sprintf('Unknown type %s', $type)); } $this->type = $type; $this->objectManager = $objectManager; $this->configInterface = $configInterface; array_walk( $array, function ($item, $index) { $this->assertValidTypeLazy($item, $index); } ); $this->array = $array; $this->counter = count($array); $this->objectCreationStrategy = $objectCreationStrategy; } /** * Asserts that item type is collection defined type * * @param string $instanceName * @param string|int|null $index * @return void * @throws \InvalidArgumentException */ private function assertValidTypeLazy($instanceName, $index = null) { $realType = $this->configInterface->getInstanceType( $this->configInterface->getPreference($instanceName) ); if (!in_array( $this->type, array_unique(array_merge(class_parents($realType), class_implements($realType))), true )) { $this->throwTypeException($realType, $index); } } /** * Throws exception according type mismatch * * @param string $inputType * @param string $index * @return void * @throws \InvalidArgumentException */ private function throwTypeException($inputType, $index) { $message = 'Type mismatch. Expected type: %s. Actual: %s, Code: %s'; throw new \InvalidArgumentException( sprintf($message, $this->type, $inputType, $index) ); } /** * Returns object for requested index * * @param string|int $index * @return object */ private function initObject($index) { if (isset($this->objectsArray[$index])) { return $this->objectsArray[$index]; } $objectCreationStrategy = $this->objectCreationStrategy; return $this->objectsArray[$index] = $objectCreationStrategy === null ? $this->objectManager->create($this->array[$index]) : $objectCreationStrategy($this->objectManager, $this->array[$index]); } /** * {inheritdoc} */ public function getIterator() { if (array_keys($this->array) != array_keys($this->objectsArray)) { foreach (array_keys($this->array) as $index) { $this->initObject($index); } } return new \ArrayIterator($this->objectsArray); } /** * {inheritdoc} */ public function offsetExists($offset) { return array_key_exists($offset, $this->array); } /** * {inheritdoc} */ public function offsetGet($offset) { return isset($this->array[$offset]) ? $this->initObject($offset) : null; } /** * {inheritdoc} */ public function offsetSet($offset, $value) { $this->assertValidTypeLazy($value, $offset); if ($offset === null) { $this->array[] = $value; } else { $this->array[$offset] = $value; } $this->counter++; } /** * {inheritdoc} */ public function offsetUnset($offset) { if ($this->counter && isset($this->array[$offset])) { $this->counter--; unset($this->array[$offset]); if (isset($this->objectsArray[$offset])) { unset($this->objectsArray[$offset]); } } } /** * {inheritdoc} */ public function count() { return $this->counter; } }