Symfony 3 (Prod) : You have requested a non-existent service "assetic.asset_manager"
<p>I'm trying to run this cmd, which is supposed to dump assetic files for prod environment :</p>

<pre><code>php bin/console assetic:dump --env=prod
</code></pre>

<p>This cmd returns the following error :</p>

<blockquote>
  <p>[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
      You have requested a non-existent service "assetic.asset_manager".</p>
</blockquote>

<p>When i try to access the prod page through my browser, i've got the following error :</p>

<blockquote>
  <p>An exception has been thrown during the rendering of a template
      ("Unable to generate a URL for the named route "_assetic_2f6a151_0" as such route does not exist.")
      in YOCoreBundle::layout.html.twig at line 14</p>
</blockquote>

<p>Everything is working fine in the dev environment (static files are minified and stored in the right folder) when i run this cmd :</p>

<pre><code>php bin/console assetic:dump
</code></pre>

<p>Regarding my configuration :</p>

<p>In composer.json :</p>

<pre><code>{
  "require": {
     "symfony/assetic-bundle": "^2.8.0",
     "leafo/scssphp": "~0.6",
     "patchwork/jsqueeze": "~1.0"
  }
}
</code></pre>

<p>In app/config/config.yml i have the following code :</p>

<pre><code>assetic:
  debug:          '%kernel.debug%'
  use_controller: '%kernel.debug%'
  filters:
    cssrewrite: ~
    jsqueeze:   ~
    scssphp:
      formatter: 'Leafo\ScssPhp\Formatter\Compressed'
</code></pre>

<p>AsseticBundle is declared in the AppKernel.php :</p>

<pre><code>$bundles = [
  new Symfony\Bundle\AsseticBundle\AsseticBundle(),
];
</code></pre>

<p>I don't really know where the problem might be.
If anyone has an idea about that, it would be really appreciated.
Thanks in advance.</p>