Exemple #1
0
 /**
  * Sets the function registry, also links the registry with this environment instance.
  *
  * @param FunctionRegistry $registry
  *
  * @return Context
  */
 public function setFunctionRegistry(FunctionRegistry $registry)
 {
     $this->functionRegistry = $registry;
     // provide access to The context, which is need to access generateCSS()
     $this->functionRegistry->setEnvironment($this);
     return $this;
 }