Dev version of the module compatible with D10, but after tryng to enable it I'm getting this error:

TypeError: Drupal\quickbooks_api\Access\AuthAccess::__construct(): Argument #2 ($requestStack) must be of type Drupal\Core\Http\RequestStack, Symfony\Component\HttpFoundation\RequestStack given,

That happens because in D10 the service request_stack now refers to class: Symfony\Component\HttpFoundation\RequestStack and the __construct methods in both AuthController and AuthAccess require Drupal\Core\Http\RequestStack.

For the more details see https://www.drupal.org/node/3265121

CommentFileSizeAuthor
#4 quickbooks_api-3394915.patch1.81 KBsarwan_verma
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

artem_sylchuk created an issue. See original summary.

artem_sylchuk’s picture

Status: Active » Needs review

Created the MR with the fix

sarwan_verma’s picture

StatusFileSize
new1.81 KB

Hi @alexandersluiter,
I have fixed this issue "Drupal\Core\Http\RequestStack is deprecated, 2.x dev version can't be enabled on D10 " and also attached patch,
please review and verify.

  • 3142b2b3 committed on 2.0.x
    #3394915 - Replaced deprecated \Drupal\Core\Http\RequestStack with \...
alexandersluiter’s picture

Thank you! I've committed this to 2.x.

alexandersluiter’s picture

Status: Needs review » Fixed
alexandersluiter’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.