jaredhanson / electrolyte

Elegant dependency injection for Node.js.
MIT License
564 stars 61 forks source link

Problem with params #24

Closed bossqone closed 9 years ago

bossqone commented 9 years ago

Hello. After few hours with the electrolyte I still can't figure out where is the problem.

Log and other necessary files: https://gist.github.com/bossqone/86dc5758bc6474f38fe6

Thanks for every response.

bossqone commented 9 years ago

console.log(ioc._o) in initExpress() gives me:

{ redisClient:
   { id: 'redisClient',
     dependencies: [],
     singleton: undefined,
     fn: [Function],
     inst: undefined,
     _sid: undefined },
  redisStore:
   { id: 'redisStore',
     dependencies: [ 'redisClient' ],
     singleton: undefined,
     fn: [Function],
     inst: undefined,
     _sid: undefined },
  app:
   { id: 'app',
     dependencies: [],
     singleton: undefined,
     fn: [Function],
     inst: undefined,
     _sid: undefined },
  httpServer:
   { id: 'httpServer',
     dependencies: [ 'app' ],
     singleton: undefined,
     fn: [Function],
     inst: undefined,
     _sid: undefined },
  moscaServer:
   { id: 'moscaServer',
     dependencies: [ 'httpServer', 'config/mosca' ],
     singleton: undefined,
     fn: [Function],
     inst: undefined,
     _sid: undefined } }