After doing the setup for this module, getting error in construct method

Created on 25 September 2023, about 1 year ago
Updated 28 September 2023, about 1 year ago

error report:

[pid 10440:tid 1848] [client ::1:54725] Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\\saze_client_documentation\\Controller\\sazeClientDocController::__construct(), 0 passed in E:\\xampp\\htdocs\\Govvas\\sazehomes\\web\\core\\lib\\Drupal\\Core\\Controller\\ControllerBase.php on line 109 and exactly 1 expected" at E:\\xampp\\htdocs\\Govvas\\sazehomes\\web\\modules\\custom\\saze_client_documentation\\src\\Controller\\sazeClientDocController.php line 13

line of code:
<?php

namespace Drupal\saze_client_documentation\Controller;

use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\HttpFoundation\Response;
use Drupal\Core\Render\RendererInterface;

class sazeClientDocController extends ControllerBase {

public $renderer;

public function __construct(RendererInterface $renderer) { // this line is showing error
$this->renderer = $renderer;
}

Need help in this argument issue, request to at least give some hint to fix this issue asap

Feature request
Status

Active

Component

Code

Created by

🇮🇳India grace_karuna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024