forked from GNUsocial/gnu-social
[DB][MODULES][ActivityPub] Cleanup table definitions
This commit is contained in:
@@ -36,11 +36,17 @@ namespace App\DependencyInjection\Compiler;
|
||||
use App\Core\ModuleManager;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
|
||||
class ModuleManagerPass implements CompilerPassInterface
|
||||
{
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
ModuleManager::process();
|
||||
$container->findDefinition('doctrine.orm.default_metadata_driver')
|
||||
->addMethodCall('addDriver',
|
||||
[new Reference('app.core.schemadef_driver'), 'Plugin\\Entity'])
|
||||
->addMethodCall('addDriver',
|
||||
[new Reference('app.core.schemadef_driver'), 'Component\\Entity']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user