title: How to get working environment in Symfony 1.4
body: <p>I have some features that I only want shown when the website is run in dev mode (or in development environment). How can I programmatically determine what environment is currently being used?</p>
  
  <p>E.g.</p>
  
  <pre><code>// $inDevEnvironment = ?
  if ($inDevEnvironment) {
  
      // DEV feature here
  }
  </code></pre>