forked from prestaconcept/PrestaSitemapBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrestaSitemapBundle.php
33 lines (28 loc) · 966 Bytes
/
PrestaSitemapBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*
* This file is part of the prestaSitemapPlugin package.
* (c) David Epely <depely@prestaconcept.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Presta\SitemapBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Presta\SitemapBundle\DependencyInjection\Compiler\AddSitemapListenersPass;
/**
* Bundle that provides tools to render application sitemap according to
* sitemap protocol. @see http://www.sitemaps.org/
* @see README.md for basic usage
*
* @author depely
*/
class PrestaSitemapBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new AddSitemapListenersPass(), PassConfig::TYPE_OPTIMIZE);
}
}