setManager() public method

Used internally to resolve and tokenize partials
public setManager ( Phly\Mustache\Mustache $manager ) : Lexer
$manager Phly\Mustache\Mustache
return Lexer
Beispiel #1
0
 /**
  * Set lexer to use when tokenizing templates
  *
  * @param  Lexer $lexer
  * @return Mustache
  */
 public function setLexer(Lexer $lexer)
 {
     $this->lexer = $lexer;
     $this->lexer->setManager($this);
     return $this;
 }