Skip to content

Instantly share code, notes, and snippets.

@pulse00
Created October 17, 2013 14:19
Show Gist options
  • Select an option

  • Save pulse00/7025739 to your computer and use it in GitHub Desktop.

Select an option

Save pulse00/7025739 to your computer and use it in GitHub Desktop.
<?php
/* direct access */
$dispatcher->addSubscriber(new \Statistics\Handler\MongoHandler($app['mongo']));
/* equals to */
/* @var $mongoService \MongoService */
$mongoService = $app['mongo'];
$dispatcher->addSubscriber(new \Statistics\Handler\MongoHandler($mongoService));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment