M2.4.6, v1.1.3: There are multiple ObjectManager used in module

Created by Esther Nguyen, Modified on Mon, 01 Apr 2024 at 11:30 AM by Esther Nguyen

ISSUE:

There are multiple ObjectManager used in following files, around 19 times. We found this in our code review stage. 


app\code\Bss\SocialLogin\Controller\Account\Login.php

app\code\Bss\SocialLogin\etc\di.xml

app\code\Bss\SocialLogin\etc\frontend\di.xml

app\code\Bss\SocialLogin\Helper\Data.php

app\code\Bss\SocialLogin\Model\SocialLogin.php

app\code\Bss\SocialLogin\Model\Twitter.php


SOLUTION:


To resolve the issue, please download the file attached below and insert them into the following path:

app/code/Bss/SocialLogin/Controller/Account/Login.php

app/code/Bss/SocialLogin/Model/SocialLogin.php

app/code/Bss/SocialLogin/Model/Twitter.php


If you need any further assistance, please feel free to contact us. We'd be happy to support you!


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article