serviceManager = $serviceManager ?? ServiceManager::getServiceManager(); } public function __invoke($id = null) { return $id ? $this->serviceManager->get($id) : $this->serviceManager; } /** * @inheritDoc */ public function get($id) { return $this->serviceManager->get($id); } /** * @inheritDoc */ public function has($id) { return $this->serviceManager->has($id); } }