Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (41 sloc) 980 Bytes

Bundle installation

Require the bundle as a dependency.

$ composer require presta/sitemap-bundle

Enable it in your application Kernel.

<?php
// config/bundles.php
return [
    //...
    Presta\SitemapBundle\PrestaSitemapBundle::class => ['all' => true],
];

Or in your legacy application.

<?php
// app/AppKernel.php
class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            //...
            new Presta\SitemapBundle\PrestaSitemapBundle(),
        ];

        //...

        return $bundles;
    }
}

Import routing.

#config/routes/presta_sitemap.yml
presta_sitemap:
    resource: "@PrestaSitemapBundle/Resources/config/routing.yml"

Note you may not be required to import routing if you would only rely on dumped sitemaps. Jump to dedicated documentation for more information.


« READMEConfiguration »

You can’t perform that action at this time.