Nastoyka work console Doctrine, why do I receive an error associated with the driver?

Written in a single file .
Question: Why do I receive an error despite the fact that specified the name of the driver ?
<?php

require_once '../../../vendor/autoload.php';

$con_config = require_once './con-config.php';

use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;

$isDevMode = true;
$path = array("../../models");

$config = Setup::createAnnotationMetadataConfiguration($path, $isDevMode);

$conn = array(
"dbname"=>$con_config["database"],
"user"=>$con_config["username"],
"password"=>$con_config["password"],
"host"=>$con_config["host"],
"driver"=>$con_config["driver"]
);

$entityManager = EntityManager::create($conn, $config);

return ConsoleRunner::createHelperSet($entityManager);


Error:
PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: 
The options 'driver' or 'driverClass' are mandatory if no PDO instance is given to DriverManager::getConnection(). in C:\xampp\htdocs\CouponSystem\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php:114
Stack trace:


Documentation :
Setting
March 19th 20 at 08:32
0 answer

Find more questions by tags Doctrine ORM