Symfony Request POST
<p>Currently I am working on symfony project, however some errors are thrown when I try to perform that. As an example:</p>

<blockquote>
  <p>Controller <code>MyAppBundle\Controller\DefaultController::updateAction()</code>
  requires that you provide a value for the "<code>$request</code>" argument (because
  there is no default value or because there is a non optional argument
  after this one).</p>
</blockquote>

<p>My Routing:</p>

<pre><code>anasayfa:
    path: /
    defaults: { _controller:MyAppBundle:Default:index}
listele:
    path: /listele
    defaults: {_controller:MyAppBundle:Default:listele}
update:
    path: /update
    defaults: {_controller:MyAppBundle:Default:update}
    requirements:
    methods: POST
</code></pre>

<p>And my Controllers:</p>

<pre><code>public function updateAction(Request $request){
    $em = $this-&gt;getDoctrine()-&gt;getManager();

    $username = $request-&gt;request-&gt;get('username');
    $password = $request-&gt;request-&gt;get('password');
}
</code></pre>

<p>Finally my form in homepage(index):</p>

<pre><code>&lt;form action="{{ path('update') }}" method="POST"&gt;
    &lt;input type="text" name="username" placeholder="Give Username"&gt;
    &lt;input type="text" name="password" placeholder="Give Password"&gt;
    &lt;input type="submit" value="kaydet"&gt;
&lt;/form&gt;
</code></pre>

<p>I am using symfony version 3.0.</p>