ну а в родительском классе что в конструкторе?
Вот в проектном классе ProfileController
class ProfileController extends BaseProfileController
{
public function __construct(
UserRepository $userRepository,
UserService $userService,
TranslatorInterface $translator,
$softDeleting
)
{
parent::__construct($userRepository, $userService, $translator, $softDeleting);
$this->userService = $userService;
}
И в бандле
class ProfileController extends AbstractController
{
protected $userRepository;
protected $userService;
protected $translator;
protected $softDeleting;
/**
* ProfileController constructor.
* @param UserRepository $userRepository
* @param UserServiceInterface $userService
* @param TranslatorInterface $translator
* @param $softDeleting
*/
public function __construct(
UserRepository $userRepository,
UserServiceInterface $userService,
TranslatorInterface $translator,
$softDeleting
)
{
$this->userRepository = $userRepository;
$this->userService =$userService;
$this->translator = $translator;
$this->softDeleting = $softDeleting;
}