public function getLogic($name) { $className = "Logics_" . ucfirst($name); if (Sabel::using($className)) { return Sabel_Container::load($className, new Logics_DI()); } $message = __METHOD__ . "() logic class not found."; throw new Sabel_Exception_ClassNotFound($message); }
protected function getLogic($name) { $logicName = "Logics_" . ucfirst($name); return Sabel_Container::load($logicName, new Logics_DI()); }