コード例 #1
0
 /**
  * Initializes provided context.
  *
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if (!$context instanceof CollectionAwareContextInterface) {
         return;
     }
     $context->setConnectionCollection($this->collection);
     $context->setDefaultAlias($this->defaultAlias);
 }