You are here

public function Tokenizer::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/css-selector/Parser/Tokenizer/Tokenizer.php \Symfony\Component\CssSelector\Parser\Tokenizer\Tokenizer::__construct()
  2. 8 vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php \Masterminds\HTML5\Parser\Tokenizer::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Parser/Tokenizer/Tokenizer.php \Symfony\Component\CssSelector\Parser\Tokenizer\Tokenizer::__construct()

Constructor.

File

vendor/symfony/css-selector/Parser/Tokenizer/Tokenizer.php, line 37

Class

Tokenizer
CSS selector tokenizer.

Namespace

Symfony\Component\CssSelector\Parser\Tokenizer

Code

public function __construct() {
  $patterns = new TokenizerPatterns();
  $escaping = new TokenizerEscaping($patterns);
  $this->handlers = array(
    new Handler\WhitespaceHandler(),
    new Handler\IdentifierHandler($patterns, $escaping),
    new Handler\HashHandler($patterns, $escaping),
    new Handler\StringHandler($patterns, $escaping),
    new Handler\NumberHandler($patterns),
    new Handler\CommentHandler(),
  );
}