title: Access symfony parameters within the FeatureContext
body: <p>How can I access symfony parameters (e.g. parameters.yml) within the FeatureContext.php?</p>
  
  <p>If I use <code>$this-&gt;getContainer()-&gt;getParameter('currency');</code> in any controller, I can get the values and I want to do same thing with <code>FeatureContext</code> so how can I make code below possible?</p>
  
  <p>Thanks in advance</p>
  
  <p><strong>I want to make this example work in one way or another:</strong></p>
  
  <pre><code>namespace Football\TeamBundle\Features\Context;
  
  use Behat\MinkExtension\Context\MinkContext;
  
  class FeatureContext extends MinkContext
  {
      /**
       * @Then /^I print currency$/
       */
      public function iSeeCurrency()
      {
          echo $this-&gt;getContainer()-&gt;getParameter('currency');
          sleep(60);
      }
  }
  </code></pre>
  
  <p><strong>Just for reference; this example of mine works fine for accessing symfony services:</strong></p>
  
  <pre><code>use Behat\MinkExtension\Context\MinkContext;
  use Behat\Symfony2Extension\Context\KernelDictionary;
  
  class FeatureContext extends MinkContext
  {
      private $kernel;
      use KernelDictionary;
  
      public function setKernel($kernel)
      {
          $this-&gt;kernel = $kernel;
      }
  
      /**
       * @Then /^I want to say hello to "([^"]*)"$/
       * @param $seconds
       */
      public function iSayHello($name)
      {
          $container = $this-&gt;getContainer();
          $behatService = $container-&gt;get('behat_service');
  
          echo $behatService-&gt;sayHello($name);
          sleep(60);
      }
  }
  </code></pre>
  
  <p><strong>CONFIGURATION FILES: (I have _dev.yml and _prod.yml environments as well)</strong></p>
  
  <p><strong>config.yml</strong></p>
  
  <pre><code>imports:
      - { resource: parameters.yml }
      - { resource: security.yml }
      - { resource: globals.yml }
  </code></pre>
  
  <p><strong>config_test.yml</strong></p>
  
  <pre><code>imports:
      - { resource: config.yml }
      - { resource: parameters_test.yml }
  </code></pre>
  
  <p><strong>parameters_test.yml</strong></p>
  
  <pre><code>parameters:
      database_driver: pdo_mysql
      database_host: 127.0.0.1
      database_port: null
      database_name: symfony_test
      database_user: root
      database_password: root
  </code></pre>
  
  <p><strong>globals.yml</strong></p>
  
  <pre><code>parameters:
      currency: EUR.USD.GBP
  </code></pre>