rityQueue> $class * @return $this */ public function setInternalQueueClass($class) { /** @psalm-suppress RedundantCastGivenDocblockType */ $this->queueClass = (string) $class; return $this; } /** * Does the queue contain the given datum? * * @param TValue $datum * @return bool */ public function contains($datum) { foreach ($this->items as $item) { if ($item['data'] === $datum) { return true; } } return false; } /** * Does the queue have an item with the given priority? * * @param TPriority $priority * @return bool */ public function hasPriority($priority) { foreach ($this->items as $item) { if ($item['priority'] === $priority) { return true; } } return false; } /** * Get the inner priority queue instance * * @throws Exception\DomainException * @return \SplPriorityQueue * @psalm-assert !null $this->queue */ protected function getQueue() { if (null === $this->queue) { /** @psalm-suppress UnsafeInstantiation */ $queue = new $this->queueClass(); /** @psalm-var \SplPriorityQueue $queue */ $this->queue = $queue; /** @psalm-suppress DocblockTypeContradiction */ if (! $this->queue instanceof \SplPriorityQueue) { throw new Exception\DomainException(sprintf( 'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"', $this->queue::class )); } } return $this->queue; } /** * Add support for deep cloning * * @return void */ public function __clone() { if (null !== $this->queue) { $this->queue = clone $this->queue; } } } rityQueue> $class * @return $this */ public function setInternalQueueClass($class) { /** @psalm-suppress RedundantCastGivenDocblockType */ $this->queueClass = (string) $class; return $this; } /** * Does the queue contain the given datum? * * @param TValue $datum * @return bool */ public function contains($datum) { foreach ($this->items as $item) { if ($item['data'] === $datum) { return true; } } return false; } /** * Does the queue have an item with the given priority? * * @param TPriority $priority * @return bool */ public function hasPriority($priority) { foreach ($this->items as $item) { if ($item['priority'] === $priority) { return true; } } return false; } /** * Get the inner priority queue instance * * @throws Exception\DomainException * @return \SplPriorityQueue * @psalm-assert !null $this->queue */ protected function getQueue() { if (null === $this->queue) { /** @psalm-suppress UnsafeInstantiation */ $queue = new $this->queueClass(); /** @psalm-var \SplPriorityQueue $queue */ $this->queue = $queue; /** @psalm-suppress DocblockTypeContradiction */ if (! $this->queue instanceof \SplPriorityQueue) { throw new Exception\DomainException(sprintf( 'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"', $this->queue::class )); } } return $this->queue; } /** * Add support for deep cloning * * @return void */ public function __clone() { if (null !== $this->queue) { $this->queue = clone $this->queue; } } }
Fatal error: Uncaught Error: Class "Laminas\Stdlib\PriorityQueue" not found in /home/metaseit/vendor/laminas/laminas-view/src/Resolver/AggregateResolver.php:53 Stack trace: #0 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ViewResolverFactory.php(25): Laminas\View\Resolver\AggregateResolver->__construct() #1 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ViewResolverFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'ViewResolver', NULL) #2 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('ViewResolver') #3 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ViewPhpRendererFactory.php(21): Laminas\ServiceManager\ServiceManager->get('ViewResolver') #4 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ViewPhpRendererFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'Laminas\\View\\Re...', NULL) #5 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('Laminas\\View\\Re...') #6 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ViewPhpRendererStrategyFactory.php(20): Laminas\ServiceManager\ServiceManager->get('Laminas\\View\\Re...') #7 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ViewPhpRendererStrategyFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'Laminas\\View\\St...', NULL) #8 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('Laminas\\View\\St...') #9 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ViewFactory.php(24): Laminas\ServiceManager\ServiceManager->get('Laminas\\View\\St...') #10 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ViewFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'Laminas\\View\\Vi...', NULL) #11 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('Laminas\\View\\Vi...') #12 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/HttpDefaultRenderingStrategyFactory.php(22): Laminas\ServiceManager\ServiceManager->get('Laminas\\View\\Vi...') #13 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\HttpDefaultRenderingStrategyFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'Laminas\\Mvc\\Vie...', NULL) #14 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('Laminas\\Mvc\\Vie...') #15 /home/metaseit/vendor/laminas/laminas-mvc/src/View/Http/ViewManager.php(99): Laminas\ServiceManager\ServiceManager->get('HttpDefaultRend...') #16 /home/metaseit/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\View\Http\ViewManager->onBootstrap(Object(Laminas\Mvc\MvcEvent)) #17 /home/metaseit/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent)) #18 /home/metaseit/vendor/laminas/laminas-mvc/src/Application.php(148): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent)) #19 /home/metaseit/vendor/laminas/laminas-mvc/src/Application.php(260): Laminas\Mvc\Application->bootstrap(Array) #20 /home/metaseit/public_html/popup-seite.ch/index.php(30): Laminas\Mvc\Application::init(Array) #21 {main} thrown in /home/metaseit/vendor/laminas/laminas-view/src/Resolver/AggregateResolver.php on line 53