n manager. * @throws ContainerModificationsNotAllowedException If the allow override flag has been toggled off, and a * service instanceexists for a given service. */ public function configure(array $config) { if (isset($config['services'])) { foreach ($config['services'] as $service) { $this->validate($service); } } parent::configure($config); return $this; } /** * Override setService for additional plugin validation. * * {@inheritDoc} * * @param string|class-string $name * @param InstanceType $service */ public function setService($name, $service) { $this->validate($service); parent::setService($name, $service); } /** * @param class-string|string $name Service name of plugin to retrieve. * @param null|array $options Options to use when creating the instance. * @return mixed * @psalm-return ($name is class-string ? InstanceType : mixed) * @throws Exception\ServiceNotFoundException If the manager does not have * a service definition for the instance, and the service is not * auto-invokable. * @throws InvalidServiceException If the plugin created is invalid for the * plugin context. */ public function get($name, ?array $options = null) { if (! $this->has($name)) { if (! $this->autoAddInvokableClass || ! class_exists($name)) { throw new Exception\ServiceNotFoundException(sprintf( 'A plugin by the name "%s" was not found in the plugin manager %s', $name, static::class )); } $this->setFactory($name, Factory\InvokableFactory::class); } $instance = ! $options ? parent::get($name) : $this->build($name, $options); $this->validate($instance); return $instance; } /** * {@inheritDoc} * * @psalm-assert InstanceType $instance */ public function validate(mixed $instance) { if (method_exists($this, 'validatePlugin')) { trigger_error(sprintf( '%s::validatePlugin() has been deprecated as of 3.0; please define validate() instead', static::class ), E_USER_DEPRECATED); $this->validatePlugin($instance); return; } if (empty($this->instanceOf) || $instance instanceof $this->instanceOf) { return; } throw new InvalidServiceException(sprintf( 'Plugin manager "%s" expected an instance of type "%s", but "%s" was received', self::class, $this->instanceOf, is_object($instance) ? $instance::class : gettype($instance) )); } /** * Implemented for backwards compatibility only. * * Returns the creation context. * * @deprecated since 3.0.0. The creation context should be passed during * instantiation instead. * * @return void */ public function setServiceLocator(ContainerInterface $container) { trigger_error(sprintf( 'Usage of %s is deprecated since v3.0.0; please pass the container to the constructor instead', __METHOD__ ), E_USER_DEPRECATED); $this->creationContext = $container; } } n manager. * @throws ContainerModificationsNotAllowedException If the allow override flag has been toggled off, and a * service instanceexists for a given service. */ public function configure(array $config) { if (isset($config['services'])) { foreach ($config['services'] as $service) { $this->validate($service); } } parent::configure($config); return $this; } /** * Override setService for additional plugin validation. * * {@inheritDoc} * * @param string|class-string $name * @param InstanceType $service */ public function setService($name, $service) { $this->validate($service); parent::setService($name, $service); } /** * @param class-string|string $name Service name of plugin to retrieve. * @param null|array $options Options to use when creating the instance. * @return mixed * @psalm-return ($name is class-string ? InstanceType : mixed) * @throws Exception\ServiceNotFoundException If the manager does not have * a service definition for the instance, and the service is not * auto-invokable. * @throws InvalidServiceException If the plugin created is invalid for the * plugin context. */ public function get($name, ?array $options = null) { if (! $this->has($name)) { if (! $this->autoAddInvokableClass || ! class_exists($name)) { throw new Exception\ServiceNotFoundException(sprintf( 'A plugin by the name "%s" was not found in the plugin manager %s', $name, static::class )); } $this->setFactory($name, Factory\InvokableFactory::class); } $instance = ! $options ? parent::get($name) : $this->build($name, $options); $this->validate($instance); return $instance; } /** * {@inheritDoc} * * @psalm-assert InstanceType $instance */ public function validate(mixed $instance) { if (method_exists($this, 'validatePlugin')) { trigger_error(sprintf( '%s::validatePlugin() has been deprecated as of 3.0; please define validate() instead', static::class ), E_USER_DEPRECATED); $this->validatePlugin($instance); return; } if (empty($this->instanceOf) || $instance instanceof $this->instanceOf) { return; } throw new InvalidServiceException(sprintf( 'Plugin manager "%s" expected an instance of type "%s", but "%s" was received', self::class, $this->instanceOf, is_object($instance) ? $instance::class : gettype($instance) )); } /** * Implemented for backwards compatibility only. * * Returns the creation context. * * @deprecated since 3.0.0. The creation context should be passed during * instantiation instead. * * @return void */ public function setServiceLocator(ContainerInterface $container) { trigger_error(sprintf( 'Usage of %s is deprecated since v3.0.0; please pass the container to the constructor instead', __METHOD__ ), E_USER_DEPRECATED); $this->creationContext = $container; } }
Fatal error: Uncaught Error: Class "Laminas\ServiceManager\AbstractPluginManager" not found in /home/metaseit/vendor/laminas/laminas-mvc/src/Controller/ControllerManager.php:18 Stack trace: #0 /home/metaseit/vendor/composer/ClassLoader.php(576): include() #1 /home/metaseit/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/home/metaseit/...') #2 /home/metaseit/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php(107): Composer\Autoload\ClassLoader->loadClass('Laminas\\Mvc\\Con...') #3 /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ControllerManagerFactory.php(31): Laminas\ZendFrameworkBridge\Autoloader::Laminas\ZendFrameworkBridge\{closure}('Laminas\\Mvc\\Con...') #4 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ControllerManagerFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'ControllerManag...', NULL) #5 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('ControllerManag...') #6 /home/metaseit/vendor/laminas/laminas-modulemanager/src/Listener/ServiceListener.php(193): Laminas\ServiceManager\ServiceManager->get('ControllerManag...') #7 /home/metaseit/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\ModuleManager\Listener\ServiceListener->onLoadModulesPost(Object(Laminas\ModuleManager\ModuleEvent)) #8 /home/metaseit/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\ModuleManager\ModuleEvent)) #9 /home/metaseit/vendor/laminas/laminas-modulemanager/src/ModuleManager.php(108): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\ModuleManager\ModuleEvent)) #10 /home/metaseit/vendor/laminas/laminas-mvc/src/Application.php(251): Laminas\ModuleManager\ModuleManager->loadModules() #11 /home/metaseit/public_html/popup-seite.ch/index.php(30): Laminas\Mvc\Application::init(Array) #12 {main} thrown in /home/metaseit/vendor/laminas/laminas-mvc/src/Controller/ControllerManager.php on line 18