How can I connect to a remote database via SSH tunneling in Symfony2?
I've found the PHP snippet, but how can I integrate it in Symfony
<?php
$smysql = mysql_connect( "127.0.0.1:3307", "dbuser", "PASS" );
mysql_select_db( "db", $smysql );
?>
Hope it makes sense.