Esempio n. 1
0
 /**
  * @return PerformanceHelper|NULL
  * @see self::__construct()
  */
 protected function createPerformanceHelper()
 {
     if (PerformanceHelper::$keyCallback) {
         $context = $this->model->getContext();
         if ($context->hasService('performanceHelperCache')) {
             return new PerformanceHelper($this, $context->getService('performanceHelperCache', 'ArrayAccess'));
         }
     }
     return NULL;
 }