Symfony Exception

TypeError

HTTP 500 Internal Server Error

Swag\PayPal\RestApi\V1\Resource\TokenResource::__construct(): Argument #3 ($tokenValidator) must be of type Swag\PayPal\RestApi\V1\Service\TokenValidator, Swag\PayPal\RestApi\V1\Service\CredentialProvider given, called in /www/htdocs/w0106067/schneiderprintware/var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php on line 58864

Exception

TypeError

  1.         private readonly CacheItemPoolInterface $cache,
  2.         private readonly TokenClientFactoryInterface $tokenClientFactory,
  3.         private readonly CredentialProviderInterface $credentialProvider,
  4.         private readonly TokenValidator $tokenValidator
  5.     ) {
  6.     }
  7.     public function getToken(?string $salesChannelId): Token
  8.     {
  9.         $credentials $this->credentialProvider->createCredentialsObject($salesChannelId);
  1.         if (isset($container->privates['Swag\\PayPal\\RestApi\\V1\\Resource\\TokenResource'])) {
  2.             return $container->privates['Swag\\PayPal\\RestApi\\V1\\Resource\\TokenResource'];
  3.         }
  4.         return $container->privates['Swag\\PayPal\\RestApi\\V1\\Resource\\TokenResource'] = new \Swag\PayPal\RestApi\V1\Resource\TokenResource(($container->privates['Shopware\\Core\\Framework\\Adapter\\Cache\\CacheDecorator'] ?? self::getCacheDecoratorService($container)), ($container->privates['Swag\\PayPal\\RestApi\\Client\\TokenClientFactory'] ?? self::getTokenClientFactoryService($container)), $a, ($container->privates['Swag\\PayPal\\RestApi\\V1\\Service\\TokenValidator'] ??= new \Swag\PayPal\RestApi\V1\Service\TokenValidator()));
  5.     }
  6.     /**
  7.      * Gets the private 'Swag\PayPal\RestApi\V1\Service\CredentialProvider' shared service.
  8.      *
  1.      *
  2.      * @return \Swag\PayPal\RestApi\Client\PayPalClientFactory
  3.      */
  4.     protected static function getPayPalClientFactoryService($container)
  5.     {
  6.         $a = ($container->privates['Swag\\PayPal\\RestApi\\V1\\Resource\\TokenResource'] ?? self::getTokenResource2Service($container));
  7.         if (isset($container->privates['Swag\\PayPal\\RestApi\\Client\\PayPalClientFactory'])) {
  8.             return $container->privates['Swag\\PayPal\\RestApi\\Client\\PayPalClientFactory'];
  9.         }
  1.      *
  2.      * @return \Swag\PayPal\RestApi\V2\Resource\OrderResource
  3.      */
  4.     protected static function getOrderResourceService($container)
  5.     {
  6.         $a = ($container->privates['Swag\\PayPal\\RestApi\\Client\\PayPalClientFactory'] ?? self::getPayPalClientFactoryService($container));
  7.         if (isset($container->privates['Swag\\PayPal\\RestApi\\V2\\Resource\\OrderResource'])) {
  8.             return $container->privates['Swag\\PayPal\\RestApi\\V2\\Resource\\OrderResource'];
  9.         }
  1.         $e = ($container->privates['Swag\\PayPal\\OrdersApi\\Builder\\Util\\ItemListProvider'] ?? self::getItemListProviderService($container));
  2.         if (isset($container->privates['Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler'])) {
  3.             return $container->privates['Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler'];
  4.         }
  5.         $f = ($container->privates['Swag\\PayPal\\RestApi\\V2\\Resource\\OrderResource'] ?? self::getOrderResourceService($container));
  6.         if (isset($container->privates['Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler'])) {
  7.             return $container->privates['Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler'];
  8.         }
  9.         $g = ($container->privates['Swag\\PayPal\\Checkout\\Payment\\Service\\TransactionDataService'] ?? self::getTransactionDataServiceService($container));
in vendor/symfony/dependency-injection/Container.php :: getPUIHandlerService (line 403)
  1.         }
  2.         if (null === $method) {
  3.             return false !== $registry $this->{$registry}[$id] ?? null null;
  4.         }
  5.         if (false !== $registry) {
  6.             return $this->{$registry}[$id] ??= $load $this->load($method) : $this->{$method}($this);
  7.         }
  8.         if (!$load) {
  9.             return $this->{$method}($this);
  10.         }
  1.     public function get(string $id): mixed
  2.     {
  3.         return match (\count($this->serviceMap[$id] ?? [])) {
  4.             => parent::get($id),
  5.             => $this->serviceMap[$id][0],
  6.             default => ($this->factory)(...$this->serviceMap[$id]),
  7.         };
  8.     }
  9.     public function getProvidedServices(): array
  10.     {
  1.         ServiceProviderInterface $refundHandlers,
  2.         ServiceProviderInterface $recurringHandlers,
  3.         private readonly Connection $connection
  4.     ) {
  5.         foreach (\array_keys($syncHandlers->getProvidedServices()) as $serviceId) {
  6.             $handler $syncHandlers->get($serviceId);
  7.             $this->handlers[(string) $serviceId] = $handler;
  8.         }
  9.         foreach (\array_keys($asyncHandlers->getProvidedServices()) as $serviceId) {
  10.             $handler $asyncHandlers->get($serviceId);
  1.             'Shopware\\Core\\Framework\\App\\Payment\\Handler\\AppPaymentHandler' => ['privates''Shopware\\Core\\Framework\\App\\Payment\\Handler\\AppPaymentHandler''getAppPaymentHandlerService'false],
  2.         ], [
  3.             'Shopware\\Core\\Framework\\App\\Payment\\Handler\\AppPaymentHandler' => 'Shopware\\Core\\Framework\\App\\Payment\\Handler\\AppPaymentHandler',
  4.         ]);
  5.         return $container->privates['Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\PaymentHandlerRegistry'] = new \Shopware\Core\Checkout\Payment\Cart\PaymentHandler\PaymentHandlerRegistry(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService ??= $container->getService(...), [
  6.             'Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\CashPayment' => ['privates''Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\CashPayment''getCashPaymentService'false],
  7.             'Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\DebitPayment' => ['privates''Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\DebitPayment''getDebitPaymentService'false],
  8.             'Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\DefaultPayment' => ['privates''Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\DefaultPayment''getDefaultPaymentService'false],
  9.             'Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\InvoicePayment' => ['privates''Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\InvoicePayment''getInvoicePaymentService'false],
  10.             'Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\PrePayment' => ['privates''Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\PrePayment''getPrePaymentService'false],
  1.      *
  2.      * @return \Shopware\Core\Checkout\Payment\PreparedPaymentService
  3.      */
  4.     protected static function getPreparedPaymentServiceService($container)
  5.     {
  6.         $a = ($container->privates['Shopware\\Core\\Checkout\\Payment\\Cart\\PaymentHandler\\PaymentHandlerRegistry'] ?? self::getPaymentHandlerRegistryService($container));
  7.         if (isset($container->privates['Shopware\\Core\\Checkout\\Payment\\PreparedPaymentService'])) {
  8.             return $container->privates['Shopware\\Core\\Checkout\\Payment\\PreparedPaymentService'];
  9.         }
  10.         $b = ($container->services['app_payment_method.repository'] ?? self::getAppPaymentMethod_RepositoryService($container));
  1.         $d = ($container->services['event_dispatcher'] ?? self::getEventDispatcherService($container));
  2.         if (isset($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'])) {
  3.             return $container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'];
  4.         }
  5.         $e = ($container->privates['Shopware\\Core\\Checkout\\Payment\\PreparedPaymentService'] ?? self::getPreparedPaymentServiceService($container));
  6.         if (isset($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'])) {
  7.             return $container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'];
  8.         }
  1.     {
  2.         if (true === $lazyLoad) {
  3.             return $container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartService'] = $container->createProxy('CartServiceGhost32c4436', static fn () => \CartServiceGhost32c4436::createLazyGhost(static fn ($proxy) => self::getCartServiceService($container$proxy)));
  4.         }
  5.         return ($lazyLoad->__construct(($container->privates['Shopware\\Core\\Checkout\\Cart\\CartPersister'] ?? self::getCartPersisterService($container)), ($container->services['event_dispatcher'] ?? self::getEventDispatcherService($container)), ($container->privates['Shopware\\Core\\Checkout\\Cart\\CartCalculator'] ?? self::getCartCalculatorService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartLoadRoute'] ?? self::getCartLoadRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartDeleteRoute'] ?? self::getCartDeleteRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemAddRoute'] ?? self::getCartItemAddRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemUpdateRoute'] ?? self::getCartItemUpdateRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemRemoveRoute'] ?? self::getCartItemRemoveRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'] ?? self::getCartOrderRouteService($container)), ($container->privates['Shopware\\Core\\Checkout\\Cart\\CartFactory'] ?? self::getCartFactoryService($container))) && false ?: $lazyLoad);
  6.     }
  7.     /**
  8.      * Gets the public 'Shopware\Core\Checkout\Cart\TaxProvider\TaxProviderRegistry' shared service.
  9.      *
  1.      * @return \Shopware\Core\Checkout\Cart\SalesChannel\CartService
  2.      */
  3.     protected static function getCartServiceService($container$lazyLoad true)
  4.     {
  5.         if (true === $lazyLoad) {
  6.             return $container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartService'] = $container->createProxy('CartServiceGhost32c4436', static fn () => \CartServiceGhost32c4436::createLazyGhost(static fn ($proxy) => self::getCartServiceService($container$proxy)));
  7.         }
  8.         return ($lazyLoad->__construct(($container->privates['Shopware\\Core\\Checkout\\Cart\\CartPersister'] ?? self::getCartPersisterService($container)), ($container->services['event_dispatcher'] ?? self::getEventDispatcherService($container)), ($container->privates['Shopware\\Core\\Checkout\\Cart\\CartCalculator'] ?? self::getCartCalculatorService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartLoadRoute'] ?? self::getCartLoadRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartDeleteRoute'] ?? self::getCartDeleteRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemAddRoute'] ?? self::getCartItemAddRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemUpdateRoute'] ?? self::getCartItemUpdateRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartItemRemoveRoute'] ?? self::getCartItemRemoveRouteService($container)), ($container->services['Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartOrderRoute'] ?? self::getCartOrderRouteService($container)), ($container->privates['Shopware\\Core\\Checkout\\Cart\\CartFactory'] ?? self::getCartFactoryService($container))) && false ?: $lazyLoad);
  9.     }
in vendor/symfony/var-exporter/Internal/LazyObjectState.php :: ContainerQxjURop\{closure} (line 100)
  1.         try {
  2.             if ($defaultProperties array_diff_key(LazyObjectRegistry::$defaultProperties[$instance::class], $this->skippedProperties)) {
  3.                 PublicHydrator::hydrate($instance$defaultProperties);
  4.             }
  5.             ($this->initializer)($instance);
  6.         } catch (\Throwable $e) {
  7.             $this->status self::STATUS_UNINITIALIZED_FULL;
  8.             $this->reset($instance);
  9.             throw $e;
  1.                         ?? Hydrator::$propertyScopes[$this::class][$property][3] = new \ReflectionProperty($scope ?? $class$name);
  2.                 } else {
  3.                     $property null;
  4.                 }
  5.                 if ($property?->isInitialized($this) ?? LazyObjectState::STATUS_UNINITIALIZED_PARTIAL !== $state->initialize($this$name$readonlyScope ?? $scope)) {
  6.                     goto get_in_scope;
  7.                 }
  8.             }
  9.         }
  1.     ) {
  2.     }
  3.     public function setCart(Cart $cart): void
  4.     {
  5.         $this->cart[$cart->getToken()] = $cart;
  6.     }
  7.     public function createNew(string $token): Cart
  8.     {
  9.         $cart $this->cartFactory->createNew($token);
  1.             $context $this->factory->create($token$parameters->getSalesChannelId(), $session);
  2.             $this->eventDispatcher->dispatch(new SalesChannelContextCreatedEvent($context$token));
  3.             $result $this->ruleLoader->loadByToken($context$token);
  4.             $this->cartService->setCart($result->getCart());
  5.             return $context;
  6.         });
  7.     }
  8. }
in vendor/shopware/core/Profiling/Profiler.php -> Shopware\Core\System\SalesChannel\Context\{closure} (line 67)
  1.         try {
  2.             foreach (self::$profilers as $profiler) {
  3.                 $profiler->start($name$category$tags);
  4.             }
  5.             $result $closure();
  6.         } finally {
  7.             foreach (self::$profilers as $profiler) {
  8.                 $profiler->stop($name);
  9.             }
  10.         }
  1.     ) {
  2.     }
  3.     public function get(SalesChannelContextServiceParameters $parameters): SalesChannelContext
  4.     {
  5.         return Profiler::trace('sales-channel-context', function () use ($parameters) {
  6.             $token $parameters->getToken();
  7.             $session $this->contextPersister->load($token$parameters->getSalesChannelId());
  8.             if ($session['expired'] ?? false) {
  1.             $usedContextToken,
  2.             $request->headers->get(PlatformRequest::HEADER_LANGUAGE_ID),
  3.             $request->attributes->get(SalesChannelRequest::ATTRIBUTE_DOMAIN_CURRENCY_ID),
  4.             $request->attributes->get(SalesChannelRequest::ATTRIBUTE_DOMAIN_ID)
  5.         );
  6.         $context $this->contextService->get($contextServiceParameters);
  7.         // Validate if a customer login is required for the current request
  8.         $this->validateLogin($request$context);
  9.         // Update attributes and headers of the current request
SalesChannelRequestContextResolver->resolve(object(Request)) in custom/plugins/SwagCommercial/src/Subscription/Framework/Routing/SalesChannelRequestContextResolver.php (line 39)
  1.     ) {
  2.     }
  3.     public function resolve(Request $request): void
  4.     {
  5.         $this->decorated->resolve($request);
  6.         if (!License::get('SUBSCRIPTIONS-3156213')) {
  7.             return;
  8.         }
  1.         ];
  2.     }
  3.     public function resolveContext(ControllerEvent $event): void
  4.     {
  5.         $this->requestContextResolver->resolve($event->getRequest());
  6.     }
  7. }
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') in custom/plugins/SwagCommercial/src/Subscription/Framework/Event/SubscriptionEventDispatcher.php (line 27)
  1.     }
  2.     public function dispatch(object $event, ?string $eventName null): object
  3.     {
  4.         if (!License::get('SUBSCRIPTIONS-3156213')) {
  5.             return $this->decorated->dispatch($event$eventName);
  6.         }
  7.         if (!$eventName) {
  8.             $eventName $event::class;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch(object $event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.     ) {
  2.     }
  3.     public function dispatch(object $event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new ControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller$event->getControllerReflector());
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  3.     {
  4.         if (!KernelFactory::$active) {
  5.             return parent::handle($request$type$catch);
  6.         }
  7.         if ($request->attributes->get('exception') !== null) {
  8.             return parent::handle($request$type$catch);
  9.         }
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): Response
  3.     {
  4.         if (!KernelFactory::$active) {
  5.             return $this->getKernel()->handle($request$type$catch);
  6.         }
  7.         /**
  8.          * When we have an external reverse proxy which is ESI capable, we can't use the internal HttpCache, as it will resolve the ESI tags
  9.          */
in vendor/shopware/core/Kernel.php -> handle (line 157)
  1.     {
  2.         if (!$this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     public function boot(): void
  8.     {
  9.         if ($this->booted === true) {
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.     protected function forward(Request $requestbool $catch false, ?Response $entry null)
  2.     {
  3.         $this->surrogate?->addSurrogateCapability($request);
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('If-Modified-Since');
  3.         $subRequest->headers->remove('If-None-Match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
in vendor/shopware/core/HttpKernel.php -> doHandle (line 67)
  1.     }
  2.     public function handle(Request $requestint $type HttpKernelInterface::MAIN_REQUESTbool $catch true): HttpKernelResult
  3.     {
  4.         try {
  5.             return $this->doHandle($request$type$catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
HttpKernel->handle(object(Request), 1, true) in public/index.php (line 71)
  1.             $this->httpKernel $httpKernel;
  2.         }
  3.         public function handle(Request $requestint $type self::MAIN_REQUESTbool $catch true): Response
  4.         {
  5.             return $this->httpKernel->handle($request$type$catch)->getResponse();
  6.         }
  7.         public function terminate(Request $requestResponse $response): void
  8.         {
  9.             $this->httpKernel->terminate($request$response);
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/htdocs/w0106067/schneiderprintware/vendor/autoload_runtime.php') in public/index.php (line 14)
  1. use Symfony\Component\HttpKernel\HttpKernelInterface;
  2. use Symfony\Component\HttpKernel\TerminableInterface;
  3. $_SERVER['SCRIPT_FILENAME'] = __FILE__;
  4. require_once __DIR__ '/../vendor/autoload_runtime.php';
  5. if (!file_exists(__DIR__ '/../.env') && !file_exists(__DIR__ '/../.env.dist') && !file_exists(__DIR__ '/../.env.local.php')) {
  6.     $_SERVER['APP_RUNTIME_OPTIONS']['disable_dotenv'] = true;
  7. }

Logs

No log messages

Stack Trace

TypeError
TypeError:
Swag\PayPal\RestApi\V1\Resource\TokenResource::__construct(): Argument #3 ($tokenValidator) must be of type Swag\PayPal\RestApi\V1\Service\TokenValidator, Swag\PayPal\RestApi\V1\Service\CredentialProvider given, called in /www/htdocs/w0106067/schneiderprintware/var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php on line 58864

  at custom/plugins/SwagPayPal/src/RestApi/V1/Resource/TokenResource.php:31
  at Swag\PayPal\RestApi\V1\Resource\TokenResource->__construct(object(CacheDecorator), object(TokenClientFactory), object(CredentialProvider), object(TokenValidator))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:58864)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getTokenResource2Service(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:58812)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getPayPalClientFactoryService(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:58895)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getOrderResourceService(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:57578)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getPUIHandlerService(object(Shopware_Core_KernelDevDebugContainer))
     (vendor/symfony/dependency-injection/Container.php:403)
  at Symfony\Component\DependencyInjection\Container->getService('privates', 'Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler', 'getPUIHandlerService', false)
     (vendor/symfony/dependency-injection/Argument/ServiceLocator.php:40)
  at Symfony\Component\DependencyInjection\Argument\ServiceLocator->get('Swag\\PayPal\\Checkout\\Payment\\Method\\PUIHandler')
     (vendor/shopware/core/Checkout/Payment/Cart/PaymentHandler/PaymentHandlerRegistry.php:38)
  at Shopware\Core\Checkout\Payment\Cart\PaymentHandler\PaymentHandlerRegistry->__construct(object(ServiceLocator), object(ServiceLocator), object(ServiceLocator), object(ServiceLocator), object(ServiceLocator), object(Connection))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:40190)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getPaymentHandlerRegistryService(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:40327)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getPreparedPaymentServiceService(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:5926)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getCartOrderRouteService(object(Shopware_Core_KernelDevDebugContainer))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:5946)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::getCartServiceService(object(Shopware_Core_KernelDevDebugContainer), object(CartServiceGhost32c4436))
     (var/cache/dev_hea4e1f20639820edbfbf486a35b83095/ContainerQxjURop/Shopware_Core_KernelDevDebugContainer.php:5943)
  at ContainerQxjURop\Shopware_Core_KernelDevDebugContainer::ContainerQxjURop\{closure}(object(CartServiceGhost32c4436))
     (vendor/symfony/var-exporter/Internal/LazyObjectState.php:100)
  at Symfony\Component\VarExporter\Internal\LazyObjectState->initialize(object(CartServiceGhost32c4436), 'cart', 'Shopware\\Core\\Checkout\\Cart\\SalesChannel\\CartService')
     (vendor/symfony/var-exporter/LazyGhostTrait.php:176)
  at ContainerQxjURop\CartServiceGhost32c4436->__get('cart')
     (vendor/shopware/core/Checkout/Cart/SalesChannel/CartService.php:50)
  at Shopware\Core\Checkout\Cart\SalesChannel\CartService->setCart(object(Cart))
     (vendor/shopware/core/System/SalesChannel/Context/SalesChannelContextService.php:93)
  at Shopware\Core\System\SalesChannel\Context\SalesChannelContextService->Shopware\Core\System\SalesChannel\Context\{closure}()
     (vendor/shopware/core/Profiling/Profiler.php:67)
  at Shopware\Core\Profiling\Profiler::trace('sales-channel-context', object(Closure))
     (vendor/shopware/core/System/SalesChannel/Context/SalesChannelContextService.php:59)
  at Shopware\Core\System\SalesChannel\Context\SalesChannelContextService->get(object(SalesChannelContextServiceParameters))
     (vendor/shopware/core/Framework/Routing/SalesChannelRequestContextResolver.php:63)
  at Shopware\Core\Framework\Routing\SalesChannelRequestContextResolver->resolve(object(Request))
     (custom/plugins/SwagCommercial/src/Subscription/Framework/Routing/SalesChannelRequestContextResolver.php:39)
  at Shopware\Commercial\Subscription\Framework\Routing\SalesChannelRequestContextResolver->resolve(object(Request))
     (vendor/shopware/core/Framework/Routing/ContextResolverListener.php:34)
  at Shopware\Core\Framework\Routing\ContextResolverListener->resolveContext(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:116)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:220)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(ControllerEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (custom/plugins/SwagCommercial/src/Subscription/Framework/Event/SubscriptionEventDispatcher.php:27)
  at Shopware\Commercial\Subscription\Framework\Event\SubscriptionEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (vendor/shopware/core/Content/Flow/Dispatching/FlowDispatcher.php:47)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (vendor/shopware/core/Framework/Webhook/WebhookDispatcher.php:70)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (vendor/shopware/core/Framework/Event/NestedEventDispatcher.php:31)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller')
     (vendor/symfony/http-kernel/HttpKernel.php:169)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/shopware/core/Framework/Adapter/Kernel/HttpKernel.php:44)
  at Shopware\Core\Framework\Adapter\Kernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/shopware/core/Framework/Adapter/Kernel/HttpCacheKernel.php:50)
  at Shopware\Core\Framework\Adapter\Kernel\HttpCacheKernel->handle(object(Request), 1, true)
     (vendor/shopware/core/Kernel.php:157)
  at Shopware\Core\Kernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(Kernel), object(Request), 1, true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:473)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:448)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:346)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:221)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:146)
  at Shopware\Core\HttpKernel->doHandle(object(Request), 1, true)
     (vendor/shopware/core/HttpKernel.php:67)
  at Shopware\Core\HttpKernel->handle(object(Request), 1, true)
     (public/index.php:71)
  at Symfony\Component\HttpKernel\HttpKernelInterface@anonymous/www/htdocs/w0106067/schneiderprintware/public/index.php:61$a81->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/www/htdocs/w0106067/schneiderprintware/vendor/autoload_runtime.php')
     (public/index.php:14)