The PhlexibleSitemapBundle adds support for a finder field in phlexible.
- Download PhlexibleSitemapBundle using composer
- Enable the Bundle
- Import PhlexibleSitemapBundle routing
- Clear the symfony cache
Add PhlexibleSitemapBundle by running the command:
$ php composer.phar require phlexible/sitemap-bundle "~1.0.0"
Composer will install the bundle to your project's vendor/phlexible
directory.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Phlexible\Bundle\SitemapBundle\PhlexibleSitemapBundle(),
);
}
Import the PhlexibleSitemapBundle routing.
For frontend:
# app/config/routing.yml
phlexible_sitemap:
resource: "@PhlexibleSitemapBundle/Controller/SitemapController.php"
type: annotation
If you access your phlexible application with environment prod, clear the cache:
$ php app/console cache:clear --env=prod