title: containerAware and Controller in symfony2
body: <p>FOSUserBundle profile controller</p>
  
  <pre><code> use Symfony\Component\DependencyInjection\ContainerAware;
   class ProfileController extends ContainerAware
  </code></pre>
  
  <p>some functions ok ... but when i try then creat form</p>
  
  <pre><code>$form = $this-&gt;createForm
  </code></pre>
  
  <p>This error appear: Call to undefined method ProfileController::createForm() </p>
  
  <p>BUT when i change it to this:</p>
  
  <pre><code>use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  class ProfileController extends Controller
  </code></pre>
  
  <p>The form is rendered... so ... i dont know how can i add this controller to my class and dont remove the ContainerAware ? :/</p>
  
  <p>//</p>
  
  <p>MY solution ?</p>
  
  <p>instead of containeraware i use</p>
  
  <pre><code>use Symfony\Component\DependencyInjection\ContainerAwareInterface;
  </code></pre>
  
  <p>And then </p>
  
  <pre><code>class ProfileController extends Controller implements ContainerAwareInterface
  </code></pre>
  
  <p>But i dont know i cant see a different i am noob now so... is it good solution or i will broke something?</p>