Git Product home page Git Product logo

Comments (1)

DanielBeltran avatar DanielBeltran commented on August 29, 2024

Since this issue is not solved till now and it is related to #47 i wanted to comment on this.

To implement multiple database adapters per abstract factory, till now it is only possible to implement one database due to developer tools Module.php:
'ZendDeveloperTools\DbCollector' => function ($sm) {
$p = false;
$db = new Collector\DbCollector();

                if ($sm->has('Zend\Db\Adapter\Adapter')) {
                    $adapter = $sm->get('Zend\Db\Adapter\Adapter');
                    if ($adapter instanceof ProfilingAdapter) {
                        $p = true;
                        $db->setProfiler($adapter->getProfiler());
                    }
                }
                if (!$p && $sm->has('Zend\Db\Adapter\ProfilingAdapter')) {
                    $adapter = $sm->get('Zend\Db\Adapter\ProfilingAdapter');
                    if ($adapter instanceof ProfilingAdapter) {
                        $db->setProfiler($adapter->getProfiler());
                    }
                }
                return $db;
            },

Since Developer Tools will only add Zend\Db\Adapter\Adapter.

To work around that problem DT have to be configured to accept multiple Profilers, and multiple instances of bjyprofiler have to be instantiated....

So the fix has to be here and in DT.

Maybe its possible to add a Profiler array? so Zend\Db\Adapter\Adapter gets an array of all Adapters configured in the abstractfactory of db Adapter...?

from bjyprofiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.