if ($delegate->has($id)) {
return true;
}
}
return false;
}
public function inflector(string $type, callable $callback = null): InflectorInterface
{
return $this->inflectors->add($type, $callback);
}
public function delegate(ContainerInterface $container): self
{
$this->delegates[] = $container;
if ($container instanceof ContainerAwareInterface) {
$container->setContainer($this);
}
return $this;
}
protected function resolve($id, bool $new = false)
{
if ($this->definitions->has($id)) {
$resolved = (true === $new) ? $this->definitions->resolveNew($id) : $this->definitions->resolve($id);
return $this->inflectors->inflect($resolved);
}
if ($this->definitions->hasTag($id)) {
$arrayOf = (true === $new)
? $this->definitions->resolveTaggedNew($id)
: $this->definitions->resolveTagged($id);
array_walk($arrayOf, function (&$resolved) {
$resolved = $this->inflectors->inflect($resolved);
});
return $arrayOf;
}
if ($this->providers->provides($id)) {
$this->providers->register($id);
if (!$this->definitions->has($id) && !$this->definitions->hasTag($id)) {
throw new ContainerException(sprintf('Service provider lied about providing (%s) service', $id));
}
return $this->resolve($id, $new);
}
foreach ($this->delegates as $delegate) {
if ($delegate->has($id)) {
$resolved = $delegate->get($id);
return $this->inflectors->inflect($resolved);
}
}
throw new NotFoundException(sprintf('Alias (%s) is not being managed by the container or delegates', $id));
}
}
Fatal error: Uncaught Error: Class 'WeDevs\Dokan\ThirdParty\Packages\League\Container\Container' not found in /home/abauctio/public_html/wp-content/plugins/dokan-lite/includes/DependencyManagement/Container.php:16
Stack trace:
#0 /home/abauctio/public_html/wp-content/plugins/dokan-lite/vendor/composer/ClassLoader.php(576): include()
#1 /home/abauctio/public_html/wp-content/plugins/dokan-lite/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/abauctio/...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WeDevs\\Dokan\\De...')
#3 /home/abauctio/public_html/wp-content/plugins/dokan-lite/dokan.php(67): spl_autoload_call('WeDevs\\Dokan\\De...')
#4 /home/abauctio/public_html/wp-settings.php(526): include_once('/home/abauctio/...')
#5 /home/abauctio/public_html/wp-config.php(102): require_once('/home/abauctio/...')
#6 /home/abauctio/public_html/wp-load.php(50): require_once('/home/abauctio/...')
#7 /home/abauctio/public_html/wp-blog-header.php(13): require_once('/home/abauctio/...')
#8 /h in /home/abauctio/public_html/wp-content/plugins/dokan-lite/includes/DependencyManagement/Container.php on line 16