public function process(ContainerBuilder $container)
    {
        if (!$container->hasAlias(SchemaBuilder::class)
            || !$container->hasDefinition(self::CLEAN_INSTALLER_DEF_ID)
        ) {
            return;
        }

        $cleanInstallerDefinition = $container->getDefinition(self::CLEAN_INSTALLER_DEF_ID);
        $cleanInstallerDefinition->setClass(CoreInstaller::class);
        $cleanInstallerDefinition->addArgument(new Reference(SchemaBuilder::class));
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasAlias(SchemaBuilder::class)
            || !$container->hasDefinition(self::CLEAN_INSTALLER_DEF_ID)
        ) {
            return;
        }

        $cleanInstallerDefinition = $container->getDefinition(self::CLEAN_INSTALLER_DEF_ID);
        $cleanInstallerDefinition->setClass(CoreInstaller::class);
        $cleanInstallerDefinition->addArgument(new Reference(SchemaBuilder::class));
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> hasAlias ( SchemaBuilder :: class ) || ! $ container -> hasDefinition ( self :: CLEAN_INSTALLER_DEF_ID ) ) { return ; } $ cleanInstallerDefinition = $ container -> getDefinition ( self :: CLEAN_INSTALLER_DEF_ID ) ; $ cleanInstallerDefinition -> setClass ( CoreInstaller :: class ) ; $ cleanInstallerDefinition -> addArgument ( new Reference ( SchemaBuilder :: class ) ) ; }
Replace Clean installer with CoreInstaller if required SchemaBuilder from DoctrineSchemaBundle is available.

@param \Symfony\Component\DependencyInjection\ContainerBuilder $container

@throws \Exception
Replace Clean installer with CoreInstaller if required SchemaBuilder from DoctrineSchemaBundle is available .