sm = new ServiceManager(new Config($this->getConfig())); } /** * Fetch the factory services * * @iterations 5000 */ public function fetchFactoryService() { $result = $this->sm->get('factory_' . rand(0, self::NUM_SERVICES)); } /** * Fetch the invokable services * * @iterations 5000 */ public function fetchInvokableService() { $result = $this->sm->get('invokable_' . rand(0, self::NUM_SERVICES)); } /** * Fetch the services * * @iterations 5000 */ public function fetchService() { $result = $this->sm->get('service_' . rand(0, self::NUM_SERVICES)); } /** * Fetch the alias services * * @iterations 5000 */ public function fetchAliasService() { $result = $this->sm->get('alias_' . rand(0, self::NUM_SERVICES)); } /** * Fetch the abstract factory services * * @iterations 5000 */ public function fetchAbstractFactoryService() { $result = $this->sm->get('foo'); } }