<p dir="auto">I keep failing to make defaults paramaters for my annotation routes.</p>
<p dir="auto">Look my routing.yml:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="some_route:
    resource: &quot;@CoreBundle/Controller/&quot;
    type:     annotation
    prefix:   /{slug}
    defaults: {'slug': 'pouet'}"><pre class="notranslate"><span class="pl-ent">some_route</span>:
    <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@CoreBundle/Controller/<span class="pl-pds">"</span></span>
    <span class="pl-ent">type</span>:     <span class="pl-s">annotation</span>
    <span class="pl-ent">prefix</span>:   <span class="pl-s">/{slug}</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{'slug': 'pouet'}</span></pre></div>
<p dir="auto">My controller look like this:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php

namespace Namespace\CoreBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;

use Namespace\ShopBundle\Model;

class FrontController extends Controller
{
    /**
     * @Route(&quot;/&quot;)
     * @Template
     */
    public function indexAction(Model\Shop $shop = null)
    {
        return array('shop' =&gt; $shop);
    }
}
"><pre class="notranslate"><span class="pl-ent">&lt;?php</span>

<span class="pl-k">namespace</span> <span class="pl-v">Namespace</span>\<span class="pl-v">CoreBundle</span>\<span class="pl-v">Controller</span>;

<span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkBundle</span>\<span class="pl-v">Controller</span>\<span class="pl-v">Controller</span>;
<span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Route</span>;
<span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">Template</span>;
<span class="pl-k">use</span> <span class="pl-v">Sensio</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkExtraBundle</span>\<span class="pl-v">Configuration</span>\<span class="pl-v">ParamConverter</span>;

<span class="pl-k">use</span> <span class="pl-k">Namespace</span>\<span class="pl-v">ShopBundle</span>\<span class="pl-v">Model</span>;

<span class="pl-k">class</span> <span class="pl-v">FrontController</span> <span class="pl-k">extends</span> <span class="pl-v">Controller</span>
{
    <span class="pl-c">/**</span>
<span class="pl-c">     * @Route("/")</span>
<span class="pl-c">     * @Template</span>
<span class="pl-c">     */</span>
    <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">indexAction</span>(<span class="pl-smi"><span class="pl-smi"><span class="pl-v">Model</span>\<span class="pl-v">Shop</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>shop</span> = <span class="pl-c1">null</span>)
    {
        <span class="pl-k">return</span> <span class="pl-en">array</span>(<span class="pl-s">'shop'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>shop</span>);
    }
}</pre></div>
<p dir="auto">If I'm not wrong I must be able to access <strong>/</strong>, slug value will be 'pouet', and <strong>/foo</strong>, slug value will be 'foo'.<br>
But I can't access the <strong>/</strong> route because it says</p>
<blockquote>
<p dir="auto">No route found for "GET /"</p>
</blockquote>
<p dir="auto">Am I doing it right?</p>
<p dir="auto">Say I import the following route:</p>
<p dir="auto">app/config/routing.yml</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AcmeBusinessBundle_client:
    resource: &quot;@AcmeBusinessBundle/Resources/config/routing/client.yml&quot;
    prefix:   /clients"><pre class="notranslate"><span class="pl-ent">AcmeBusinessBundle_client</span>:
    <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@AcmeBusinessBundle/Resources/config/routing/client.yml<span class="pl-pds">"</span></span>
    <span class="pl-ent">prefix</span>:   <span class="pl-s">/clients</span></pre></div>
<p dir="auto">...Resources/config/routing/client.yml</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="acme_business_client_list:
    pattern:  /
    defaults: { _controller: AcmeBusinessBundle:Client:list }

acme_business_client_create:
    pattern:  create
    defaults: { _controller: AcmeBusinessBundle:Client:create }"><pre class="notranslate"><span class="pl-ent">acme_business_client_list</span>:
    <span class="pl-ent">pattern</span>:  <span class="pl-s">/</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:list }</span>

<span class="pl-ent">acme_business_client_create</span>:
    <span class="pl-ent">pattern</span>:  <span class="pl-s">create</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:create }</span></pre></div>
<p dir="auto">The route comes through as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="php app/console router:debug

acme_business_client_list   ANY    /clients/
acme_business_client_create ANY    /clients/create"><pre class="notranslate"><code class="notranslate">php app/console router:debug

acme_business_client_list   ANY    /clients/
acme_business_client_create ANY    /clients/create
</code></pre></div>
<p dir="auto">Which means there is no way to make the route just /clients for the list page.</p>
<p dir="auto">This also creates an issue when adding a _format requirement.</p>
<p dir="auto">Take the following for example:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="acme_business_client_list:
    pattern:  /.{_format}
    defaults: { _controller: AcmeBusinessBundle:Client:list }

acme_business_client_create:
    pattern:  create
    defaults: { _controller: AcmeBusinessBundle:Client:create }"><pre class="notranslate"><span class="pl-ent">acme_business_client_list</span>:
    <span class="pl-ent">pattern</span>:  <span class="pl-s">/.{_format}</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:list }</span>

<span class="pl-ent">acme_business_client_create</span>:
    <span class="pl-ent">pattern</span>:  <span class="pl-s">create</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeBusinessBundle:Client:create }</span></pre></div>
<p dir="auto">Now it comes through as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="php app/console router:debug

acme_business_client_list   ANY    /clients/.json
acme_business_client_create ANY    /clients/create"><pre class="notranslate"><code class="notranslate">php app/console router:debug

acme_business_client_list   ANY    /clients/.json
acme_business_client_create ANY    /clients/create
</code></pre></div>
<p dir="auto">Is there any kind of work around for this besides importing the list route on its own?</p>