public static function setApplicationConnection(Application $application, string $sessionName)
    {
        $connectionService = sprintf('doctrine_phpcr.jackalope_doctrine_dbal.%s_connection', $sessionName);
        $helperSet = $application->getHelperSet();
        $helperSet->set(new DoctrineDBALHelper($application->getKernel()->getContainer()->get($connectionService)));
    }
public static function setApplicationConnection(Application $application, string $sessionName)
    {
        $connectionService = sprintf('doctrine_phpcr.jackalope_doctrine_dbal.%s_connection', $sessionName);
        $helperSet = $application->getHelperSet();
        $helperSet->set(new DoctrineDBALHelper($application->getKernel()->getContainer()->get($connectionService)));
    }
public static function setApplicationConnection ( Application $ application , string $ sessionName ) { $ connectionService = sprintf ( 'doctrine_phpcr.jackalope_doctrine_dbal.%s_connection' , $ sessionName ) ; $ helperSet = $ application -> getHelperSet ( ) ; $ helperSet -> set ( new DoctrineDBALHelper ( $ application -> getKernel ( ) -> getContainer ( ) -> get ( $ connectionService ) ) ) ; }
Prepare just the DBAL connection for the init command where no session is available yet.
Prepare just the DBAL connection for the init command where no session is available yet .