title: Symfony session get array value
body: <p>I'm using Symfony2, and are having trouble getting array values stored in a session, without putting them in a variable or object.</p>
  
  <p>Possible something like:</p>
  
  <pre><code>echo $app['session']-&gt;get('shop')-&gt;get('name');
  </code></pre>
  
  <p>Currently I'm achieving it by doing this, but I would like to avoid it for the cause of simplicity:</p>
  
  <pre><code>$temp = $app['session']-&gt;get('shop');
  echo $temp['name'];
  </code></pre>
  
  <p>Is it possible?</p>
  
  <p>Thanks in advance</p>