phpbb sits on: domain.com/forum
domain.com: project with "legacy" framework. When user logins/registers an account in domain.com, we copy this user's info into phpbb and login to both - domain.com and domain.com/forum
Now we are migrating our legacy project to symfony4 and our integration with forum does not work anymore. We are getting an error:
Error: Undefined class constant 'self::SCOPE_CONTAINER'
It seems that container from domain.com is not working with container from phpbb.
Is there a way to fix this without completely changing the way we integrate phpbb into our project?
When we needed to do some actions with phpbb in our domain.com we simply:
global $cache, $phpbb_dispatcher, $request, $user, $auth, $db, $config, $phpbb_log;
global $symfony_request, $phpbb_filesystem, $phpbb_path_helper, $phpbb_extension_manager, $template;
global $phpEx, $phpbb_root_path;
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Do some action. But now the error apears: Error: Undefined class constant 'self::SCOPE_CONTAINER'
I would appreaciate your ideas.