Hi there,
I guess setProfiler is added all over the place to connect to your database.
I guess I have to update my dependencies.
But I am a real noob at programming so please help me out.
I get the folowing error:
Fatal error: Uncaught exception 'Zend\Di\Exception\RuntimeException' with
message 'Invalid instantiator of type "NULL" for
"Zend\Db\Adapter\Profiler\ProfilerInterface".'
And I have the following local.config.php with dependencies for the Db
Adapter
include (__DIR__ . '/../../vendor/Core/config/function.local.php');
$dbParams = $functionVars['dbParams'];
return array(
'di' => array(
'allowed_controllers' => array(
'Application\Controller\IndexController',
'Login\Controller\FormController',
'Login\Controller\RegisterController',
),
'instance' => array(
'Zend\Db\Adapter\Adapter' => array(
'parameters' => array(
'driver' => 'Zend\Db\Adapter\Driver\Pdo\Pdo',
),
),
'Zend\Db\Adapter\Driver\Pdo\Pdo' => array(
'parameters' => array(
'connection' => 'Zend\Db\Adapter\Driver\Pdo\Connection',
),
), // todo ik moet de depenincues ergens updaten met een profiler
'Zend\Db\Adapter\Driver\Pdo\Connection' => array(
'parameters' => array(
'connectionParameters' => array(
'dsn' => "mysql:dbname=" . $dbParams['database'] .
";host=" . $dbParams['hostname'],
'username' => $dbParams['username'],
'password' => $dbParams['password'],
'driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET
NAMES \'UTF8\''),
),
),
),
)
)
);
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Invalid-instantiator-of-type-NULL-for-Zend-Db-Adapter-Profiler-ProfilerInterface-tp4659653.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]