Issue with routing symfony2

I am trying to clear cache of my application to prod environment. But all time that I run this line: app/console cache:clear --env=prod returns this error below:

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized options "resource, type, prefix" under "core"

My routing file is like this:

//routing.yml
core:
    resource: "@CoreBundle/Controller/"
    type:     annotation
    prefix:   /

In this project I have a folder called CoreBundle and inside this folder have a folder DependencyInjection that have this 2 files:

//congiguration.php
class Configuration implements ConfigurationInterface
{
    /**
     * {@inheritdoc}
     */
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('core');

        return $treeBuilder;
    }
}
//CoreExtension.php
class CoreExtension extends Extension
{
    /**
     * {@inheritdoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');
    }
}

I have no idea why symfony don't recognize this options... Could anyone help me please?

Thanks all

Answers


Try debug your router with symfony console by app/console debug:router, check if your router is registered. if not, probably your annotation invalid.

SEE: http://symfony.com/doc/current/book/routing.html#including-external-routing-resources


Need Your Help

How to loop through columns in an oracle pl/sql cursor

oracle plsql

I am creating a dynamic cursor and I would like to loop over the columns that exist in the cursor. How would I do that?

acf, getting thumbnail size image from field

php jquery image wordpress advanced-custom-fields

I'm using Advanced Custom Fields plugin on my wordpress website.