title: How to access class constants in Twig?
body: <p>I have a few class constants in my entity class, e.g.:</p>
  
  <pre><code>class Entity {
      const TYPE_PERSON = 0;
      const TYPE_COMPANY = 1;
  }
  </code></pre>
  
  <p>In normal PHP I often do <code>if($var == Entity::TYPE_PERSON)</code> and I would like to do this kind of stuff in Twig. Is it possible?</p>