I have migrated to Laminas an application that uses Doctrine for the connection to the database.
In it I used
db = this-> getServiceLocator () -> get (‘doctrine.connection.orm_default’);
to work on the database.
But now I get this error:
A plugin by the name “getServiceLocator” was not found in the plugin manager Laminas \ Mvc \ Controller \ PluginManager
Could someone tell me how to go about solving it.
Thank you in advance.