Invalid instantiator of type "NULL" for "Zend\Db\Adapter\Profiler\ProfilerInterface" #4193

Closed
pixiebox opened this Issue Apr 7, 2013 · 5 comments

Comments

Projects
None yet
4 participants

pixiebox commented Apr 7, 2013

After pulling the ZF2 I get:

Invalid instantiator of type "NULL" for "Zend\Db\Adapter\Profiler\ProfilerInterface"

Why is that? I got the following stuff in my local.config.php

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',
),
),
'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''),
),
),
),
),
)
);

Contributor

noopable commented May 3, 2013

Probably,this issue is solved by #4435

Contributor

ThaDafinser commented Jul 30, 2013

@pixiebox like @noopable mentioned -> is this issue solved with 2.2.x?

Or is it still open? When not can you close it?

Hi there,

Thanks for commenting, and yes I guess the @noopable comment is right and that was exactly the issue.

I've forgot I posted this. I call my stuff above with the servicemanager because I've read somewhere there was something going on with Dependincy Injection.
Somehow I auto-magicly got it working. If you ask me it's not a problem anymore.

Contributor

ThaDafinser commented Aug 20, 2013

@pixiebox thanks for the feedback.

@weierophinney can u close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment