Coder Social home page Coder Social logo

Comments (5)

zfbot avatar zfbot commented on June 12, 2024

(Originally posted by: Dan Rossi on 01/02/12)

Confirmed this is a problem. For a moment i thought mongodb wasn't working I get the same

Warning: stream_resolve_include_path() [function.stream-resolve-include-path]: Unable to find the wrapper "mongodb" - did you forget to enable it when you configured PHP? in /path/vendor/ZendFramework/library/Zend/Loader/StandardAutoloader.php on line 304
mongodb://localhost:27017

from zendframework.

zfbot avatar zfbot commented on June 12, 2024

(Originally posted by: Dan Rossi on 01/02/12)

That quick fix worked

'connection' => array(
//'server' => "mongodb://localhost:27017",
'server' => (function () {return 'mongodb://127.0.0.1:27017/scavengers';}),
),

Im using the spiffy implementation, would be good to see it all implemented as default. I get an "invalid argument" error now though

from zendframework.

zfbot avatar zfbot commented on June 12, 2024

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF2-120

Known GitHub users mentioned in the original message or comment:
@insekticid, @ralphschindler

from zendframework.

mwillbanks avatar mwillbanks commented on June 12, 2024

@ralphschindler is this still an issue? Going through old bugs and seeing if they can be closed or not.

from zendframework.

ralphschindler avatar ralphschindler commented on June 12, 2024

No, I just tried:

class Foo {
    public function __construct($server, $options) {
        $this->server = $server;
    }
}

$di = new Zend\Di\Di;
$di->configure(new Zend\Di\Config(array('instance' => array(
    'Foo' => array(
        'parameters' => array(
            'server' => 'mongodb://127.0.0.1:27017/db',
            'options' => array(),
        )
    )
))));
var_dump($di->get('Foo'));

and that works.

from zendframework.

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.