You should also add a XML and PHP example:

    <!-- app/config/config.xml -->
    <doctrine:config
        driver="pdo_sqlite"
        path="%kernel.root_dir%/sqlite.db"
        charset="UTF-8"
    >
        <!-- ... -->
    </doctrine:config>

<!-- -->

    // app/config/config.php
    $container->loadFromExtension('doctrine', array(
        'dbal' => array(
            'driver'  => 'pdo_sqlite',
            'path'    => '%kernel.root_dir%/sqlite.db',
            'charset' => 'UTF-8',
        ),
    ));