[DB][MODULES][ActivityPub] Cleanup table definitions

This commit is contained in:
Hugo Sales
2020-08-22 18:14:36 +00:00
committed by Hugo Sales
parent 522f40ca2f
commit f60bdaa2f0
7 changed files with 292 additions and 309 deletions

View File

@@ -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']);
}
}