e = $this->resolveClass($concrete); } if (is_object($concrete)) { $concrete = $this->invokeMethods($concrete); } if (is_string($concrete) && $this->getContainer()->has($concrete)) { $concrete = $this->getContainer()->get($concrete); } $this->resolved = $concrete; return $concrete; } /** * Resolve a callable. * * @param callable $concrete * * @return mixed */ protected function resolveCallable(callable $concrete) { $resolved = $this->resolveArguments($this->arguments); return call_user_func_array($concrete, $resolved); } /** * Resolve a class. * * @param string $concrete * * @return object * * @throws ReflectionException */ protected function resolveClass(string $concrete) { $resolved = $this->resolveArguments($this->arguments); $reflection = new ReflectionClass($concrete); return $reflection->newInstanceArgs($resolved); } /** * Invoke methods on resolved instance. * * @param object $instance * * @return object */ protected function invokeMethods($instance) { foreach ($this->methods as $method) { $args = $this->resolveArguments($method['arguments']); /** @var callable $callable */ $callable = [$instance, $method['method']]; call_user_func_array($callable, $args); } return $instance; } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Vendor\League\Container\Definition\Definition" not found in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php:13 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(90): require() #1 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(64): Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackā“„12_4\PHP_Autoloader::load_class('Automattic\\WooC...') #2 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(98): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->add('Automattic\\WooC...', Object(Automattic\WooCommerce\Container), true) #3 /htdocs/wp-content/plugins/woocommerce/src/Container.php(88): Automattic\WooCommerce\Vendor\League\Container\Container->share('Automattic\\WooC...', Object(Automattic\WooCommerce\Container)) #4 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(38): Automattic\WooCommerce\Container->__construct() #5 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #6 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php on line 13